1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-08 12:40:49 -08:00
Commit graph

175599 commits

Author SHA1 Message Date
Eli Zaretskii
7c90ffcf86 ; * src/charset.c (Fmap_charset_chars): Fix last change (bug#74555). 2024-11-30 12:55:19 +02:00
altermo
2125e188ad Add more error-checking to Fmap_charset_chars
* src/charset.c (Fmap_charset_chars): Signal an error if FROM_CODE
or TO_CODE is non-nil and not a fixnum.  (Bug#74555)

Copyright-paperwork-exempt: yes
2024-11-30 12:51:40 +02:00
Eli Zaretskii
8ef44ca64e ; Improve commentary of last change. 2024-11-30 12:34:40 +02:00
James Cherti
2ea0919550 Support hyphen in Bash function names
* lisp/progmodes/sh-script.el (sh-imenu-generic-expression): Add
hyphen to function-name regexp.

Copyright-paperwork-exempt: yes
2024-11-30 12:31:56 +02:00
Daniel Mendler
eec1a68b00 New function `completion-list-candidate-at-point'
Replace `completions--start-of-candidate-at' with the new
function `completion-list-candidate-at-point' which returns the
candidate string and the candidate bounds as a list in the
format (STR BEG END).

* lisp/simple.el (completions--start-of-candidate-at): Remove.
(completion-list-candidate-at-point): New function.
(choose-completion): Use it.
* lisp/minibuffer.el (minibuffer-completion-help): Use it.
2024-11-29 12:26:02 -05:00
Juri Linkov
a52ad71cc5 * lisp/progmodes/c-ts-mode.el: Improve logic of outlines (bug#74448).
(c-ts-mode--outline-predicate): Instead of checking only for
function_declarator nodes at the beginning of line (like in
GNU coding style) handle other coding styles that start the
function line with either storage class (e.g. static) or type.
Suggested by Filippo Argiolas <filippo.argiolas@gmail.com>
2024-11-29 09:35:13 +02:00
Michael Albinus
e54c218d66 Extend Tramp tests
* test/lisp/net/tramp-tests.el (tramp-test47-read-password)
(tramp-test47-read-otp-password, tramp-test47-read-fingerprint):
Use `tramp-default-remote-shell' and
`tramp-connection-properties'.  Cleanup at the end.
(tramp-test47-read-security-key): New test.
2024-11-28 13:28:58 +01:00
Andrea Corallo
b0ba0d42b0 * src/lisp.h (EQ): Improve generated code.
Outside compilation 'symbols_with_pos_enabled' is always false, so ask
the compiler to organize the most likely execution path in a sequential
fashion in order to favor run-time performance.
2024-11-28 11:33:14 +01:00
Michael Albinus
8184f64ab0 ; Minor Tramp cleanup
* lisp/net/tramp-message.el (tramp-warning): Fix `lwarn' call.

* lisp/net/tramp-sh.el (tramp-sh-handle-make-process): Don't set
connection property "remote-pid", it's unused.
2024-11-27 20:51:51 +01:00
Eli Zaretskii
bef9eeb059 ; * etc/NEWS: Fix typo and wording of a recently-added entry. 2024-11-27 15:54:39 +02:00
Eli Zaretskii
51fb0331b3 ; * etc/NEWS: Fix typos and wording of last added entry. 2024-11-27 15:49:55 +02:00
Juri Linkov
64c289590b Add command symbol property 'repeat-continue-only' for 'repeat-mode'
* lisp/repeat.el: (repeat-post-hook): Ignore commands
with 'repeat-continue-only' symbol property
when repeat was not in progress (bug#74140).

* test/lisp/repeat-tests.el (repeat-tests-continue-only): New test.
(repeat-tests-bind-keys): Prepare for :continue-only.
2024-11-27 09:45:19 +02:00
Juri Linkov
9784c20dba * test/lisp/repeat-tests.el: Improve using new key mnemonics (bug#74140).
(repeat-tests-repeat-map): Use :repeat keywords with :enter and :exit
for 'defvar-keymap'.
(with-repeat-mode): Add new arg 'map' to defmacro.
(repeat-tests-check-key, repeat-tests-exit-key)
(repeat-tests-keep-prefix): Use new key mnemonics.
(repeat-tests-exit-command): New test.
(repeat-tests-bind-keys): New test for 'bind-keys' from 'use-package'.
2024-11-27 09:39:19 +02:00
Sean Whitton
e4abb06e5b * lisp/subr.el (when-let): Reimplement so as to avoid bug#74530. 2024-11-27 10:36:53 +08:00
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