1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-13 03:06:23 -08:00
Commit graph

151636 commits

Author SHA1 Message Date
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
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
Lars Ingebrigtsen
97fa2ffdf7 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.
2021-11-09 05:28:48 +01:00
Po Lu
35f9e0f469 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).
2021-11-09 05:06:24 +01:00
Po Lu
b5efdccefb Raise an error if creating an unknown xwidget type
* src/xwidget.c (Fmake_xwidget): Error if TYPE is invalid (bug#51682).
2021-11-09 05:03:47 +01:00
Po Lu
394f6b9167 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).
2021-11-09 05:02:25 +01:00
Feng Shu
06fb81922d 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.
2021-11-09 04:52:59 +01:00
Matthias Meulien
358b8d0361 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).
2021-11-09 04:46:53 +01:00
Lars Ingebrigtsen
e96e6a1ba5 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.
2021-11-09 04:41:14 +01:00
akater
3fd0e7fba6 ; * 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).
2021-11-09 04:26:05 +01:00
Eric Abrahamsen
032969e8c6 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.
2021-11-08 11:29:47 -08:00
Juri Linkov
307d164c9c * 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).
2021-11-08 21:23:44 +02:00
Stefan Monnier
58e271fc5e * lisp/xdg.el (xdg--dir-home): Make it a function 2021-11-08 14:11:07 -05:00
Juri Linkov
818211ed89 * doc/emacs/search.texi (Isearch Yank): Add isearch-forward-thing-at-point.
; * etc/NEWS: Add +++ for isearch-forward-thing-at-point, reorder (bug#51444).
2021-11-08 19:36:57 +02:00
Campbell Barton
5861b8d027 * lisp/subr.el (with-undo-amalgamate): New macro
This allows commands to be made without adding undo-barriers, e.g.
kmacro-exec-ring-item.
2021-11-08 08:34:52 -05:00
Stefan Monnier
4f365eec10 * lisp/emacs-lisp/cl-generic.el: Add reference to inspiration 2021-11-08 08:20:43 -05:00
Lars Ingebrigtsen
41b1fa05c7 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.
2021-11-08 12:27:01 +01:00
Lars Ingebrigtsen
10b4cbb2fc Revert "Fix charset issues when yanking non-plain-text elements"
This reverts commit 5e66c75e0b.

This apparently led to problems on Windows.  The issues have to
be examined first before attempting a new fix.
2021-11-08 12:22:56 +01:00
Stefan Kangas
990aad47bd * admin/automerge: Die if changing directory fails. 2021-11-08 09:55:22 +01:00
Stefan Kangas
2b7a0397e1 Merge from origin/emacs-28
fe91f4438c ; * etc/PROBLEMS: Move librsvg-related item to better loca...
2021-11-08 09:30:18 +01:00
Lars Ingebrigtsen
846ff29420 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.
2021-11-08 08:01:07 +01:00
akater
ca9fb109f7 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).
2021-11-08 07:38:41 +01:00
Po Lu
51aa6cee2c Fix resize of xwidgets on GTK
* src/xwidget.c (Fxwidget_resize): Queue widget for re-allocation
after setting its size request (bug#51679).
2021-11-08 07:38:41 +01:00
Stefan Kangas
cc093b03e0 ; * 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.
2021-11-08 07:37:48 +01:00
Po Lu
553e4b74f7 Fix hang when displaying xwidget script dialog
* src/xwidget.c (webkit_script_dialog_cb): New function.
(Fmake_xwidget): Attach script callback signal (bug#51674).
2021-11-08 06:25:02 +01:00
Stefan Kangas
a1e11502d6 image-dired: Set window-resize-pixelwise to t
* lisp/image-dired.el (image-dired-thumbnail-mode): Set
'window-resize-pixelwise' to t.
2021-11-08 06:21:57 +01:00