]> git.eshelyaron.com Git - emacs.git/log
emacs.git
3 years agoNote that loaddefs.el is copied to ldefs-boot.el
Lars Ingebrigtsen [Thu, 11 Nov 2021 03:08:51 +0000 (04:08 +0100)]
Note that loaddefs.el is copied to ldefs-boot.el

* lisp/emacs-lisp/autoload.el (autoload-rubric): Add a comment to
the file noting what'll happen to it.

3 years agoRe-generated to get autoloads additions in emoji.el
Lars Ingebrigtsen [Thu, 11 Nov 2021 03:02:43 +0000 (04:02 +0100)]
Re-generated to get autoloads additions in emoji.el

3 years agoAdd `xwidget-webkit-load-html'
Po Lu [Wed, 10 Nov 2021 13:01:40 +0000 (21:01 +0800)]
Add `xwidget-webkit-load-html'

* doc/lispref/display.texi (Xwidgets): Document new function.
* etc/NEWS: Announce new function.
* src/xwidget.c (Fxwidget_webkit_load_html): New function.
(syms_of_xwidget): Define new subr.

3 years ago; Refer to Repeating from compare-windows info node
Filipp Gunbin [Wed, 10 Nov 2021 20:00:56 +0000 (23:00 +0300)]
; Refer to Repeating from compare-windows info node

