Robert Pluim
a491b73c76
Improve 'ensure-empty-lines' docstring
...
* lisp/emacs-lisp/subr-x.el (ensure-empty-lines): Fix typo and improve
wording.
2021-11-10 17:42:30 +01:00
Stefan Kangas
810fa21d26
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.
2021-11-10 15:24:29 +01:00
Stefan Kangas
1e7720d39a
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.
2021-11-10 14:52:38 +01:00
Po Lu
4ab7a22abe
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.
2021-11-10 19:43:53 +08:00
Stefan Kangas
acf408934d
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
2021-11-10 12:12:30 +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
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
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
Stephen Gildea
8d81ab374d
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.
2021-11-09 20:11:07 -08: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
Tom Levy
beaa7e14f3
; 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
2021-11-10 01:17:42 +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
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
a83ccc46fa
* lisp/progmodes/prog-mode.el (prog-context-menu): Use "Go Back" (bug#38797)
...
; Do not merge to master.
2021-11-09 10:29:37 +02: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
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
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
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
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
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
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
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
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
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
Lars Ingebrigtsen
a460f3d378
Make html-mode--html-yank-handler more resilient
...
* lisp/textmodes/sgml-mode.el (html-mode--html-yank-handler): The
HTML may not be valid, so suppress errors.
2021-11-08 06:04:11 +01:00
Lars Ingebrigtsen
19f37afe27
Fix yank-media--get-selection thinko in previous change
...
* lisp/yank-media.el (yank-media--get-selection): Fix thinko after
previous change.
2021-11-08 06:03:41 +01:00