]> git.eshelyaron.com Git - emacs.git/log
emacs.git
3 weeks ago; Skip commit c65c5d02224335562be7e04dd1bf185dfca3dbf1
Eshel Yaron [Wed, 4 Dec 2024 17:02:38 +0000 (18:02 +0100)]
; Skip commit c65c5d02224335562be7e04dd1bf185dfca3dbf1

3 weeks ago(asm-mode): Support file-local `asm-comment-char` (bug#74447)
Stefan Monnier [Sun, 1 Dec 2024 23:58:04 +0000 (18:58 -0500)]
(asm-mode): Support file-local `asm-comment-char` (bug#74447)

* lisp/progmodes/asm-mode.el (asm-mode): Move comment settings
to `:after-hook`.

(cherry picked from commit 676ff9fd7c083598b2955a463774283768d8e209)

3 weeks agoCC Mode manual: Better document lines starting with a label
Alan Mackenzie [Sun, 1 Dec 2024 19:46:16 +0000 (19:46 +0000)]
CC Mode manual: Better document lines starting with a label

* doc/misc/cc-mode.texi (Syntactic Analysis): Document analysis
of lines starting with labels, and their non-use as anchor
positions.

(cherry picked from commit 6c1c3120b98652de149ee9d8c241cd3636755171)

3 weeks ago; Update tree-sitter manual
Yuan Fu [Sun, 1 Dec 2024 19:22:48 +0000 (11:22 -0800)]
; Update tree-sitter manual

* doc/lispref/parsing.texi (User-defined Things): Add manual
entry for treesit-node-match-p, treesit-thing-defined-p,
treesit-thing-definition.  Change wording for some functions.

(cherry picked from commit cf4f1387a6561be7cd7387b766df4386a0fa472f)

3 weeks agoAllow passing nil to treesit-node-match-p (bug#74612)
Yuan Fu [Sat, 30 Nov 2024 00:33:28 +0000 (16:33 -0800)]
Allow passing nil to treesit-node-match-p (bug#74612)

* src/treesit.c (Ftreesit_node_match_p): Return nil if NODE is nil.

(cherry picked from commit 3c7687c1dd136fa535e22262f78fdfadbbf73105)

3 weeks agoReserve erc-normalize-port for equality comparisons
F. Jason Park [Mon, 25 Nov 2024 08:01:04 +0000 (00:01 -0800)]
Reserve erc-normalize-port for equality comparisons

* etc/ERC-NEWS: Add entry explaining changes to entry point 'erc-tls'
and library functions `erc-normalize-port' and `erc-compute-port'.
* lisp/erc/erc.el (erc-normalize-port): Map "ircu" to 6665 instead of
6667, and add related IANA service mappings.  Return 0 for unknown
nonempty strings.
(erc-open): Pass `erc-session-port' through `erc-string-to-port' before
handing it to `erc-server-connect'.  This prevents the network machinery
from ever seeing a numeric string, like "6667".
(erc-select-read-args): Since `erc-compute-port' no longer relies on
`erc-normalize-port', ensure its input is a number.  Use
`erc-port-equal' instead of `eql'.
(erc-tls): Respect a configured non-nil `erc-port' option when the user
does not provide a :port keyword argument from Lisp code.
(erc-determine-parameters): Use `erc-compute-port' for initializing
`erc-session-port'.
(erc-compute-port): Don't pass the result through `erc-normalize-port',
which can convert it to an unintuitive form.
(erc--url-default-connect-function): Use `erc-compute-port' instead of
`erc-normalize-port'.
(erc-handle-irc-url): Use `erc-port-equal' for comparison.
* test/lisp/erc/erc-scenarios-auth-source.el
(erc-scenarios-common--auth-source): Allow tests to convey the automatic
port number to `erc-open' via `erc-port'.
(erc-scenarios-base-auth-source-server--dialed): Use `erc-port' option
instead of passing a :port parameter to entry-point command.
* test/lisp/erc/erc-tests.el (erc-normalize-port): New test.
(Bug#74516)

(cherry picked from commit 3bf4ea9543fedb7d3af42d37c853a6f29c681523)

3 weeks agoAllow querying auth-source with port as string in ERC
Trevor Arjeski [Sun, 24 Nov 2024 20:35:41 +0000 (23:35 +0300)]
Allow querying auth-source with port as string in ERC

* lisp/erc/erc.el (erc--auth-source-determine-params-defaults): Allow
arbitrary strings for `ers-session-port'.  Previously, if a port/service
was any string other than "irc", the auth-source query would fail for a
seemingly unknown reason.  Restricting the value to "irc" is unnecessary
since "irc" is already added to the list of ports, and
`make-network-process' already consults /etc/services for well-known
service names, like "ircs-u", etc.  This change allows a user to (setopt
erc-port "1234"), intentionally or accidentally, while still being able
to use .authinfo for password management.  (Bug#74516)

Copyright-paperwork-exempt: yes
(cherry picked from commit d899519221b23a895672a100f63410ffb8b8b1e4)

3 weeks agoClear buffer-undo-list after sending input in ERC
F. Jason Park [Sun, 24 Nov 2024 23:30:02 +0000 (15:30 -0800)]
Clear buffer-undo-list after sending input in ERC

* lisp/erc/erc.el (erc-insert-line): Assume `erc-insert-marker' points
somewhere.
(erc-send-current-line): Set `buffer-undo-list' to nil because it should
only record editing changes in the prompt area, which has just been
cleared.  ERC did this via `erc-display-prompt' prior to 5.6, but it now
leaves the prompt alone by default.
* test/lisp/erc/erc-tests.el (erc-update-undo-list): New test.
(Bug#74518)

(cherry picked from commit e0d2c6f20f01366c41ba33d663a2b319dd9b7ab1)

3 weeks agoCC Mode: Optimize scanning of heavily nested brace blocks
Alan Mackenzie [Sun, 1 Dec 2024 17:27:34 +0000 (17:27 +0000)]
CC Mode: Optimize scanning of heavily nested brace blocks

This should have fixed bug#74357.

* lisp/progmodes/cc-engine.el (c-laomib-cache): Change the
size of this cache from 4 to 50.
(c-laomib-get-cache, c-laomib-put-cache): Use assq, memq, and
ntake or butlast, rather than looping through the cache with a
cdr loop.  No longer attempt to preserve the "largest" cache
element.
(c-looking-at-or-maybe-in-bracelist): Extend the range covered
by a c-laomib-cache element, rather than adding a second
element to the cache.
(c-no-bracelist-cache): A new cache for the use of
c-inside-bracelist-p, based on the c-parse-state cache.
(c-inside-bracelist-p): Use the new cache to call
c-looking-at-or-maybe-in-bracelist less often.

* lisp/progmodes/cc-mode.el (c-basic-common-init): Initialize
c-no-bracelist-cache.
(c-before-change): Invalidate c-no-bracelist-cache.

(cherry picked from commit b5f1a9e6d3e565585352747733c73d45e6be3bda)

3 weeks agoFix last change in tutorial.el
Manuel Giraud [Sun, 1 Dec 2024 16:25:24 +0000 (17:25 +0100)]
Fix last change in tutorial.el

* lisp/tutorial.el (tutorial--point-after-chkeys): Make it
permanent-local.  (Bug#74636)

(cherry picked from commit 2bcf0b3d099ba6f059a66bcdf522b277f98e9ea3)

3 weeks agoUpdate to version 2.58 of librsvg API (bug#74606)
Manuel Giraud [Sun, 1 Dec 2024 12:50:05 +0000 (13:50 +0100)]
Update to version 2.58 of librsvg API (bug#74606)

* src/image.c (init_svg_functions): Declare new function.
(svg_load_image): Use it.

(cherry picked from commit 748b19e56e87fab44cb5474613502f8e96064a46)

3 weeks agoFix decoding of non-ASCII email attachments
Visuwesh [Sun, 1 Dec 2024 06:24:11 +0000 (11:54 +0530)]
Fix decoding of non-ASCII email attachments

* lisp/mail/rfc2231.el (rfc2231-parse-string): Fix logic when a
non-ASCII file name is split between two filename*N* parts.
(Bug#74624)

(cherry picked from commit 4c67f636c08b6190bb5ab8953d1956b3862a9fb1)

3 weeks ago; Skip commit bd8a6f70fb947c4ea11c4772cff6e81180e5e35a
Eshel Yaron [Wed, 4 Dec 2024 17:01:46 +0000 (18:01 +0100)]
; Skip commit bd8a6f70fb947c4ea11c4772cff6e81180e5e35a

3 weeks agoFix exiting Emacs after saving a tutorial
Manuel Giraud [Fri, 29 Nov 2024 15:35:47 +0000 (16:35 +0100)]
Fix exiting Emacs after saving a tutorial

* lisp/tutorial.el (tutorial--lang)
(tutorial--point-before-chkeys): Add both variables as
permanent-local, so that saving the tutorial to some file
doesn't kill these buffer-local variables.  Otherwise, trying to
exit Emacs after saving the tutorial will signal an error,
because 'tutorial--lang' is nil.  (Bug#74364)

(cherry picked from commit a8169bee2064282a40214ef65ef0493233ed4669)

3 weeks ago; Skip commit d06a0153ced177ab41e578baac4b26667f337b58
Eshel Yaron [Wed, 4 Dec 2024 17:01:38 +0000 (18:01 +0100)]
; Skip commit d06a0153ced177ab41e578baac4b26667f337b58

3 weeks ago; * src/charset.c (Fmap_charset_chars): Fix last change (bug#74555).
Eli Zaretskii [Sat, 30 Nov 2024 10:55:19 +0000 (12:55 +0200)]
; * src/charset.c (Fmap_charset_chars): Fix last change (bug#74555).

(cherry picked from commit 7c90ffcf8698a55229c47845dbdb2dc6cfa9bb6f)

3 weeks agoAdd more error-checking to Fmap_charset_chars
altermo [Wed, 27 Nov 2024 09:37:28 +0000 (10:37 +0100)]
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
(cherry picked from commit 2125e188ad806134dfc81408822208d75d7f3b5a)

3 weeks ago; Improve documentation of ':box' face attribute
Eli Zaretskii [Sat, 30 Nov 2024 10:44:01 +0000 (12:44 +0200)]
; Improve documentation of ':box' face attribute

* doc/lispref/display.texi (Face Attributes): Describe a subtlety
of displaying ':box'.  (Bug#74536)

(cherry picked from commit afb34a3b2393decb50e250ed8caa559b64020379)

3 weeks ago; Improve commentary of last change.
Eli Zaretskii [Sat, 30 Nov 2024 10:34:40 +0000 (12:34 +0200)]
; Improve commentary of last change.

(cherry picked from commit 8ef44ca64eb40485751207096ee69930895364d9)

3 weeks agoSupport hyphen in Bash function names
James Cherti [Sun, 24 Nov 2024 17:09:33 +0000 (12:09 -0500)]
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
(cherry picked from commit 2ea0919550366babfea1de6468ef9e8b1857b478)

3 weeks ago; Skip commit b38eb6da1d164b50f4b727b2539cf02c40b73123
Eshel Yaron [Wed, 4 Dec 2024 17:01:15 +0000 (18:01 +0100)]
; Skip commit b38eb6da1d164b50f4b727b2539cf02c40b73123

3 weeks ago; Skip commit eec1a68b009961e74d08a57bdbba5b0851dbe42f
Eshel Yaron [Wed, 4 Dec 2024 17:01:09 +0000 (18:01 +0100)]
; Skip commit eec1a68b009961e74d08a57bdbba5b0851dbe42f

3 weeks ago; Skip commit a52ad71cc5d036f1973ff2e504e45992fec3fc04
Eshel Yaron [Wed, 4 Dec 2024 16:59:53 +0000 (17:59 +0100)]
; Skip commit a52ad71cc5d036f1973ff2e504e45992fec3fc04

3 weeks agoSupport PHP 8.4 and more reliable indentation (bug#74525)
Vincenzo Pupillo [Mon, 25 Nov 2024 10:06:02 +0000 (11:06 +0100)]
Support PHP 8.4 and more reliable indentation (bug#74525)

Added support for PHP 8.4 property hook. More reliable CSS and
Javascript syntax indentation when there are attributes in
<script> and <style>.

* lisp/progmodes/php-ts-mode.el:
(php-ts-mode--language-source-alist): Switch to the latest php
grammar.
(php-ts-mode--js-css-tag-bol): CSS and Javascript indentation is
now more more reliable in different formatting styles.
(php-ts-mode--test-property-hook-clause-p): New function that
tests property_hook support.
(php-ts-mode--font-lock-settings): Use the new function.
(php-ts-mode--colorize-css-value): The function now behaves
exactly like the one in css-ts-mode.
(php-ts-mode--feature-list): Changed the list to match
css-ts-mode.

(cherry picked from commit 9fdb764898dd4f40f562f8540767a18c827fe7d3)

3 weeks agoDon't inadvertently reset frame scroll bar sizes (Bug#74435)
Martin Rudalics [Thu, 28 Nov 2024 17:53:45 +0000 (18:53 +0100)]
Don't inadvertently reset frame scroll bar sizes (Bug#74435)

* src/frame.c (gui_set_scroll_bar_width)
(gui_set_scroll_bar_height): When the new size equals the old one
do not reset size to default size (Bug#74435).

(cherry picked from commit bda0bce9e4313c496fcfdcf4b6abeba3f68e5fac)

3 weeks agoMention special variables in lexical binding documentation
Mike Kupfer [Tue, 26 Nov 2024 00:52:05 +0000 (16:52 -0800)]
Mention special variables in lexical binding documentation

* doc/lispref/variables.texi (Lexical Binding): Briefly mention
special variables and their semantics.  (Bug#74540)

(cherry picked from commit 3f99cdaf26dc606012384a6f191dc9d96483d437)

3 weeks agoAllow to go back to using 'ruby-mode' after loading 'ruby-ts-mode'
Eli Zaretskii [Thu, 28 Nov 2024 14:55:26 +0000 (16:55 +0200)]
Allow to go back to using 'ruby-mode' after loading 'ruby-ts-mode'

* lisp/progmodes/ruby-ts-mode.el (major-mode-remap-defaults):
Remap 'ruby-mode' to 'ruby-ts-mode'.  Add commentary.
* lisp/progmodes/ruby-mode.el (major-mode-remap-defaults): Remove
any remappings of ruby-mode'.
* lisp/progmodes/c-ts-mode.el: Fix a typo in a comment.  (Bug#74339)

(cherry picked from commit 0ef0f18f163c37a9d5c0b63c34eb3f37016a0d5e)

3 weeks agoExtend Tramp tests
Michael Albinus [Thu, 28 Nov 2024 12:28:58 +0000 (13:28 +0100)]
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.

(cherry picked from commit e54c218d661c2d2f6f693342d2cf78d4be754d65)

3 weeks ago* src/lisp.h (EQ): Improve generated code.
Andrea Corallo [Wed, 27 Nov 2024 13:18:24 +0000 (14:18 +0100)]
* 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.

(cherry picked from commit b0ba0d42b0fdf70a20cd7a070128db8abe4a0826)

3 weeks ago; Minor Tramp cleanup
Michael Albinus [Wed, 27 Nov 2024 19:51:51 +0000 (20:51 +0100)]
; 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.

(cherry picked from commit 8184f64ab0025afb0b901b9cae3917e6f722974b)

3 weeks agoDelete obsolete section in admin/notes/repo
Stefan Kangas [Sun, 24 Nov 2024 10:27:19 +0000 (11:27 +0100)]
Delete obsolete section in admin/notes/repo

* admin/notes/repo: Delete section "How to merge changes from emacs-24
to master", which is documented in admin/notes/git-workflow.  Also
delete out-of-date autoload advice.

(cherry picked from commit fc17e8727d48c32f2610c6fe7c17147bff7be52b)

3 weeks agoImprove documentation for 'while-let'
Joost Kremers [Mon, 11 Nov 2024 22:38:49 +0000 (23:38 +0100)]
Improve documentation for 'while-let'

* doc/lispref/control.texi (Conditionals): Reorganise describing
what's overlapping between the macros (and between the macros
and let*), and then improve the documentation for 'while-let'.

(cherry picked from commit 3e396b2c5bb8abdc16218ca8c9d617b9dcf9f01e)

3 weeks agoRemove mention of treesit-defun-prefer-top-level (bug#74474)
Yuan Fu [Sun, 24 Nov 2024 05:39:40 +0000 (21:39 -0800)]
Remove mention of treesit-defun-prefer-top-level (bug#74474)

treesit-defun-prefer-top-level is removed before Emacs 29
released and was replaced by treesit-defun-tactic.  These
statements that set it doesn't do anything other than introduce
confusion, so we should remove them.

* lisp/progmodes/c-ts-mode.el (c-ts-base-mode):
* lisp/progmodes/js.el (js-ts-mode):
* lisp/progmodes/php-ts-mode.el (php-ts-mode):
* lisp/progmodes/ruby-ts-mode.el (ruby-ts-mode):
* lisp/progmodes/typescript-ts-mode.el:
(typescript-ts-base-mode):
Remove statements setting treesit-defun-prefer-top-level.

(cherry picked from commit 50b91ed458df8f04359996b31b18fb318ba64a47)

3 weeks agoFix NS non-native fullscreen on initial frame load (bug#59790)
Aaron Jensen [Sun, 17 Nov 2024 04:54:59 +0000 (20:54 -0800)]
Fix NS non-native fullscreen on initial frame load (bug#59790)

* src/nsterm.m ([EmacsView toggleFullScreen:]): Reset fs_is_native

(cherry picked from commit 03ae07291e85fd353595806c3ce1ad3315c47649)

3 weeks agoFix user options for listing and marking diary files
Eli Zaretskii [Sun, 24 Nov 2024 09:27:00 +0000 (11:27 +0200)]
Fix user options for listing and marking diary files

* lisp/calendar/diary-lib.el (diary-nongregorian-listing-hook)
(diary-nongregorian-marking-hook): Add Chinese functions to the
list of variable's options.  (Bug#74498)

(cherry picked from commit 8261d7224d30feca885e031d901923c550606db0)

3 weeks agoMake 'jsonrpc-default-request-timeout' a defcustom
Eli Zaretskii [Sat, 23 Nov 2024 20:14:57 +0000 (22:14 +0200)]
Make 'jsonrpc-default-request-timeout' a defcustom

* lisp/jsonrpc.el (jsonrpc-default-request-timeout): New
defcustom, replaces a defconst.
(jsonrpc): New customization group.

* etc/NEWS: Announce the change.  (Bug#74338)

(cherry picked from commit d9531793206021f1ad842cbc73df939aadf5f745)

3 weeks ago; Improve example of display-buffer-alist category in ELisp Reference
Juri Linkov [Sat, 23 Nov 2024 18:27:39 +0000 (20:27 +0200)]
; Improve example of display-buffer-alist category in ELisp Reference

* doc/lispref/windows.texi (Choosing Window): Use 'add-to-list'
and add an example how to override display-buffer-alist entries
such as 'inhibit-same-window' by matching the window
using the 'category' condition (bug#74457).

(cherry picked from commit 5339c6f69eef7aaccd0570a3b70fdf0066b678bc)

3 weeks agoUpdate MS-Windows build instructions
Eli Zaretskii [Sat, 23 Nov 2024 13:05:17 +0000 (15:05 +0200)]
Update MS-Windows build instructions

* nt/INSTALL.W64:
* nt/README.W32: Update the name of the MSYS2 libtree-sitter
distribution.  Reported by Nerd <hiweedmandriva3@163.com>.
(Bug#74429)

(cherry picked from commit e14007ad631120a3f7521e503c8de86aca849bad)

3 weeks agoRemove spurious Gnus M-# binding
Eshel Yaron [Wed, 4 Dec 2024 16:52:33 +0000 (17:52 +0100)]
Remove spurious Gnus M-# binding

3 weeks agoNew command 'search-button'
Eshel Yaron [Sun, 1 Dec 2024 07:34:51 +0000 (08:34 +0100)]
New command 'search-button'

3 weeks agoDrop ffap.el
Eshel Yaron [Sat, 30 Nov 2024 20:27:02 +0000 (21:27 +0100)]
Drop ffap.el

4 weeks ago; * etc/NEWS: Fix typo and wording of a recently-added entry.
Eli Zaretskii [Wed, 27 Nov 2024 13:54:39 +0000 (15:54 +0200)]
; * etc/NEWS: Fix typo and wording of a recently-added entry.

(cherry picked from commit bef9eeb05981ee5fe09c202116d725f9c69b9520)

4 weeks ago; * etc/NEWS: Fix typos and wording of last added entry.
Eli Zaretskii [Wed, 27 Nov 2024 13:49:55 +0000 (15:49 +0200)]
; * etc/NEWS: Fix typos and wording of last added entry.

(cherry picked from commit 51fb0331b3cd9e3c22c11c503899a60e65c64ffe)

4 weeks agoAdd command symbol property 'repeat-continue-only' for 'repeat-mode'
Juri Linkov [Wed, 27 Nov 2024 07:45:19 +0000 (09:45 +0200)]
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.

(cherry picked from commit 64c289590b56ea08d646b74f1a4b5de0a1faa2e2)

4 weeks ago* test/lisp/repeat-tests.el: Improve using new key mnemonics (bug#74140).
Juri Linkov [Wed, 27 Nov 2024 07:39:19 +0000 (09:39 +0200)]
* 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'.

(cherry picked from commit 9784c20dba1f00b583c92f83c08156ef000ec0b9)

4 weeks ago; Skip commit e4abb06e5bf982a4688de0638b1eeecf4ff38d95
Eshel Yaron [Wed, 27 Nov 2024 19:56:32 +0000 (20:56 +0100)]
; Skip commit e4abb06e5bf982a4688de0638b1eeecf4ff38d95

4 weeks agoMake Xref commands follow 'display-buffer' customizations
Dmitry Gutov [Wed, 27 Nov 2024 01:43:22 +0000 (03:43 +0200)]
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.

(cherry picked from commit 0624fe6f8497a677ae354da0a604dbf82e69400a)

4 weeks ago* lisp/files.el (major-mode-remap-alist): Add :tag annotations to :type.
Dmitry Gutov [Tue, 26 Nov 2024 21:30:36 +0000 (23:30 +0200)]
* lisp/files.el (major-mode-remap-alist): Add :tag annotations to :type.

(cherry picked from commit 298bbf3cd76ffaf0c88a6a9ec56aa33c4103b8e6)

4 weeks ago; * doc/misc/tramp.texi (Frequently Asked Questions): Minor edits.
Robert Pluim [Tue, 26 Nov 2024 16:57:47 +0000 (17:57 +0100)]
; * doc/misc/tramp.texi (Frequently Asked Questions): Minor edits.

(cherry picked from commit 775290efdf18e67bd0726190fe86326c112a27bf)

4 weeks agoSupport fingerprint readers in Tramp
Michael Albinus [Tue, 26 Nov 2024 11:45:06 +0000 (12:45 +0100)]
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.

(cherry picked from commit 3fe787ad4d5894df5b540dbd195128118c949c7c)

4 weeks ago(undo-delta): Handle `apply` elements (bug#74523)
Stefan Monnier [Mon, 25 Nov 2024 15:13:38 +0000 (10:13 -0500)]
(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.

(cherry picked from commit 83968cbeee06cc0fff932d5052e431b478276841)

4 weeks agoExtend Tramp FAQ
Michael Albinus [Mon, 25 Nov 2024 10:29:40 +0000 (11:29 +0100)]
Extend Tramp FAQ

* doc/misc/tramp.texi (Frequently Asked Questions): Improve index.
Recommend `small-temporary-file-directory' for ssh sockets.

(cherry picked from commit 0d466151109f41e84ec4183ba47d88dba1eb360c)

4 weeks agoSilence warning message in NS (bug#59790)
Aaron Jensen [Sat, 23 Nov 2024 02:17:55 +0000 (18:17 -0800)]
Silence warning message in NS (bug#59790)

* src/nsterm.m ([EmacsWindow createToolbar:]): Disable toolbar when
fullscreen.

(cherry picked from commit cf3ea44eb56364190ea9f2b905f74902c49de416)

4 weeks agoRemove NS non-native fullscreen pause (bug#28443)
Aaron Jensen [Sun, 17 Nov 2024 04:32:41 +0000 (20:32 -0800)]
Remove NS non-native fullscreen pause (bug#28443)

* src/nsterm.m (ns_fullscreen_hook): Remove timer workaround

(cherry picked from commit 20aa29b03739c496106f166ef84562c602b9ddb2)

4 weeks agoRemove 'eshell-escape-arg'
Jim Porter [Fri, 1 Nov 2024 20:11:47 +0000 (13:11 -0700)]
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.

(cherry picked from commit b4655ff99b512f30220f22226514267d78a70605)

4 weeks ago(dir-locals-collect-variables): Don't autoload if not needed (bug#74349)
Stefan Monnier [Sun, 24 Nov 2024 03:05:33 +0000 (22:05 -0500)]
(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`.

(cherry picked from commit f713258416f224b93e4f25b2db24d5e8797bcbff)

4 weeks agoAvoid loading 'rx' at runtime in 'lua-ts-mode'
john muhl [Sat, 23 Nov 2024 20:08:21 +0000 (14:08 -0600)]
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)

(cherry picked from commit e71d714a815e1088f8cfe946b1e431356ec85b24)

4 weeks ago; Skip commit eb1756a8a551d345397b0ef52cac8b8c62f4f1f2
Eshel Yaron [Wed, 27 Nov 2024 19:53:52 +0000 (20:53 +0100)]
; Skip commit eb1756a8a551d345397b0ef52cac8b8c62f4f1f2

4 weeks ago; * etc/symbol-releases.eld: Rearrange.
Stefan Kangas [Sat, 23 Nov 2024 17:36:01 +0000 (18:36 +0100)]
; * etc/symbol-releases.eld: Rearrange.

(cherry picked from commit 043830577332a6b32209bed8fa2efca24ed56ab0)

4 weeks ago; * etc/symbol-releases.eld: Add if-let/when-let.
Stefan Kangas [Sat, 23 Nov 2024 17:33:14 +0000 (18:33 +0100)]
; * etc/symbol-releases.eld: Add if-let/when-let.

(cherry picked from commit 80a2c74f3be935b115b00b0c15532d0ff2079dad)

4 weeks ago; Fix bootstrap
Michael Albinus [Sat, 23 Nov 2024 17:33:26 +0000 (18:33 +0100)]
; 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)

(cherry picked from commit abcc8c717d80ddffaa68a30ff59bc71d35eb52e3)

4 weeks ago; Skip commit d4cb3b30f18f4ac2c4a2ed21a4084d2209987382
Eshel Yaron [Wed, 27 Nov 2024 19:53:37 +0000 (20:53 +0100)]
; Skip commit d4cb3b30f18f4ac2c4a2ed21a4084d2209987382

4 weeks ago; Skip commit 30bcba27c8c8c89c4ba9d81fc96edf173329a7e6
Eshel Yaron [Wed, 27 Nov 2024 19:53:33 +0000 (20:53 +0100)]
; Skip commit 30bcba27c8c8c89c4ba9d81fc96edf173329a7e6

4 weeks agoRust ts: fontify as type the possible suffix of number literals
Christophe Troestler [Fri, 18 Oct 2024 21:50:06 +0000 (23:50 +0200)]
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.

(cherry picked from commit 902696c3ae3ed046208c57de923362bb609da6df)

4 weeks agoImprove robustness of auth-source-pass.el
Michael Albinus [Sat, 23 Nov 2024 11:49:56 +0000 (12:49 +0100)]
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)

(cherry picked from commit 1b33c00f4c28d730b17293f94ce5325f7e916bc8)

4 weeks ago; Skip commit 1c2e0615fb87727bc2aa1f871353c999b67c792a
Eshel Yaron [Wed, 27 Nov 2024 19:52:43 +0000 (20:52 +0100)]
; Skip commit 1c2e0615fb87727bc2aa1f871353c999b67c792a

4 weeks ago; Skip commit 097b685aa1c781afc298062f1cc76ab058cdb1a1
Eshel Yaron [Wed, 27 Nov 2024 19:52:28 +0000 (20:52 +0100)]
; Skip commit 097b685aa1c781afc298062f1cc76ab058cdb1a1

4 weeks agoSkip proced refine tests on Darwin
Laurence Warne [Thu, 21 Nov 2024 17:26:25 +0000 (17:26 +0000)]
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.

(cherry picked from commit 74a972cace6816753475c3c21f5b164a9a9342dd)

4 weeks agoUse prefix argument in 'package-install-selected-packages'
Sean Devlin [Mon, 28 Oct 2024 14:34:48 +0000 (10:34 -0400)]
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)

(cherry picked from commit c66c0942ea9ac10e6d6324e472150de403a03b69)

4 weeks agoAdd noconfirm to 'package-autoremove'
Sean Devlin [Mon, 21 Oct 2024 15:28:06 +0000 (11:28 -0400)]
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)

(cherry picked from commit b4e2d9a3af3dbd0ac7fa944e9386f667feb1c124)

4 weeks ago; Fix recent additions to the manuals
Eli Zaretskii [Thu, 21 Nov 2024 15:47:22 +0000 (17:47 +0200)]
; 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)

(cherry picked from commit c50ce03afc1ee636d5678844fcf982b7ac0a7f8f)

4 weeks ago; * lisp/term/w32-win.el (tree-sitter--library-abi): Declare to rm warning.
Andrea Corallo [Thu, 21 Nov 2024 15:02:37 +0000 (16:02 +0100)]
; * lisp/term/w32-win.el (tree-sitter--library-abi): Declare to rm warning.

(cherry picked from commit c818c5bbafde627ed277c599815c27f8cd40f891)

4 weeks ago; Better clarify function types in C-h f (bug#73626)
Andrea Corallo [Thu, 14 Nov 2024 00:01:08 +0000 (01:01 +0100)]
; Better clarify function types in C-h f (bug#73626)

* doc/emacs/help.texi (Name Help): Better clarify function types.

(cherry picked from commit b71d3b2f52ff186e2e7e9724890aa08d0fc9796b)

4 weeks ago; Introduce type specifiers to the elisp manual (bug#73626)
Andrea Corallo [Wed, 13 Nov 2024 23:20:13 +0000 (00:20 +0100)]
; 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.

(cherry picked from commit 59b3eae481d59d901ff64de1a827d3dd656a4fc9)

4 weeks agoFuture-proof loading tree-sitter library on MS-Windows
Eli Zaretskii [Thu, 21 Nov 2024 12:55:38 +0000 (14:55 +0200)]
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.

(cherry picked from commit 83fc3cf53a4b54a4ec3bf464cfea97f74522cd8d)

4 weeks ago; Improve documentation of 'category' in display-buffer actions
Eli Zaretskii [Thu, 21 Nov 2024 10:28:26 +0000 (12:28 +0200)]
; 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)

(cherry picked from commit 3eb3018682595208076fe7beea1175e123cf1966)

4 weeks ago; More accurate documentation of 'set-mark-command'
Eli Zaretskii [Thu, 21 Nov 2024 09:47:07 +0000 (11:47 +0200)]
; 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)

(cherry picked from commit 4d80c4f4858916becd528b236b29085d29cf3706)

4 weeks agoFix overriding 'c-ts-mode' by 'c-mode'
Eli Zaretskii [Thu, 21 Nov 2024 07:43:34 +0000 (09:43 +0200)]
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)

(cherry picked from commit 70dd5705e11f2259dd1890cee6c72ddcf9d7dd33)

4 weeks ago; Improve vc-dir help-echo
Eli Zaretskii [Mon, 18 Nov 2024 19:25:18 +0000 (21:25 +0200)]
; 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.

(cherry picked from commit 331610aef0572eacb2846f817e979aa5e29170b7)

4 weeks ago; Avoid assertion violations in "temacs -Q"
Eli Zaretskii [Mon, 18 Nov 2024 18:54:15 +0000 (20:54 +0200)]
; Avoid assertion violations in "temacs -Q"

* src/lread.c (build_load_history): Use Fequal to compare strings.

(cherry picked from commit 9c484d510121e0d545f952bc016586ead61d3f10)

4 weeks agolisp/progmodes/c-ts-mode.el: Demote loading c-ts-mode as a configuration
Stefan Monnier [Mon, 18 Nov 2024 15:10:00 +0000 (10:10 -0500)]
lisp/progmodes/c-ts-mode.el: Demote loading c-ts-mode as a configuration

See bug#74367.

(cherry picked from commit 8dc9dfdc381f5b75594572bfb3bbfb5126bc4a88)

4 weeks ago; In PROBLEMS mention issue with .Xresources on Gnome desktop (Bug#73244)
Martin Rudalics [Sat, 16 Nov 2024 16:30:29 +0000 (17:30 +0100)]
; 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).

(cherry picked from commit 426bce8a6754a112b38a5c6ded75497a0be08718)

4 weeks ago; Skip commit fc52cb8d74151bcac18d534529517a0a1845ad2e
Eshel Yaron [Wed, 27 Nov 2024 19:49:33 +0000 (20:49 +0100)]
; Skip commit fc52cb8d74151bcac18d534529517a0a1845ad2e

4 weeks agoImprove the documentation of major-mode remapping
Eli Zaretskii [Sat, 16 Nov 2024 09:47:34 +0000 (11:47 +0200)]
Improve the documentation of major-mode remapping

* etc/NEWS (example):
* doc/emacs/files.texi (Reverting):
* doc/emacs/modes.texi (Choosing Modes): Improve the documentation
of 'major-mode-remap-alist' and mode remapping.  (Bug#74339)

(cherry picked from commit 81816800628f1eef1928eee3ccf9a2f8b53ab9a7)

4 weeks ago; Skip commit 0856360d80c6cded703e4e32f1a49653fbcba485
Eshel Yaron [Wed, 27 Nov 2024 19:48:46 +0000 (20:48 +0100)]
; Skip commit 0856360d80c6cded703e4e32f1a49653fbcba485

4 weeks agoImprove 'which-key-special-keys' docstring
Robert Pluim [Fri, 15 Nov 2024 15:28:55 +0000 (16:28 +0100)]
Improve 'which-key-special-keys' docstring

* lisp/which-key.el (which-key-special-keys): Explain the format
and use 'setopt'.

(cherry picked from commit d4f81f716ae0ced72e26b403972adf95f02dbdd0)

4 weeks agoDon't error in Proced tests if %CPU is a NaN
Laurence Warne [Fri, 15 Nov 2024 15:22:52 +0000 (16:22 +0100)]
Don't error in Proced tests if %CPU is a NaN

* test/lisp/proced-tests.el (proced--cpu-at-point): New function.
(proced--assert-process-valid-cpu-refinement)
(proced-refine-test, proced-refine-with-update-test): If %CPU for any
process visited is a NaN skip the test.
(proced-update-preserves-pid-at-point-test): Fix typo in comment.
(proced--assert-process-valid-cpu-refinement-explainer): Add process
attributes to the explainer along with tweaking how the process %CPU is
obtained to account for circumstances where it's not numeric (most
notably '-nan').

(cherry picked from commit 926d47ab2ca72054f1a5c774916927160a839dc1)

4 weeks agoFix bug#74511
Eshel Yaron [Wed, 27 Nov 2024 19:42:57 +0000 (20:42 +0100)]
Fix bug#74511

4 weeks agoUnbreak tramp-sh.el
Eshel Yaron [Wed, 27 Nov 2024 19:42:36 +0000 (20:42 +0100)]
Unbreak tramp-sh.el

4 weeks ago; Fix typos
Stefan Kangas [Mon, 4 Nov 2024 21:27:36 +0000 (22:27 +0100)]
; Fix typos

(cherry picked from commit 7cb77385d38b96377d404a2ab0e778b2dfce5c77)

5 weeks ago* cus-face.el: Provide completion for font families (bug#74362)
Stefan Monnier [Sun, 17 Nov 2024 22:49:49 +0000 (17:49 -0500)]
* 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.

(cherry picked from commit ea550488233833baafda90a3f258f96953381274)

5 weeks agoman.el: Guess flags for `man -k` to fix bug#73656
Stefan Monnier [Sun, 17 Nov 2024 21:52:33 +0000 (16:52 -0500)]
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.

(cherry picked from commit 347750461e71eec4668fb265cd29cffce45783f2)

5 weeks ago; Fix last change
Michael Albinus [Sun, 17 Nov 2024 10:37:10 +0000 (11:37 +0100)]
; Fix last change

(cherry picked from commit b6181c9ec9f7dcbb1c5657537ccc52dc7a3bf6ac)

5 weeks agoTramp: Be more conservative in removing temporary files
Michael Albinus [Sun, 17 Nov 2024 10:15:30 +0000 (11:15 +0100)]
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.

(cherry picked from commit b6e78f7d8cc6ac6b2fdea0761879e0d65f493191)

5 weeks ago; Fix documentation of new header-line faces (bug#73862)
Eli Zaretskii [Sun, 17 Nov 2024 08:22:17 +0000 (10:22 +0200)]
; 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.

(cherry picked from commit cd490c6470d93bf4093a8e3ea411fa179b235f07)

5 weeks ago* src/pdumper.c (dump_interval_node): Fix itree_node struct hash.
Andrea Corallo [Sat, 16 Nov 2024 21:11:47 +0000 (22:11 +0100)]
* src/pdumper.c (dump_interval_node): Fix itree_node struct hash.

(cherry picked from commit 7ded1064cf4d9fde32c7a89473ef9476520cd556)

5 weeks agoFix font-lock in 'lisp-mode'
Eli Zaretskii [Sat, 16 Nov 2024 14:21:36 +0000 (16:21 +0200)]
Fix font-lock in 'lisp-mode'

* lisp/emacs-lisp/lisp-mode.el (lisp-fdefs): Fix regexps for
"\\<>" and similar constructs.  (Bug#74307)

(cherry picked from commit 200c877cd48aa0f7638fdd5157555374f0f7bfc8)

5 weeks ago; Fix last change
Eli Zaretskii [Sat, 16 Nov 2024 14:08:26 +0000 (16:08 +0200)]
; 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)

(cherry picked from commit f630520be97a9dda5e4b93765dbd82b6e9b298d0)

5 weeks agoAdd new `header-line-active' and `header-line-inactive' faces
Trevor Murphy [Thu, 17 Oct 2024 22:51:14 +0000 (15:51 -0700)]
Add new `header-line-active' and `header-line-inactive' faces

This is all intended to parallel the 'mode-line-active' and
'mode-line-inactive' distinction.
* doc/emacs/display.texi (Standard Faces): Document the new faces.

* lisp/faces.el (header-line-active, header-line-inactive): New
faces.

* src/dispextern.h (CURRENT_HEADER_LINE_ACTIVE_FACE_ID_3)
(CURRENT_HEADER_LINE_ACTIVE_FACE_ID): New macros based on mode
line equivalents.
(face_id): New face IDs.
* src/xdisp.c (window_box_height, pos_visible_p, init_iterator)
(window_text_pixel_size, display_mode_lines, display_mode_line)
(format-mode-line): Replace all uses of HEADER_LINE_FACE_ID with
either a new macro or the new face IDs.
* src/xfaces.c (syms_of_xfaces): New lisp symbols.
(lookup_basic_face, realize_basic_faces): Map new face IDs to
their lisp symbols.  (Bug#73862)

(cherry picked from commit a4014c058b547d4f9c8c61c6737c85c2636fdb34)

5 weeks agoFix customization type of erc-spelling-dictionaries
Bruno Boal [Thu, 14 Nov 2024 23:58:43 +0000 (23:58 +0000)]
Fix customization type of erc-spelling-dictionaries

* lisp/erc/erc-spelling.el (erc-spelling-dictionaries): Update :type
specification to reflect shape expected by `erc-spelling-init', and
improve description in doc string.  (Bug#74363)

Copyright-paperwork-exempt: yes
(cherry picked from commit 29098a291f535c8e2be114171308169f025de43f)