Stefan Kangas
1bb3fb4e45
Merge from origin/emacs-28
...
2782bc113e Revert "Fix localized display of date and time in the NS p...
2021-11-10 12:12:29 +01:00
Po Lu
b1de4a2ede
Prevent skipping results while changing search direction
...
* lisp/xwidget.el (xwidget-webkit-isearch-forward)
(xwidget-webkit-isearch-backward): Avoid moving to the next result one
too many times.
2021-11-10 17:53:13 +08:00
Benj
754810add1
Make the python missing-readline warning more helpful
...
* lisp/progmodes/python.el
(python-shell-completion-native-turn-on-maybe): Mention the "readline"
package (bug#48998).
Copyright-paperwork-exempt: yes
2021-11-10 10:07:42 +01:00
Robert Pluim
5a58b2f58c
; * doc/lispref/files.texi: Fix typo.
2021-11-10 08:56:03 +01:00
Lars Ingebrigtsen
f7c08c8b41
Make `C-c C-c' in erts-mode work with Point-Char elems
...
* lisp/progmodes/erts-mode.el (erts-mode--preceding-spec):
Factor out into own function (bug#51680).
(erts-run-test): Respect Point-Char settings.
2021-11-10 08:52:33 +01:00
Po Lu
32d1a735ce
Remove obsolete limitation
...
* src/xwidget.c (Fxwidget_webkit_goto_history): Accept any fixnum as
REL-POS, to be consistent with docstring.
2021-11-10 15:47:56 +08:00
Po Lu
465ec29926
Fix incorrect offset calculation for clipped xwidget views
...
* src/xwidget.c (from_embedder, to_embedder): Remove incorrect
adjustment of position by view clipping.
2021-11-10 14:29:54 +08:00
Po Lu
9653cbf355
Fix invisible content in WebKit dialogs
...
* src/xwidget.c (webkit_script_dialog_cb): Use custom label instead of
dialog box title to display message.
2021-11-10 14:19:15 +08:00
Po Lu
1e5eb566cc
Set embedder correctly to fix menus appearing in the wrong location
...
* src/xwidget.c (record_osr_embedder, from_embedder, to_embedder): New
functions.
(Fmake_xwidget): Attach from-embedder and to-embedder signals.
(find_widget_for_offscreen_window): New function.
(xwidget_button, xwidget_motion_or_crossing): Set embedder on event.
(Fdelete_xwidget_view): Remove embedder status if applicable.
* src/xwidget.h (struct xwidget): New fields `embedder' and
`embedder-view'.
2021-11-10 14:06:07 +08:00
Po Lu
e27ca55ecb
Revert "Fix mouse face in NS port"
...
This reverts commit 278e4fc9c6 .
2021-11-10 14:04:26 +08:00
Po Lu
2e2260427e
Revert "*** empty log message ***"
...
This reverts commit 68a2a3307d .
2021-11-10 14:04:25 +08:00
Po Lu
b21f1cabd8
Revert "Add support for event processing via XInput 2"
...
This reverts commit 346cfc8124 .
2021-11-10 14:04:24 +08:00
Po Lu
12beb77ec8
Revert "Fix erasing cursor on top of raised boxes in NS port"
...
This reverts commit 2b5a2ab50b .
2021-11-10 14:04:22 +08:00
Po Lu
da5de19423
Revert "Revert "Fix erasing cursor on top of raised boxes in NS port""
...
This reverts commit 7117bbc7aa .
2021-11-10 14:04:21 +08:00
Po Lu
e9b954f0fd
Revert "Support opening the toolkit menu bar on NS"
...
This reverts commit ff9cf991c1 .
2021-11-10 14:04:05 +08:00
oldosfan
ff9cf991c1
Support opening the toolkit menu bar on NS
...
* src/nsmenu.m (ns_activate_menubar, Fns_open_menubar): New functions.
* src/nsterm.m (ns_create_terminal): Add activate_menubar_hook.
* lisp/menu-bar.el (menu-bar-open): Use ns-menu-bar-open on Nextstep.
2021-11-10 13:27:01 +08:00
oldosfan
7117bbc7aa
Revert "Fix erasing cursor on top of raised boxes in NS port"
...
This reverts commit 960f0eb9ab657af85c532574b937d8851049b178.
2021-11-10 13:27:01 +08:00
oldosfan
2b5a2ab50b
Fix erasing cursor on top of raised boxes in NS port
...
* src/nsterm.m (ns_draw_relief): Clear top and bottom line areas
first, if required.
2021-11-10 13:27:01 +08:00
oldosfan
346cfc8124
Add support for event processing via XInput 2
...
* configure.ac: Add an option to use XInput 2 if available
* src/Makefile.in (XINPUT_LIBS, XINPUT_CFLAGS): New variables
(EMACS_CFLAGS): Add Xinput CFLAGS
(LIBES): Add XInput libs
* src/xmenu.c (popup_activated_flag): Expose flag if XInput 2 is
available
* src/xfns.c (x_window): Set XInput 2 event mask
* src/xterm.c (x_detect_focus_change): Handle XInput 2 GenericEvents
(handle_one_xevent): Handle XInput 2 events
(x_term_init): Ask the server for XInput 2 support and set xkb_desc if
available
(x_delete_terminal): Free XKB kb desc if it exists, and free XI2
devices if they exist
(x_free_xi_devices, x_init_master_valuators): New functions
(x_get_scroll_valuator_delta): New function
(init_xterm): Don't tell GTK to only use Core Input when built with
XInput 2 support
* src/xterm.h (struct x_display_info): Add fields for XKB and XI2
support
* src/gtkutil.c (xg_event_is_for_menubar): Handle XIDeviceEvents
(xg_is_menu_window): New function
(xg_event_is_for_scrollbar): Handle XIDeviceEvents
2021-11-10 13:27:01 +08:00
oldosfan
68a2a3307d
*** empty log message ***
2021-11-10 13:27:01 +08:00
oldosfan
278e4fc9c6
Fix mouse face in NS port
...
* src/nsterm.m (ns_draw_glyph_string): Set s->face to the mouse face.
2021-11-10 13:27:01 +08:00
Lars Ingebrigtsen
057fd1ee9b
Fix package-tests failure on native-comp
...
* test/lisp/emacs-lisp/package-tests.el
(package-test-macro-compilation-gz): Fix test failure on native-comp.
2021-11-10 05:19:56 +01:00
Lars Ingebrigtsen
18ebe6c4da
Fix the look of the <video> elements in shr
...
* lisp/net/shr.el (shr-tag-video): Tweak the look of the video element.
2021-11-10 02:31:54 +01:00
Lars Ingebrigtsen
63fa896cb0
Try to fix intermittent build problem on Macos
...
* src/Makefile.in (@): Also sign the bootstrap-emacs executable
2021-11-10 02:21:48 +01:00
Tom Levy
a28647a6b6
Remove spurious %S from 'define-error' messages
...
; The MESSAGE arg of 'define-error' does not support format specifiers
; (unlike the 'error' function). The signal data is automatically
; appended to the error message.
* lisp/emacs/lisp/cl-generic.el (cl--generic-cyclic-definition):
Remove spurious %S from error message.
* lisp/emacs-lisp/gv.el (gv-invalid-place): Remove spurious %S from
error message (and rephrase) (bug#51718).
Copyright-paperwork-exempt: yes
2021-11-10 01:16:16 +01:00
Tom Levy
315d550bf7
Allow 'undo-redo' to be called from Lisp without repeat count
...
* lisp/simple.el (undo-redo): Default arg to 1 to avoid error when
called from Lisp without args (bug#51718).
Copyright-paperwork-exempt: yes
2021-11-10 01:12:47 +01:00
Po Lu
912ae5de92
Prevent BadValue errors when creating tiny xwidget views
...
* src/xwidget.c (x_draw_glph_string): Avoid resizing xwidget views
to an invalid size (bug#51707).
2021-11-10 00:52:47 +01:00
Lars Ingebrigtsen
2e6ed253ce
Add new function 'file-name-split'
...
* doc/lispref/files.texi (File Name Components): Document it.
* lisp/files.el (file-name-split): New function (bug#50572).
* lisp/emacs-lisp/shortdoc.el (file-name): Mention it.
2021-11-10 00:26:32 +01:00
Lars Ingebrigtsen
fdc00b9836
Make `dired-split' obsolete
...
* lisp/dired-aux.el (dired-tree-lessp): Adjust caller.
(dired-split): Make obsolete (bug#50572).
* lisp/ffap.el (ffap-list-env): Adjust comment.
2021-11-09 23:58:42 +01:00
Michael Albinus
b9b27b6e55
* lisp/net/tramp-cache.el (tramp-persistency-file-name):
...
Skip superfluous `expand-file-name'.
2021-11-09 20:24:03 +01:00
Jim Porter
cef31747b6
Improve performance when checking case-sensitivity of Tramp file names
...
* lisp/net/tramp-sh.el (tramp-sh-handle-expand-file-name):
Dissect file name before testing for connectability to reduce
duplicated work.
* lisp/net/tramp.el (tramp-handle-file-name-case-insensitive-p):
Use `tramp-connectable-p' to test for connection.
2021-11-09 19:59:14 +01:00
Stefan Kangas
3b5069e225
Add back/forward mouse button bindings in eww
...
* lisp/net/eww.el (eww-mode-map): Add mouse back/forward button
bindings. These bindings are the same as in Firefox and other
graphical browsers.
2021-11-09 18:40:43 +01:00
Juri Linkov
5e393e2a97
* lisp/progmodes/prog-mode.el (prog-context-menu): Add "Go Forward".
...
The menu item "Go Forward" is bound to xref-go-forward.
Also use "Go Back" for xref-go-back (bug#38797).
2021-11-09 10:24:44 +02:00
Juri Linkov
565514fe96
* lisp/vc/diff-mode.el (diff-setup-buffer-type): Move to diff-setup-whitespace
...
* lisp/vc/vc.el: Add declare-function for diff-setup-buffer-type (bug#51016).
2021-11-09 10:18:24 +02:00
Stefan Kangas
2782bc113e
Revert "Fix localized display of date and time in the NS port"
...
This reverts commit 5e05be566b .
This was discussed in
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=51321#93
2021-11-09 08:49:34 +01:00
Lars Ingebrigtsen
e379cb6f13
Expand the etc/NEWS section about the `medium' font changes
...
* etc/NEWS: Expand upon the addition of the `medium' weight
(bug#51704).
2021-11-09 08:36:28 +01:00
Po Lu
2ccaa95355
Fix compiler warning building net/shr.el without xwidget support
...
* lisp/net/shr.el (xwidget-webkit-execute-script): New function
declaration (bug#51705).
2021-11-09 08:27:23 +01:00
Po Lu
606d8ffe45
Fix default target of motion events
...
* src/xwidget.c (xwidget_motion_or_crossing): Default to widget_osr
instead of its window (bug#51703).
2021-11-09 08:24:45 +01:00
Stefan Kangas
104e90d936
Prefer locate-user-emacs-file
...
* lisp/cmuscheme.el (scheme-start-file):
* lisp/erc/erc.el (erc-startup-file-list):
* lisp/net/nsm.el (nsm-settings-file):
* lisp/net/tramp-crypt.el (tramp-crypt-config-file-name):
* lisp/org/org-clock.el (org-clock-persist-file):
* lisp/org/org-id.el (org-id-locations-file)
* lisp/shell.el (shell): Prefer 'locate-user-emacs-file' to fiddling
with 'user-emacs-directory' directly.
2021-11-09 07:51:27 +01:00
Po Lu
c9fd83e303
Always set xwidget title if the event was "load-finished"
...
* lisp/xwidget.el (xwidget-webkit-callback): Always set title upon
load completion. This prevents loading pages such as "about:blank"
from not setting the buffer name (bug#51702).
2021-11-09 07:47:17 +01:00
Po Lu
e9ff213639
Make `kill_frame_xwidget_views' safe
...
* src/xwidget.c (kill_frame_xwidget_views): Check XWIDGET_VIEW_P
(bug#51701).
2021-11-09 07:47:17 +01:00
Lars Ingebrigtsen
430d12e3c0
Don't create temporary files for <video>
...
* lisp/net/shr.el (shr-tag-audio): Don't create a temporary file;
just update the DOM directly.
2021-11-09 07:47:17 +01:00
Stefan Kangas
ba0e4f3ad3
Merge from origin/emacs-28
...
307d164c9c * lisp/mouse.el (mouse-buffer-menu-mode-groups): Tighten "...
818211ed89 * doc/emacs/search.texi (Isearch Yank): Add isearch-forwar...
# Conflicts:
# etc/NEWS
2021-11-09 06:59:24 +01:00
Po Lu
3808cb89c3
Make xwidget-tests pass again
...
* lisp/xwidget.el (xwidget-webkit-buffer-name-prefix): Remove extra
space.
(xwidget-webkit-callback): Add trailing "*" to buffer name.
(xwidget-webkit-new-session, xwidget-webkit-import-widget): Always use
existing buffer name (bug#51700).
2021-11-09 06:49:15 +01:00
Lars Ingebrigtsen
3e2c024c41
Fix typo in last shr change
...
* lisp/net/shr.el (shr-tag-video): Require xwidgets, because it's
used from callbacks.
2021-11-09 06:44:58 +01:00
Lars Ingebrigtsen
0a2439fa31
Fix shr-tag-video startup issue
...
* lisp/net/shr.el (shr-tag-video): Require xwidgets, because it's
used from callbacks.
2021-11-09 06:26:57 +01:00
Lars Ingebrigtsen
9a67efa11b
Optionally use use xwidgets to display <video> elements in shr
...
* doc/misc/eww.texi (Advanced): Document it.
* lisp/net/shr.el (shr-use-xwidgets-for-media): New user option.
(shr-tag-video): Use xwidgets to display <video> elements.
2021-11-09 06:19:09 +01:00
Lars Ingebrigtsen
5ba738eb0a
Make image-compute-scaling-factor argument optional
...
* lisp/image.el (image-compute-scaling-factor): Make the argument
optional.
2021-11-09 05:55:32 +01:00
Lars Ingebrigtsen
a097303ebb
ARGUMENTS in Fmake_xwidget is optional
...
* src/xwidget.c (Fmake_xwidget): The ARGUMENTS argument isn't
mandatory.
2021-11-09 05:51:37 +01:00
Lars Ingebrigtsen
272693c6fd
Make xwidget-event-handler more resilient
...
* lisp/xwidget.el (xwidget-event-handler): Don't try to call the
callback if it hasn't been defined.
2021-11-09 05:48:28 +01:00