1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-09 21:20:45 -08:00
Commit graph

175585 commits

Author SHA1 Message Date
Dmitry Gutov
0624fe6f84 Make Xref commands follow 'display-buffer' customizations
* lisp/progmodes/xref.el (xref--show-pos-in-buf): Append
'(category . xref-jump)' to display-buffer action argument, when
the target window or frame is not made explicit by the command.
(xref--switch-to-buffer): New function (bug#74361).
Do the switch through 'pop-to-buffer' and use the new category.
(xref-go-back, xref-go-forward, xref-pop-to-location): Use it.
* etc/NEWS: Describe the change.
2024-11-27 03:43:22 +02:00
Dmitry Gutov
298bbf3cd7 * lisp/files.el (major-mode-remap-alist): Add :tag annotations to :type. 2024-11-26 23:34:55 +02:00
Robert Pluim
775290efdf ; * doc/misc/tramp.texi (Frequently Asked Questions): Minor edits. 2024-11-26 18:01:38 +01:00
Michael Albinus
3fe787ad4d Support fingerprint readers in Tramp
* doc/misc/tramp.texi (Frequently Asked Questions): Speak about
fingerprint readers.

* lisp/net/tramp-sh.el (tramp-actions-before-shell):
Use `tramp-fingerprint-prompt-regexp'.

* lisp/net/tramp.el (tramp-wrong-passwd-regexp): Add fingerprint
messages.
(tramp-fingerprint-prompt-regexp, tramp-use-fingerprint):
New defcustoms.
(tramp-action-fingerprint, tramp-action-show-message): New defuns.
(tramp-action-show-and-confirm-message): Start check at (point-min).

* test/lisp/net/tramp-tests.el (tramp-test47-read-fingerprint):
New test.
2024-11-26 12:45:06 +01:00
Stefan Monnier
83968cbeee (undo-delta): Handle apply elements (bug#74523)
* lisp/simple.el (undo-delta): Handle `apply` elements.

* test/lisp/simple-tests.el (simple-tests--undo-apply): New test.
(simple-tests--undo-equiv-table): Adjust test so it's not influenced by
previous operation.
2024-11-25 10:13:38 -05:00
Michael Albinus
0d46615110 Extend Tramp FAQ
* doc/misc/tramp.texi (Frequently Asked Questions): Improve index.
Recommend `small-temporary-file-directory' for ssh sockets.
2024-11-25 11:29:40 +01:00
Aaron Jensen
cf3ea44eb5 Silence warning message in NS (bug#59790)
* src/nsterm.m ([EmacsWindow createToolbar:]): Disable toolbar when
fullscreen.
2024-11-24 12:03:46 +00:00
Aaron Jensen
20aa29b037 Remove NS non-native fullscreen pause (bug#28443)
* src/nsterm.m (ns_fullscreen_hook): Remove timer workaround
2024-11-24 12:03:46 +00:00
Jim Porter
b4655ff99b Remove 'eshell-escape-arg'
Eshell no longer needs this function, since all command parsing is
performed first, with special syntax annotated with text properties as
needed, as opposed to marking literal text with a property (bug#54486).

* lisp/eshell/em-pred.el (eshell-modifier-alist): Make "q" modifier
obsolete.
(eshell-modifier-help-string): Remove mention of "q".

* lisp/eshell/esh-arg.el (eshell-escape-arg): Make obsolete.
(eshell-parse-backslash, eshell-parse-literal-quote)
(eshell-parse-double-quote): Don't call 'eshell-escape-arg'.

* lisp/eshell/esh-var.el (eshell-parse-variable): Don't call
'eshell-escape-arg'.

* test/lisp/eshell/em-extpipe-tests.el (em-extpipe-test-2)
(em-extpipe-test-9, em-extpipe-test-11): Remove 'eshell-escape-arg'.

* test/lisp/eshell/em-pred-tests.el (em-pred-test/modifier-quote):
Remove test.

* test/lisp/eshell/esh-var-tests.el
(esh-var-test/quoted-interp-var-indices)
(esh-var-test/quote-interp-var-indices-subcommand): Remove workaround in
tests.

* doc/misc/eshell.texi (Argument Modifiers): Remove documentation of
obsolete "q" modifier.
2024-11-23 22:40:43 -08:00
Stefan Monnier
f713258416 (dir-locals-collect-variables): Don't autoload if not needed (bug#74349)
While dir-local settings for `c-mode` may require (auto)loading `cc-mode.el`
to get all the `safe-local-variable` properties, they may not.  So before
(auto)loading that file, make sure we don't already have all the
`safe-local-variable` properties we need.

* lisp/files.el (dir-locals--load-mode-if-needed): New function.
(hack-one-local-variable): Don't inf-loop if `eval` calls a major mode.
(dir-locals-collect-variables): Use `dir-locals--load-mode-if-needed`.
2024-11-23 22:08:54 -05:00
john muhl
e71d714a81 Avoid loading 'rx' at runtime in 'lua-ts-mode'
* lisp/progmodes/lua-ts-mode.el (lua-ts-inferior-lua):
Replace 'rx-to-string' and substitution with 'rx' and 'literal'.
(Bug#74499)
2024-11-24 02:21:08 +01:00
Sean Whitton
eb1756a8a5 Improve marking if-let and when-let obsolete
* lisp/subr.el (if-let): Use a declaration instead of
make-obsolete.
(when-let): Use a declaration instead of make-obsolete.  Use
with-suppressed-warnings to avoid generating two warnings.
2024-11-24 08:44:18 +08:00
Stefan Kangas
0438305773 ; * etc/symbol-releases.eld: Rearrange. 2024-11-23 18:37:02 +01:00
Stefan Kangas
80a2c74f3b ; * etc/symbol-releases.eld: Add if-let/when-let. 2024-11-23 18:37:02 +01:00
Michael Albinus
abcc8c717d ; Fix bootstrap
* lisp/net/tramp.el (tramp-initial-file-name-regexp)
(tramp-autoload-file-name-regexp): Don't use `rx' in autoloaded
objects.  (Bug#74490)
2024-11-23 18:33:26 +01:00
Stefan Kangas
d4cb3b30f1 ; Fix bootstrap (Bug#74490)
* lisp/progmodes/python.el (python--auto-mode-alist-regexp): Don't use
rx in autoloaded variable, since it breaks bootstrap when copied to
ldefs-boot.el.
* lisp/ldefs-boot.el: Update.
2024-11-23 16:46:30 +01:00
Eshel Yaron
30bcba27c8
Give Completion Preview bindings higher precedence
* lisp/completion-preview.el
(completion-preview-active-mode): add keymap to
'minor-mode-overriding-map-alist' so it takes precedence
over other minor mode maps that bind TAB, such as
'eshell-cmpl-mode' in Eshell.  (bug#74404)
2024-11-23 14:56:50 +01:00
Christophe Troestler
902696c3ae Rust ts: fontify as type the possible suffix of number literals
* lisp/progmodes/rust-ts-mode.el
(rust-ts-mode--fontify-number-literal): Perform the improved
fontification of numbers.  (Bug#73877)
* test/lisp/progmodes/rust-ts-mode-tests.el:
* test/lisp/progmodes/rust-ts-mode-resources/font-lock.rs:
* test/lisp/progmodes/rust-ts-mode-resources/font-lock-number.rs:
Add tests for the new optional fontification of the possible type
suffix of numbers.
2024-11-23 14:56:38 +02:00
Michael Albinus
1b33c00f4c Improve robustness of auth-source-pass.el
* lisp/auth-source-pass.el (auth-source-pass--read-entry):
Ensure, that `epa-file-handler' is active.  (Bug#67937)
2024-11-23 12:49:56 +01:00
Eli Zaretskii
1c2e0615fb ; Update ldefs-boot.el 2024-11-23 04:51:10 -05:00
Eli Zaretskii
db7b3f6b95 Merge from origin/emacs-30
74a972cace Skip proced refine tests on Darwin
c50ce03afc ; Fix recent additions to the manuals
c818c5bbaf ; * lisp/term/w32-win.el (tree-sitter--library-abi): Decl...
b71d3b2f52 ; Better clarify function types in C-h f (bug#73626)
59b3eae481 ; Introduce type specifiers to the elisp manual (bug#73626)
83fc3cf53a Future-proof loading tree-sitter library on MS-Windows
3eb3018682 ; Improve documentation of 'category' in display-buffer a...
4d80c4f485 ; More accurate documentation of 'set-mark-command'
70dd5705e1 Fix overriding 'c-ts-mode' by 'c-mode'
331610aef0 ; Improve vc-dir help-echo
9c484d5101 ; Avoid assertion violations in "temacs -Q"
8dc9dfdc38 lisp/progmodes/c-ts-mode.el: Demote loading c-ts-mode as ...
426bce8a67 ; In PROBLEMS mention issue with .Xresources on Gnome des...
2024-11-23 04:46:10 -05:00
Eli Zaretskii
65a55c90cf ; Merge from origin/emacs-30
The following commit was skipped:

6036e0dadf Backport: Don't autoload erc-modules
2024-11-23 04:46:10 -05:00
Eli Zaretskii
07543dd226 Merge from origin/emacs-30
fc52cb8d74 ; etc/NEWS: Fix example indentation.
8181680062 Improve the documentation of major-mode remapping
0856360d80 ; Fix typo in recent change
d4f81f716a Improve 'which-key-special-keys' docstring
926d47ab2c Don't error in Proced tests if %CPU is a NaN
2024-11-23 04:46:09 -05:00
Eshel Yaron
097b685aa1
New option 'flyspell-delay-use-timer'
* lisp/textmodes/flyspell.el (flyspell-delay-use-timer):
New user option.
(flyspell--timer): New variable.
(flyspell-check-word-p): Use them.
(flyspell-post-command-hook): Disable timer.
(flyspell-word): Pass non-nil SECONDS argument to
'accept-process-output' to avoid blocking when called from a
timer, in which case quitting is inhibited.
* etc/NEWS: Announce new option.  (bug#74437)
2024-11-22 09:42:50 +01:00
Laurence Warne
74a972cace Skip proced refine tests on Darwin
* test/lisp/proced-tests.el (proced-refine-test)
(proced-refine-with-update-test): Skip if the system is Darwin.
2024-11-22 09:36:31 +01:00
Sean Devlin
c66c0942ea
Use prefix argument in 'package-install-selected-packages'
* lisp/emacs-lisp/package.el (package-install-selected-packages):
When invoked with a prefix argument, skip user confirmation when
installing packages.
* etc/NEWS: Announce the prefix argument usage.  (Bug#73932)
2024-11-21 22:12:32 +01:00
Sean Devlin
b4e2d9a3af
Add noconfirm to 'package-autoremove'
* lisp/emacs-lisp/package.el (package-autoremove):
Add optional argument NOCONFIRM to skip user confirmation when removing
packages.
* etc/NEWS: Announce the new argument.  (Bug#73932)
2024-11-21 22:12:32 +01:00
Eli Zaretskii
c50ce03afc ; Fix recent additions to the manuals
* doc/lispref/objects.texi (Type Specifiers):
* doc/lispref/functions.texi (Declare Form):
* doc/emacs/help.texi (Name Help): Fix wording and markup.
(Bug#73626)
2024-11-21 17:47:22 +02:00
Andrea Corallo
c818c5bbaf ; * lisp/term/w32-win.el (tree-sitter--library-abi): Declare to rm warning. 2024-11-21 16:09:09 +01:00
Andrea Corallo
b71d3b2f52 ; Better clarify function types in C-h f (bug#73626)
* doc/emacs/help.texi (Name Help): Better clarify function types.
2024-11-21 15:39:27 +01:00
Andrea Corallo
59b3eae481 ; Introduce type specifiers to the elisp manual (bug#73626)
* doc/lispref/objects.texi (Programming Types): Add 'Type Specifiers' entry.
(Type Specifiers): Add node.
* doc/lispref/functions.texi (Declare Form): Add 'Type Specifiers'
reference.
2024-11-21 15:38:15 +01:00
Eli Zaretskii
83fc3cf53a Future-proof loading tree-sitter library on MS-Windows
* src/treesit.c (syms_of_treesit) <tree-sitter--library-abi>: New
internal variable.

* lisp/term/w32-win.el (dynamic-library-alist): Use
'tree-sitter--library-abi' to select a proper libtree-sitter DLL
version.
2024-11-21 14:55:38 +02:00
Eli Zaretskii
3eb3018682 ; Improve documentation of 'category' in display-buffer actions
* doc/lispref/windows.texi (Choosing Window)
(Buffer Display Action Alists): Add cross-references.
* doc/lispref/buffers.texi (Buffer List):

* lisp/subr.el (buffer-match-p): Improve documentation of
'category' condition.  (Bug#74361)
2024-11-21 12:28:26 +02:00
Eli Zaretskii
4d80c4f485 ; More accurate documentation of 'set-mark-command'
* doc/emacs/mark.texi (Setting Mark, Global Mark Ring): Explain
that activating an existing mark doesn't set a new mark, and
doesn't push the mark onto the global mark ring.  (Bug#74438)
2024-11-21 11:47:07 +02:00
Stefan Kangas
7cb77385d3 ; Fix typos 2024-11-21 10:06:19 +01:00
Eli Zaretskii
70dd5705e1 Fix overriding 'c-ts-mode' by 'c-mode'
* lisp/progmodes/c-ts-mode.el: Remove all c- and c++-mode
associations from 'major-mode-remap-defaults' before installing
entries that remap to 'c-ts-mode' and 'c++-ts-mode'.  (Bug#74339)
2024-11-21 09:43:34 +02:00
Eli Zaretskii
331610aef0 ; Improve vc-dir help-echo
* lisp/vc/vc-git.el (vc-git-stash-shared-help)
(vc-git-stash-list-help, vc-git-stash-menu-map): Improve help-echo
text.
2024-11-18 21:25:18 +02:00
Eli Zaretskii
9c484d5101 ; Avoid assertion violations in "temacs -Q"
* src/lread.c (build_load_history): Use Fequal to compare strings.
2024-11-18 20:54:15 +02:00
Stefan Monnier
8dc9dfdc38 lisp/progmodes/c-ts-mode.el: Demote loading c-ts-mode as a configuration
See bug#74367.
2024-11-18 10:10:00 -05:00
Stefan Monnier
eee0ed8442 Merge remote-tracking branch 'refs/remotes/origin/master' 2024-11-17 17:50:44 -05:00
Stefan Monnier
ea55048823 * cus-face.el: Provide completion for font families (bug#74362)
* lisp/cus-edit.el (custom-face--font-cache-timeout): New var.
(custom-face--font-completion): New function.
* lisp/cus-face.el (custom-face-attributes): Use it.
2024-11-17 17:49:49 -05:00
Stefan Monnier
347750461e man.el: Guess flags for man -k to fix bug#73656
* lisp/man.el (Man-man-k-flags): New var.
(Man-completion-table): Use it.
2024-11-17 16:52:33 -05:00
Michael Albinus
b6181c9ec9 ; Fix last change 2024-11-17 11:37:10 +01:00
Michael Albinus
b6e78f7d8c Tramp: Be more conservative in removing temporary files
* test/lisp/net/tramp-tests.el (Commentary): Extend.
(tramp--test-enabled): Exclude also old FUSE mount points from
deletion.
2024-11-17 11:15:30 +01:00
Eli Zaretskii
cd490c6470 ; Fix documentation of new header-line faces (bug#73862)
* doc/emacs/display.texi (Standard Faces): Fix wording.

* etc/NEWS: Fix entry about new header-line faces.
2024-11-17 10:22:17 +02:00
Andrea Corallo
7ded1064cf * src/pdumper.c (dump_interval_node): Fix itree_node struct hash. 2024-11-16 22:12:55 +01:00
Martin Rudalics
426bce8a67 ; In PROBLEMS mention issue with .Xresources on Gnome desktop (Bug#73244)
* etc/PROBLEMS: Mention issue with specifying frame size in
.Xresources when running Emacs on Gnome desktop (Bug#73244).
2024-11-16 17:30:29 +01:00
F. Jason Park
6036e0dadf Backport: Don't autoload erc-modules
* doc/misc/erc.texi (Modules): Recommend using `describe-variable'
instead of `customize-option' because the latter needs the symbol to be
loaded.
* lisp/erc/erc.el (erc-modules): Remove autoload cookie because it
caused customizations for this option to load the main library.  This
reverts the thrust of bb894845 "Teach customize-option about
erc-modules", which was added in ERC 5.6 and Emacs 30.  The motivation
for the original offending change was to allow new users to run M-x
customize-option RET erc-modules RET immediately after startup instead
of M-x customize-group RET, followed by an I-search.  (Bug#73812)

(Cherry picked from commit 1854f2751e)

Do not merge to master.
2024-11-16 08:17:46 -08:00
Eli Zaretskii
200c877cd4 Fix font-lock in 'lisp-mode'
* lisp/emacs-lisp/lisp-mode.el (lisp-fdefs): Fix regexps for
"\\<>" and similar constructs.  (Bug#74307)
2024-11-16 16:21:36 +02:00
Eli Zaretskii
f630520be9 ; Fix last change
* doc/emacs/display.texi (Standard Faces): Fix indexing.

* lisp/faces.el (header-line-active, header-line-inactive): Fix
the :version tag.  (Bug#73862)
2024-11-16 16:08:26 +02:00