* doc/emacs/files.texi (Comparing Files): C-x z (`repeat') is very
convenient to use with compare-windows, so refer to its node.

3 years ago* etc/NEWS.28: Add changes omitted while merging from emacs-28 NEWS.
Juri Linkov [Wed, 10 Nov 2021 18:36:41 +0000 (20:36 +0200)]
* etc/NEWS.28: Add changes omitted while merging from emacs-28 NEWS.

3 years ago* etc/NEWS: Remove old news accidentally merged from emacs-28.
Juri Linkov [Wed, 10 Nov 2021 18:23:16 +0000 (20:23 +0200)]
* etc/NEWS: Remove old news accidentally merged from emacs-28.

3 years agoFix font weights on MS-Windows
Eli Zaretskii [Wed, 10 Nov 2021 18:17:33 +0000 (20:17 +0200)]
Fix font weights on MS-Windows

* src/w32font.c (w32_decode_weight, w32_encode_weight)
(w32_to_fc_weight): Adjust weight translations to match those in
font.c and gtkutil.c:xg_weight_to_symbol.  (Bug#51704)

3 years agoImprove 'ensure-empty-lines' docstring
Robert Pluim [Wed, 10 Nov 2021 16:42:30 +0000 (17:42 +0100)]
Improve 'ensure-empty-lines' docstring

* lisp/emacs-lisp/subr-x.el (ensure-empty-lines): Fix typo and improve
wording.

3 years ago; * etc/NEWS: Improve some entries.
Robert Pluim [Wed, 10 Nov 2021 15:25:55 +0000 (16:25 +0100)]
; * etc/NEWS: Improve some entries.

3 years ago; * etc/NEWS: Fix merge error
Robert Pluim [Wed, 10 Nov 2021 16:03:32 +0000 (17:03 +0100)]
; * etc/NEWS: Fix merge error

3 years ago; * etc/NEWS: Fix merge error
Robert Pluim [Wed, 10 Nov 2021 15:45:47 +0000 (16:45 +0100)]
; * etc/NEWS: Fix merge error

3 years ago* admin/update_autogen: Remove unused variables.
Stefan Kangas [Wed, 10 Nov 2021 15:37:47 +0000 (16:37 +0100)]
* admin/update_autogen: Remove unused variables.

3 years agoUse "grep -E" instead of deprecated "egrep"
Stefan Kangas [Wed, 10 Nov 2021 15:30:50 +0000 (16:30 +0100)]
Use "grep -E" instead of deprecated "egrep"

* admin/emake:
* test/lisp/so-long-tests/so-long-tests.el: Use "grep -E" instead of
deprecated "egrep".

3 years agoAvoid another byte-compiler warning in package-quickstart.el
Stefan Kangas [Wed, 10 Nov 2021 14:15:09 +0000 (15:15 +0100)]
Avoid another byte-compiler warning in package-quickstart.el

* lisp/emacs-lisp/package.el (package-quickstart-refresh): Avoid
byte-compiler warning "assignment to free variable" in
package-quickstart.el.

3 years agoAvoid spurious byte-compiler warnings in package-quickstart.el
Stefan Kangas [Wed, 10 Nov 2021 13:49:44 +0000 (14:49 +0100)]
Avoid spurious byte-compiler warnings in package-quickstart.el

* lisp/emacs-lisp/package.el (package-quickstart-refresh): Disable the
"`make-variable-buffer-local' not called at toplevel" byte-compiler
warnings.  Given that we wrap it all in a let-form, these are mostly
false positives and not helpful.

3 years ago* admin/automerge: Fix quoting of some variables.
Stefan Kangas [Wed, 10 Nov 2021 12:06:24 +0000 (13:06 +0100)]
* admin/automerge: Fix quoting of some variables.

3 years ago* admin/automerge: Use mktemp if it exists.
Stefan Kangas [Wed, 10 Nov 2021 12:01:30 +0000 (13:01 +0100)]
* admin/automerge: Use mktemp if it exists.

3 years agoPrevent GDK warning about missing event devices in most cases
Po Lu [Wed, 10 Nov 2021 11:40:23 +0000 (19:40 +0800)]
Prevent GDK warning about missing event devices in most cases

* src/xwidget.c (synthesize_focus_in_event): Set event device to
selected frame's pointer if it's an X frame.

3 years agoAdd `xwidget-webkit-isearch-yank-kill'
Po Lu [Wed, 10 Nov 2021 10:13:22 +0000 (18:13 +0800)]
Add `xwidget-webkit-isearch-yank-kill'

* lisp/xwidget.el: Bind C-y to xwidget-webkit-yank-kill in incremental
search.
(xwidget-webkit-isearch-mode): Update doc string.
(xwidget-webkit-yank-kill): New function.

3 years agoMerge from origin/emacs-28
Stefan Kangas [Wed, 10 Nov 2021 11:12:30 +0000 (12:12 +0100)]
Merge from origin/emacs-28

8d81ab374d time-stamp: %F is "file name" not "pathname" + other doc
beaa7e14f3 ; Fix typos in CONTRIBUTE, ELisp manual, ediff
747a1ae4ac * doc/misc/eww.texi (Advanced): Fix missed variable name e...
52fe2340b8 * doc/emacs/windows.texi (Window Convenience): Use @code f...
7d3a654e2a * doc/emacs/maintaining.texi (Basic VC Editing): Mention D...
aeb19af4b5 ; * doc/emacs/building.texi (Lisp Libraries): Fix a typo. ...

# Conflicts:
# etc/NEWS

3 years ago; Merge from origin/emacs-28
Stefan Kangas [Wed, 10 Nov 2021 11:12:29 +0000 (12:12 +0100)]
; Merge from origin/emacs-28

The following commit was skipped:

a83ccc46fa * lisp/progmodes/prog-mode.el (prog-context-menu): Use "Go...

3 years agoMerge from origin/emacs-28
Stefan Kangas [Wed, 10 Nov 2021 11:12:29 +0000 (12:12 +0100)]
Merge from origin/emacs-28

2782bc113e Revert "Fix localized display of date and time in the NS p...

3 years agoPrevent skipping results while changing search direction
Po Lu [Wed, 10 Nov 2021 09:53:13 +0000 (17:53 +0800)]
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.

3 years agoMake the python missing-readline warning more helpful
Benj [Wed, 10 Nov 2021 09:07:04 +0000 (10:07 +0100)]
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

3 years ago; * doc/lispref/files.texi: Fix typo.
Robert Pluim [Wed, 10 Nov 2021 07:56:03 +0000 (08:56 +0100)]
; * doc/lispref/files.texi: Fix typo.

3 years agoMake `C-c C-c' in erts-mode work with Point-Char elems
Lars Ingebrigtsen [Wed, 10 Nov 2021 07:52:10 +0000 (08:52 +0100)]
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.

3 years agoRemove obsolete limitation
Po Lu [Wed, 10 Nov 2021 07:47:56 +0000 (15:47 +0800)]
Remove obsolete limitation

* src/xwidget.c (Fxwidget_webkit_goto_history): Accept any fixnum as
REL-POS, to be consistent with docstring.

3 years agoFix incorrect offset calculation for clipped xwidget views
Po Lu [Wed, 10 Nov 2021 06:29:54 +0000 (14:29 +0800)]
Fix incorrect offset calculation for clipped xwidget views

* src/xwidget.c (from_embedder, to_embedder): Remove incorrect
adjustment of position by view clipping.

3 years agoFix invisible content in WebKit dialogs
Po Lu [Wed, 10 Nov 2021 06:19:15 +0000 (14:19 +0800)]
Fix invisible content in WebKit dialogs

* src/xwidget.c (webkit_script_dialog_cb): Use custom label instead of
dialog box title to display message.

3 years agoSet embedder correctly to fix menus appearing in the wrong location
Po Lu [Wed, 10 Nov 2021 01:22:38 +0000 (09:22 +0800)]
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'.

3 years agoRevert "Fix mouse face in NS port"
Po Lu [Wed, 10 Nov 2021 06:04:26 +0000 (14:04 +0800)]
Revert "Fix mouse face in NS port"

This reverts commit 278e4fc9c6353068334dd39d45334b1df82a6cee.

3 years agoRevert "*** empty log message ***"
Po Lu [Wed, 10 Nov 2021 06:04:25 +0000 (14:04 +0800)]
Revert "*** empty log message ***"

This reverts commit 68a2a3307d1703ac8abe4b54c8e1ef9dda677c12.

3 years agoRevert "Add support for event processing via XInput 2"
Po Lu [Wed, 10 Nov 2021 06:04:24 +0000 (14:04 +0800)]
Revert "Add support for event processing via XInput 2"

This reverts commit 346cfc81247e6bf8e727a27b42f44f2389bd1269.

3 years agoRevert "Fix erasing cursor on top of raised boxes in NS port"
Po Lu [Wed, 10 Nov 2021 06:04:22 +0000 (14:04 +0800)]
Revert "Fix erasing cursor on top of raised boxes in NS port"

This reverts commit 2b5a2ab50b7817f84ae38f84b4ea36ea38cd5a3b.

3 years agoRevert "Revert "Fix erasing cursor on top of raised boxes in NS port""
Po Lu [Wed, 10 Nov 2021 06:04:21 +0000 (14:04 +0800)]
Revert "Revert "Fix erasing cursor on top of raised boxes in NS port""

This reverts commit 7117bbc7aa905ae785fa564cb24c3fc75ef1d543.

3 years agoRevert "Support opening the toolkit menu bar on NS"
Po Lu [Wed, 10 Nov 2021 06:04:05 +0000 (14:04 +0800)]
Revert "Support opening the toolkit menu bar on NS"

This reverts commit ff9cf991c1608cd2578a66cba41e654a2b5d9144.

3 years agoSupport opening the toolkit menu bar on NS
oldosfan [Wed, 20 Oct 2021 02:54:27 +0000 (10:54 +0800)]
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.

3 years agoRevert "Fix erasing cursor on top of raised boxes in NS port"
oldosfan [Mon, 18 Oct 2021 00:09:40 +0000 (08:09 +0800)]
Revert "Fix erasing cursor on top of raised boxes in NS port"

This reverts commit 960f0eb9ab657af85c532574b937d8851049b178.

3 years agoFix erasing cursor on top of raised boxes in NS port
oldosfan [Sun, 17 Oct 2021 13:12:03 +0000 (21:12 +0800)]
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.

3 years agoAdd support for event processing via XInput 2
oldosfan [Mon, 1 Nov 2021 00:19:32 +0000 (08:19 +0800)]
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

3 years ago*** empty log message ***
oldosfan [Fri, 15 Oct 2021 10:41:50 +0000 (18:41 +0800)]
*** empty log message ***

3 years agoFix mouse face in NS port
oldosfan [Thu, 14 Oct 2021 03:05:00 +0000 (11:05 +0800)]
Fix mouse face in NS port

* src/nsterm.m (ns_draw_glyph_string): Set s->face to the mouse face.

3 years agoFix package-tests failure on native-comp
Lars Ingebrigtsen [Wed, 10 Nov 2021 04:19:48 +0000 (05:19 +0100)]
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.

3 years agotime-stamp: %F is "file name" not "pathname" + other doc
Stephen Gildea [Wed, 10 Nov 2021 04:09:22 +0000 (20:09 -0800)]
time-stamp: %F is "file name" not "pathname" + other doc

* lisp/time-stamp.el (time-stamp-format): doc 'file' instead of 'path'.
* test/lisp/time-stamp-tests.el (formatz, format-time-offset):
Clarify the difference and similarity between these two test helpers.

3 years agoFix the look of the <video> elements in shr
Lars Ingebrigtsen [Wed, 10 Nov 2021 01:31:54 +0000 (02:31 +0100)]
Fix the look of the <video> elements in shr

* lisp/net/shr.el (shr-tag-video): Tweak the look of the video element.

3 years agoTry to fix intermittent build problem on Macos
Lars Ingebrigtsen [Wed, 10 Nov 2021 01:21:48 +0000 (02:21 +0100)]
Try to fix intermittent build problem on Macos

* src/Makefile.in (@): Also sign the bootstrap-emacs executable

3 years ago; Fix typos in CONTRIBUTE, ELisp manual, ediff
Tom Levy [Tue, 9 Nov 2021 12:51:48 +0000 (12:51 +0000)]
; Fix typos in CONTRIBUTE, ELisp manual, ediff

* CONTRIBUTE: Remove stray '. after git command.
* doc/lispref/functions.texi (Function Cells): Fix typo.
* lisp/vc/ediff.el (ediff-regions-wordwise): Fix typo in prompts
("Region's A buffer" => "Region A's buffer") (bug#51718).

Copyright-paperwork-exempt: yes

3 years agoRemove spurious %S from 'define-error' messages
Tom Levy [Tue, 9 Nov 2021 12:25:24 +0000 (12:25 +0000)]
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

3 years agoAllow 'undo-redo' to be called from Lisp without repeat count
Tom Levy [Tue, 9 Nov 2021 12:05:28 +0000 (12:05 +0000)]
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

3 years agoPrevent BadValue errors when creating tiny xwidget views
Po Lu [Tue, 9 Nov 2021 23:52:47 +0000 (00:52 +0100)]
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).

3 years agoAdd new function 'file-name-split'
Lars Ingebrigtsen [Tue, 9 Nov 2021 23:26:32 +0000 (00:26 +0100)]
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.

3 years agoMake `dired-split' obsolete
Lars Ingebrigtsen [Tue, 9 Nov 2021 22:58:42 +0000 (23:58 +0100)]
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.

3 years ago* doc/misc/eww.texi (Advanced): Fix missed variable name eww-retrieve-command.
Juri Linkov [Tue, 9 Nov 2021 20:45:17 +0000 (22:45 +0200)]
* doc/misc/eww.texi (Advanced): Fix missed variable name eww-retrieve-command.

3 years ago* doc/emacs/windows.texi (Window Convenience): Use @code for windmove.
Juri Linkov [Tue, 9 Nov 2021 20:43:54 +0000 (22:43 +0200)]
* doc/emacs/windows.texi (Window Convenience): Use @code for windmove.

This refers to both a command and a user option.

* etc/NEWS: Add some ---.

3 years ago* doc/emacs/maintaining.texi (Basic VC Editing): Mention Dired buffer.
Juri Linkov [Tue, 9 Nov 2021 20:40:15 +0000 (22:40 +0200)]
* doc/emacs/maintaining.texi (Basic VC Editing): Mention Dired buffer.

* doc/emacs/text.texi (Outline Mode): Replace S-TAB with with S-<TAB>.

* etc/NEWS: Add some missing +++/--- and move some related items closer.

3 years ago* lisp/net/tramp-cache.el (tramp-persistency-file-name):
Michael Albinus [Tue, 9 Nov 2021 19:24:03 +0000 (20:24 +0100)]
* lisp/net/tramp-cache.el (tramp-persistency-file-name):

Skip superfluous `expand-file-name'.

3 years agoImprove performance when checking case-sensitivity of Tramp file names
Jim Porter [Tue, 9 Nov 2021 18:59:14 +0000 (19:59 +0100)]
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.

3 years agoAdd back/forward mouse button bindings in eww
Stefan Kangas [Tue, 9 Nov 2021 17:07:30 +0000 (18:07 +0100)]
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.

3 years ago; * doc/emacs/building.texi (Lisp Libraries): Fix a typo. (Bug#51717)
Eli Zaretskii [Tue, 9 Nov 2021 13:51:24 +0000 (15:51 +0200)]
; * doc/emacs/building.texi (Lisp Libraries): Fix a typo.  (Bug#51717)

3 years ago* lisp/progmodes/prog-mode.el (prog-context-menu): Use "Go Back" (bug#38797)
Juri Linkov [Tue, 9 Nov 2021 08:29:37 +0000 (10:29 +0200)]
* lisp/progmodes/prog-mode.el (prog-context-menu): Use "Go Back" (bug#38797)

; Do not merge to master.

3 years ago* lisp/progmodes/prog-mode.el (prog-context-menu): Add "Go Forward".
Juri Linkov [Tue, 9 Nov 2021 08:24:44 +0000 (10:24 +0200)]
* 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).

3 years ago* lisp/vc/diff-mode.el (diff-setup-buffer-type): Move to diff-setup-whitespace
Juri Linkov [Tue, 9 Nov 2021 08:18:24 +0000 (10:18 +0200)]
* 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).

3 years agoRevert "Fix localized display of date and time in the NS port"
Stefan Kangas [Tue, 9 Nov 2021 07:49:34 +0000 (08:49 +0100)]
Revert "Fix localized display of date and time in the NS port"

This reverts commit 5e05be566b0e13ce0b4e75da663fb051039f0751.

This was discussed in
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=51321#93

3 years agoExpand the etc/NEWS section about the `medium' font changes
Lars Ingebrigtsen [Tue, 9 Nov 2021 07:36:28 +0000 (08:36 +0100)]
Expand the etc/NEWS section about the `medium' font changes

* etc/NEWS: Expand upon the addition of the `medium' weight
(bug#51704).

3 years agoFix compiler warning building net/shr.el without xwidget support
Po Lu [Tue, 9 Nov 2021 07:27:23 +0000 (08:27 +0100)]
Fix compiler warning building net/shr.el without xwidget support

* lisp/net/shr.el (xwidget-webkit-execute-script): New function
declaration (bug#51705).

3 years agoFix default target of motion events
Po Lu [Tue, 9 Nov 2021 07:24:45 +0000 (08:24 +0100)]
Fix default target of motion events

* src/xwidget.c (xwidget_motion_or_crossing): Default to widget_osr
instead of its window (bug#51703).

3 years agoPrefer locate-user-emacs-file
Stefan Kangas [Tue, 9 Nov 2021 06:51:18 +0000 (07:51 +0100)]
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.

3 years agoAlways set xwidget title if the event was "load-finished"
Po Lu [Tue, 9 Nov 2021 06:46:48 +0000 (07:46 +0100)]
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).

3 years agoMake `kill_frame_xwidget_views' safe
Po Lu [Tue, 9 Nov 2021 06:44:38 +0000 (07:44 +0100)]
Make `kill_frame_xwidget_views' safe

* src/xwidget.c (kill_frame_xwidget_views): Check XWIDGET_VIEW_P
(bug#51701).

3 years agoDon't create temporary files for <video>
Lars Ingebrigtsen [Tue, 9 Nov 2021 06:10:18 +0000 (07:10 +0100)]
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.

3 years agoMerge from origin/emacs-28
Stefan Kangas [Tue, 9 Nov 2021 05:59:24 +0000 (06:59 +0100)]
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

3 years agoMake xwidget-tests pass again
Po Lu [Tue, 9 Nov 2021 05:49:15 +0000 (06:49 +0100)]
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).

3 years agoFix typo in last shr change
Lars Ingebrigtsen [Tue, 9 Nov 2021 05:44:58 +0000 (06:44 +0100)]
Fix typo in last shr change

* lisp/net/shr.el (shr-tag-video): Require xwidgets, because it's
used from callbacks.

3 years agoFix shr-tag-video startup issue
Lars Ingebrigtsen [Tue, 9 Nov 2021 05:26:57 +0000 (06:26 +0100)]
Fix shr-tag-video startup issue

* lisp/net/shr.el (shr-tag-video): Require xwidgets, because it's
used from callbacks.

3 years agoOptionally use use xwidgets to display <video> elements in shr
Lars Ingebrigtsen [Tue, 9 Nov 2021 05:19:09 +0000 (06:19 +0100)]
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.

3 years agoMake image-compute-scaling-factor argument optional
Lars Ingebrigtsen [Tue, 9 Nov 2021 04:55:32 +0000 (05:55 +0100)]
Make image-compute-scaling-factor argument optional

* lisp/image.el (image-compute-scaling-factor): Make the argument
optional.

3 years agoARGUMENTS in Fmake_xwidget is optional
Lars Ingebrigtsen [Tue, 9 Nov 2021 04:51:37 +0000 (05:51 +0100)]
ARGUMENTS in Fmake_xwidget is optional

* src/xwidget.c (Fmake_xwidget): The ARGUMENTS argument isn't
mandatory.

3 years agoMake xwidget-event-handler more resilient
Lars Ingebrigtsen [Tue, 9 Nov 2021 04:48:28 +0000 (05:48 +0100)]
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.

3 years agoDelete temp directory after bytecomp test
Lars Ingebrigtsen [Tue, 9 Nov 2021 04:28:48 +0000 (05:28 +0100)]
Delete temp directory after bytecomp test

* test/lisp/emacs-lisp/bytecomp-tests.el
(bytecomp-tests--not-writable-directory): Allow deletion of
directory (bug#51690).

* test/lisp/emacs-lisp/bytecomp-tests.el
(bytecomp-tests--dest-mountpoint): Ditto.

3 years agoFix flicker when setting hscroll of xwidget
Po Lu [Tue, 9 Nov 2021 04:06:24 +0000 (05:06 +0100)]
Fix flicker when setting hscroll of xwidget

* src/xterm.c (x_scroll_run): Use original height of xwidget instead
of window height and set cairo surface size (bug#51697).

3 years agoRaise an error if creating an unknown xwidget type
Po Lu [Tue, 9 Nov 2021 04:03:47 +0000 (05:03 +0100)]
Raise an error if creating an unknown xwidget type

* src/xwidget.c (Fmake_xwidget): Error if TYPE is invalid (bug#51682).

3 years agoReally fix xwidget scroll optimization and clip
Po Lu [Tue, 9 Nov 2021 04:02:25 +0000 (05:02 +0100)]
Really fix xwidget scroll optimization and clip

* src/xterm.c (x_scroll_run): Improve clip detection.
* src/xwidget.c (xv_do_draw): Use cairo_translate.
(xwidget_motion_or_crossing): Use correct fields (bug#51681).

3 years agoxwidget.el: limit buffer-name flicker in mode-line
Feng Shu [Tue, 9 Nov 2021 03:52:59 +0000 (04:52 +0100)]
xwidget.el: limit buffer-name flicker in mode-line

* lisp/xwidget.el (xwidget-webkit): New customization group.
(xwidget-webkit-buffer-name-prefix): New user option.
(xwidget-webkit-callback): with-current-buffer only after get title,
which can limit buffer-name change in mode-line.
(xwidget-webkit-new-session, xwidget-webkit-import-widget): Use
current buffer to generate a temp xwidget-webkit buffer.

3 years agoFix local variables overwritten when diff-mode is set
Matthias Meulien [Tue, 9 Nov 2021 03:46:53 +0000 (04:46 +0100)]
Fix local variables overwritten when diff-mode is set

* lisp/vc/diff-mode.el (diff-mode):
(diff-setup-buffer-type): Defun to initialize `diff-buffer-type'

* lisp/vc/vc.el (vc-diff-finish): Set `diff-buffer-type' after content
inserted
(vc-diff-internal): Restore `diff-mode' being set before local
variables (bug#51016).

3 years agoAllow yank-media-types to also show the unsupported data types
Lars Ingebrigtsen [Tue, 9 Nov 2021 03:41:14 +0000 (04:41 +0100)]
Allow yank-media-types to also show the unsupported data types

* lisp/yank-media.el (yank-media-types): Make the prefix include
data types not supported by the backend, too.

3 years ago; * lisp/emacs-lisp/lisp-mode.el: Restore one check in flet handling
akater [Tue, 9 Nov 2021 03:25:24 +0000 (04:25 +0100)]
; * lisp/emacs-lisp/lisp-mode.el: Restore one check in flet handling

* lisp/emacs-lisp/lisp-mode.el (lisp--local-defform-body-p):
Do check backward-up-list executing without errors (bug#9622).

3 years agoDon't have nntp-report signal an error
Eric Abrahamsen [Mon, 1 Nov 2021 01:01:15 +0000 (18:01 -0700)]
Don't have nntp-report signal an error

* lisp/gnus/nntp.el (nntp-report): This should behave as much as
possible like nnheader-report, which only logs the error and returns
nil.

3 years ago* lisp/mouse.el (mouse-buffer-menu-mode-groups): Tighten "Version Control".
Juri Linkov [Mon, 8 Nov 2021 19:23:44 +0000 (21:23 +0200)]
* lisp/mouse.el (mouse-buffer-menu-mode-groups): Tighten "Version Control".

Use word boundaries in the "Version Control" regexp to match mode names
"Log-Edit", "Log-View", "Git-Log-View", "Change Log", "VC dir",
but not "Verilog", "Prolog", "Rlogin" (bug#51337).

3 years ago* lisp/xdg.el (xdg--dir-home): Make it a function
Stefan Monnier [Tue, 26 Oct 2021 15:39:32 +0000 (11:39 -0400)]
* lisp/xdg.el (xdg--dir-home): Make it a function

3 years ago* doc/emacs/search.texi (Isearch Yank): Add isearch-forward-thing-at-point.
Juri Linkov [Mon, 8 Nov 2021 17:36:57 +0000 (19:36 +0200)]
* doc/emacs/search.texi (Isearch Yank): Add isearch-forward-thing-at-point.

; * etc/NEWS: Add +++ for isearch-forward-thing-at-point, reorder (bug#51444).

3 years ago* lisp/subr.el (with-undo-amalgamate): New macro
Campbell Barton [Mon, 8 Nov 2021 05:33:39 +0000 (16:33 +1100)]
* lisp/subr.el (with-undo-amalgamate): New macro

This allows commands to be made without adding undo-barriers, e.g.
kmacro-exec-ring-item.

3 years ago* lisp/emacs-lisp/cl-generic.el: Add reference to inspiration
Stefan Monnier [Mon, 8 Nov 2021 13:20:43 +0000 (08:20 -0500)]
* lisp/emacs-lisp/cl-generic.el: Add reference to inspiration

3 years agoSwitch yank-media--get-selection back to the backend function
Lars Ingebrigtsen [Mon, 8 Nov 2021 11:27:01 +0000 (12:27 +0100)]
Switch yank-media--get-selection back to the backend function

* lisp/yank-media.el (yank-media--get-selection): Switch back to
gui-backend-get-selection until gui-get-selection is re-fixed.

3 years agoRevert "Fix charset issues when yanking non-plain-text elements"
Lars Ingebrigtsen [Mon, 8 Nov 2021 11:22:56 +0000 (12:22 +0100)]
Revert "Fix charset issues when yanking non-plain-text elements"

This reverts commit 5e66c75e0b6b91b6f5d9aa46c824e8209ade8f2a.

This apparently led to problems on Windows.  The issues have to
be examined first before attempting a new fix.

3 years ago* admin/automerge: Die if changing directory fails.
Stefan Kangas [Mon, 8 Nov 2021 08:44:09 +0000 (09:44 +0100)]
* admin/automerge: Die if changing directory fails.

3 years agoMerge from origin/emacs-28
Stefan Kangas [Mon, 8 Nov 2021 08:30:18 +0000 (09:30 +0100)]
Merge from origin/emacs-28

fe91f4438c ; * etc/PROBLEMS: Move librsvg-related item to better loca...

3 years agoRemove code what would always maximize xwidgets on Macos
Lars Ingebrigtsen [Mon, 8 Nov 2021 07:01:07 +0000 (08:01 +0100)]
Remove code what would always maximize xwidgets on Macos

* src/xwidget.c (x_draw_xwidget_glyph_string): Remove code that
would always maximize the widget on Macos (bug#51674).  This code
was probably added to work around a resizing bug that has since
been fixed.

3 years agolisp/emacs-lisp/lisp-mode.el: Fix parser state corruption.
akater [Mon, 8 Nov 2021 06:37:51 +0000 (07:37 +0100)]
lisp/emacs-lisp/lisp-mode.el: Fix parser state corruption.

* lisp/emacs-lisp/lisp-mode.el (lisp--local-defform-body-p): Preserve
the point.
* test/lisp/progmodes/elisp-mode-resources/flet.erts: Add corresponding
test example (bug#9622).

3 years agoFix resize of xwidgets on GTK
Po Lu [Mon, 8 Nov 2021 05:34:09 +0000 (06:34 +0100)]
Fix resize of xwidgets on GTK

* src/xwidget.c (Fxwidget_resize): Queue widget for re-allocation
after setting its size request (bug#51679).

3 years ago; * lisp/image-dired.el: Add some basic sections.
Stefan Kangas [Mon, 8 Nov 2021 05:42:44 +0000 (06:42 +0100)]
; * lisp/image-dired.el: Add some basic sections.

This file is currently rather hard to follow due to things just being
thrown in at random by many different contributors, with seemingly no
overall plan or idea.  This is the first step towards giving it some
kind of organization.