]> git.eshelyaron.com Git - emacs.git/log
emacs.git
2 weeks agoAdd tags to 'compilation-transform-file-match-alist' custom type
Robert Pluim [Wed, 4 Dec 2024 16:00:16 +0000 (17:00 +0100)]
Add tags to 'compilation-transform-file-match-alist' custom type

* lisp/progmodes/compile.el (compilation-filter-start): Add some
more meaningful tags, and switch to using 'radio' instead of
'choice'.

(cherry picked from commit df7f02a7954c652896dcaae590caf9dc0c4dc6a1)

2 weeks agoImprove 'compilation-transform-file-match-alist' documentation
Robert Pluim [Tue, 3 Dec 2024 14:20:04 +0000 (15:20 +0100)]
Improve 'compilation-transform-file-match-alist' documentation

* doc/emacs/building.texi (Compilation Mode): Document
'compilation-transform-file-match-alist'.
* lisp/progmodes/compile.el
(compilation-transform-file-match-alist):
Expand docstring and add some examples.

(cherry picked from commit 7c50e4cc8cc19ad1ab10121ece894409a72a8af9)

2 weeks agoImprove 'compilation-hidden-output' docstring
Robert Pluim [Mon, 2 Dec 2024 18:27:48 +0000 (19:27 +0100)]
Improve 'compilation-hidden-output' docstring

* lisp/progmodes/compile.el (compilation-hidden-output): Escape
the newline so the example value is more suitable for copying.

(cherry picked from commit a73d08bb67a3562da42ea929df01eb1fb0c17b99)

2 weeks ago; Improve documentation of 'epa-mail-verify'
Eli Zaretskii [Wed, 4 Dec 2024 13:21:13 +0000 (15:21 +0200)]
; Improve documentation of 'epa-mail-verify'

* doc/misc/epa.texi (Mail-mode integration):
* lisp/epa-mail.el (epa-mail-verify): Improve documentation of
'epa-mail-verify'.  (Bug#74630)

(cherry picked from commit d50293b0f108ff85796dc56312a1c46c8db4f8a1)

2 weeks ago; Skip commit 7b8d12e95de6e6b5239c538ad6f5af96dc3e1c2a
Eshel Yaron [Mon, 9 Dec 2024 12:45:26 +0000 (13:45 +0100)]
; Skip commit 7b8d12e95de6e6b5239c538ad6f5af96dc3e1c2a

2 weeks ago; Skip commit e618d5ae941d005e9da6d5d5cba68cc0ecade0e5
Eshel Yaron [Mon, 9 Dec 2024 12:45:19 +0000 (13:45 +0100)]
; Skip commit e618d5ae941d005e9da6d5d5cba68cc0ecade0e5

2 weeks ago; Fix grammar in Emacs user manual
Eli Zaretskii [Mon, 2 Dec 2024 12:33:52 +0000 (14:33 +0200)]
; Fix grammar in Emacs user manual

* doc/emacs/trouble.texi (Sending Patches): Fix wording.  Reported
by Daniel Martín <mardani29@yahoo.es>.  (Bug#74638)

(cherry picked from commit 43c4a06ffcc8dd39a3fb743aca5aa9a71e74189c)

2 weeks ago; Skip commit 6bca138d60e47d0fbab4faf8e83c5b9b319f260d
Eshel Yaron [Mon, 9 Dec 2024 12:44:31 +0000 (13:44 +0100)]
; Skip commit 6bca138d60e47d0fbab4faf8e83c5b9b319f260d

2 weeks agoFix alias cycle when loading cl.el
Eshel Yaron [Mon, 9 Dec 2024 12:43:01 +0000 (13:43 +0100)]
Fix alias cycle when loading cl.el

2 weeks agoFix bug#74504
Eshel Yaron [Mon, 9 Dec 2024 12:41:32 +0000 (13:41 +0100)]
Fix bug#74504

2 weeks agoDrop apropos.el
Eshel Yaron [Sat, 7 Dec 2024 17:25:40 +0000 (18:25 +0100)]
Drop apropos.el

2 weeks agoFix the version of librsvg API change
Manuel Giraud [Mon, 2 Dec 2024 14:11:52 +0000 (15:11 +0100)]
Fix the version of librsvg API change

* src/image.c (init_svg_functions, svg_load_image): The first
official version that introduces
'rsvg_handle_get_pixbuf_and_error' is 2.59.0 not 2.58.0.
(Bug#74606)

(cherry picked from commit f65de1019dca6398097751abefcad7e1a4637551)

2 weeks agoBetter handling of "%" in Tramp user or host names
Michael Albinus [Fri, 6 Dec 2024 10:56:05 +0000 (11:56 +0100)]
Better handling of "%" in Tramp user or host names

* lisp/net/tramp.el (tramp-format-spec): New defun.
(tramp-dissect-file-name, tramp-compute-multi-hops)
(tramp-expand-args):
* lisp/net/tramp-cmds.el (tramp-default-rename-file): Use it.

(cherry picked from commit 9ddec89e422d0dd6e9069731b8f2dd2c90aa5607)

2 weeks ago* lisp/emacs-lisp/lisp-mode.el (lisp-fdefs): Fix font-lock (bug#74307).
Juri Linkov [Thu, 5 Dec 2024 18:15:12 +0000 (20:15 +0200)]
* lisp/emacs-lisp/lisp-mode.el (lisp-fdefs): Fix font-lock (bug#74307).

Move '(not "\\")' inside the group to not exclude the last character
for "\\<>" and similar constructs.

(cherry picked from commit 61d06762975fb203ae06a57d30397d699164ebc1)

2 weeks agoValidate font-lock rules when setting up tree-sitter major mode
Yuan Fu [Tue, 3 Dec 2024 04:47:38 +0000 (20:47 -0800)]
Validate font-lock rules when setting up tree-sitter major mode

When tree-sitter grammar make breaking changes, major modes
breaks completely: no highlighting is shown.  This new function
will run in treesit-major-mode-setup, validate each
font-lock features, and disable the ones that are not compatible
with the new grammar, so that the rest of the features still
work.  It also displays a warning explaining the situation,
which looks like this:

    Warning (treesit-font-lock-rules-mismatch): Emacs cannot
    compile every font-lock rules because a mismatch between the
    grammar and the rules.  This is most likely due to a
    mismatch between the font-lock rules defined by the major
    mode and the tree-sitter grammar.

    This error can be fixed by either downgrading the
    grammar (tree-sitter-c) on your system, or upgrading the
    major mode package.  The following are the temporarily
    disabled features:

    - `preprocessor' for c.

* lisp/treesit.el (treesit-validate-font-lock-rules): New function.
(treesit-major-mode-setup): Validate font-lock rules.

(cherry picked from commit ed9eaaa9964f46ef5f9a9c084a1cb8f1ae1926a3)

2 weeks agoMake treesit-query-compile compile compiled-query eagerly
Yuan Fu [Tue, 3 Dec 2024 04:14:55 +0000 (20:14 -0800)]
Make treesit-query-compile compile compiled-query eagerly

* src/treesit.c (treesit_ensure_query_compiled_signal): Extrat
out into a function.
(Ftreesit_query_compile): If EAGER is non-nil and QUERY is a
lazily compiled query, compile it eagerily.

(cherry picked from commit 4ecd1639b19345786020c0f7a5f3672129dae466)

2 weeks ago; Use cpp instead of c++ for c-ts-mode--simple-indent-rules
Yuan Fu [Tue, 3 Dec 2024 03:39:10 +0000 (19:39 -0800)]
; Use cpp instead of c++ for c-ts-mode--simple-indent-rules

* lisp/progmodes/c-ts-mode.el (c-ts-mode--simple-indent-rules):
Use cpp to be more inline with other functions in c-ts-mode.el.

(cherry picked from commit 5d535334f30b874ebb8e2c286c1e059d86ccd41f)

2 weeks agoMake tree-sitter-explorer support selecting local parser
Yuan Fu [Tue, 3 Dec 2024 01:23:08 +0000 (17:23 -0800)]
Make tree-sitter-explorer support selecting local parser

Now treesit-explore-mode will prompt the user to select a parser
to explore, rather than a language.  It'll also include the
local parsers at point for selection.

* lisp/treesit.el (treesit--explorer-language): Change to
treesit--explorer-parser.
(treesit--explorer--nodes-to-highlight):
(treesit--explorer-refresh): Change to use parser.
(treesit--explorer-generate-parser-alist): New function.
(treesit-explorer-switch-parser): New command.
(treesit-explore-mode): Use switch-parser to setup.
* doc/lispref/parsing.texi (Language Grammar): Mention
treesit-explorer-switch-parser.

(cherry picked from commit 10b4d3045e1b856009c5ac1e1a1ca257f2d4493f)

2 weeks ago* lisp/tab-line.el (tab-line-tabs-fixed-window-buffers): More optimizations.
Juri Linkov [Wed, 4 Dec 2024 18:38:41 +0000 (20:38 +0200)]
* lisp/tab-line.el (tab-line-tabs-fixed-window-buffers): More optimizations.

Use :size arg of 'make-hash-table' as a hint how many buffers
the table will have.  Add ':in-place t' to 'sort'.

(cherry picked from commit 25b4bf7fcd75564f23b2e60e29e8ff7354186371)

2 weeks agoWork around Bug#73862 fallout
Eshel Yaron [Thu, 5 Dec 2024 20:02:39 +0000 (21:02 +0100)]
Work around Bug#73862 fallout

3 weeks agoRemove obsolete 'display-comint-buffer-action' (bug#74361)
Juri Linkov [Wed, 4 Dec 2024 07:40:33 +0000 (09:40 +0200)]
Remove obsolete 'display-comint-buffer-action' (bug#74361)

* lisp/window.el (display-comint-buffer-action):
(display-tex-shell-buffer-action):
Remove obsolete defcustoms.

* lisp/cmuscheme.el (run-scheme, switch-to-scheme):
* lisp/shell.el (shell):
* lisp/eshell/eshell.el (eshell):
* lisp/progmodes/inf-lisp.el (inferior-lisp):
* lisp/progmodes/project.el (project-shell, project-eshell):
* lisp/progmodes/sh-script.el (sh-show-shell):
Replace 'display-comint-buffer-action' with a list of
'display-buffer--same-window-action' and '(category . comint)'.

* lisp/org/ol-eshell.el (org-eshell-open): Add '(category . comint)'.

* lisp/textmodes/tex-mode.el (tex-display-shell)
(tex-recenter-output-buffer):
Replace 'display-tex-shell-buffer-action' with a list of
'display-buffer-in-previous-window' and '(category . tex-shell)'.

(cherry picked from commit d706be4b345f3e2d242c4f2ffb5e566845b2935d)

3 weeks agoAdd new keyword :continue-only to defvar-keymap for repeat-mode (bug#74140)
Juri Linkov [Tue, 3 Dec 2024 18:12:03 +0000 (20:12 +0200)]
Add new keyword :continue-only to defvar-keymap for repeat-mode (bug#74140)

* doc/lispref/keymaps.texi (Creating Keymaps): Add :continue-only
to :repeat part of defvar-keymap.

* lisp/keymap.el (defvar-keymap): Add support for new :repeat
keyword :continue-only.

* lisp/repeat.el (repeat-post-hook): The property 'repeat-continue-only'
is handled as a list of repeat-maps.

* test/lisp/repeat-tests.el (repeat-tests-repeat-map): Use new
:repeat keyword :continue-only.

(cherry picked from commit 69e1f787528eaf2f223c53a6ff518ba4f984bc17)

3 weeks agoImprove docstrings of functions for moving to message headers
Robert Pluim [Tue, 3 Dec 2024 14:41:48 +0000 (15:41 +0100)]
Improve docstrings of functions for moving to message headers

* lisp/gnus/message.el (message-goto-to, message-goto-from,
message-goto-subject, message-goto-cc, message-goto-bcc,
message-goto-fcc, message-goto-reply-to,
message-goto-newsgroups, message-goto-distribution,
message-goto-followup-to, message-goto-mail-followup-to,
message-goto-keywords, message-goto-summary): Mention that these
will insert an empty header if the header is not found.
(message-position-on-field): Explain that this inserts an empty
header if the header is missing, and that insertion is done
after the headers mentioned in AFTERS.

(cherry picked from commit 9f266e2d7cde41f5872304bae0b6d2415655f1c8)

3 weeks agoActually remove the Mail-Followup-To header iff empty
Tomas Volf [Tue, 3 Dec 2024 14:40:53 +0000 (15:40 +0100)]
Actually remove the Mail-Followup-To header iff empty

* lisp/gnus/message.el (message-send-mail): Pass a fixed string
instead of regexp to 'message-remove-header' (Bug#74658).

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

3 weeks ago; Minor fixes in tramp-tests.el
Michael Albinus [Tue, 3 Dec 2024 12:23:28 +0000 (13:23 +0100)]
; Minor fixes in tramp-tests.el

* test/lisp/net/tramp-tests.el (ert-batch-backtrace-right-margin):
Set it to nil.
(tramp--test-enabled): Fix regexps.

(cherry picked from commit fef05ba8f409738625167991e811c2ab50f5b047)

3 weeks ago* lisp/progmodes/c-ts-mode.el (treesit-node-match-p): Declare.
Andrea Corallo [Tue, 3 Dec 2024 08:24:52 +0000 (09:24 +0100)]
* lisp/progmodes/c-ts-mode.el (treesit-node-match-p): Declare.

(cherry picked from commit 04d035acd72823e82dd61c4894f9c09113e65dd6)

3 weeks agoproject-try-vc--search: Fix inside recursive submodule setup
Dmitry Gutov [Tue, 3 Dec 2024 02:31:07 +0000 (04:31 +0200)]
project-try-vc--search: Fix inside recursive submodule setup

* lisp/progmodes/project.el (project-try-vc--search): Loop when
looking for submodule parent repository (bug#74614).

(cherry picked from commit 8534bb2d6b55ba55639058a5637da1f28797dddb)

3 weeks ago* Declare few treesit-* function to clean-up wanrnings
Andrea Corallo [Mon, 2 Dec 2024 20:51:29 +0000 (21:51 +0100)]
* Declare few treesit-* function to clean-up wanrnings

* lisp/progmodes/c-ts-common.el (treesit-parser-language)
(treesit-node-match-p, treesit-node-child, treesit-node-eq)
(treesit-parser-root-node, treesit-node-parser): Declare.

(cherry picked from commit f9e7f57f5710fe929fce468f8875a7310e73be05)

3 weeks agoFix password prompt in comint
Michael Albinus [Mon, 2 Dec 2024 18:26:06 +0000 (19:26 +0100)]
Fix password prompt in comint

* lisp/comint.el (comint-password-prompt-regexp): Don't use "'s"
as keyword.  Add default OpenSSH format.  Adapt :version.
(comint-watch-for-password-prompt): Adapt prompt composition.
(Bug#74626)

(cherry picked from commit a582034dc5420ba6b8e69d29bbf706f34340825b)

3 weeks ago; Fix recently-updated documentation
Eli Zaretskii [Mon, 2 Dec 2024 12:11:00 +0000 (14:11 +0200)]
; Fix recently-updated documentation

* doc/lispref/modes.texi (Parser-based Indentation): Fix markup,
typos and wording.

(cherry picked from commit a79c300a88b195572e57c79fa5b23cdf0e3460d5)

3 weeks agoDo not use libjpeg quantization (bug#74476)
Manuel Giraud [Thu, 21 Nov 2024 16:19:59 +0000 (17:19 +0100)]
Do not use libjpeg quantization (bug#74476)

* src/image.c (jpeg_load_body): Remove libjpeg quantization.

(cherry picked from commit 8cd4ab7abde87ac04e05442196b4646ab46df9a7)

3 weeks ago; Indent by 8 in BSD indent tests for c-ts-mode
Yuan Fu [Mon, 2 Dec 2024 00:47:53 +0000 (16:47 -0800)]
; Indent by 8 in BSD indent tests for c-ts-mode

* test/lisp/progmodes/c-ts-mode-resources/indent-bsd.erts: Set
indent offset to 8.

(cherry picked from commit de98b5a24f2b2ad293b4298bb898842b8f23e5bc)

3 weeks agoStandardize and promote c-ts-mode's custom matcher and anchor
Yuan Fu [Mon, 2 Dec 2024 00:40:05 +0000 (16:40 -0800)]
Standardize and promote c-ts-mode's custom matcher and anchor

Specifically, standalone-parent and prev-sibling.  The c-ts-mode
custom version skips labels and proproc directives.

* lisp/progmodes/c-ts-mode.el:
(c-ts-mode--standalone-parent-skip-preproc): Rename to
c-ts-mode--standalone-parent, and make it skip labels too.
(c-ts-mode--preproc-indent-rules): Rename standalone-parent and
prev-sibling.
(c-ts-mode--label-indent-rules): Use custom standalone-parent
and prev-sibling.

(cherry picked from commit 9acf6eff01a82c3fe9ca8897f38b76dbb6079648)

3 weeks agoRemove unused functions in c-ts-mode
Yuan Fu [Mon, 2 Dec 2024 00:19:01 +0000 (16:19 -0800)]
Remove unused functions in c-ts-mode

Remove functions that became unused due to the previous change.

* lisp/progmodes/c-ts-mode.el:
(c-ts-mode--standalone-grandparent):
(c-ts-mode--else-heuristic):
(c-ts-mode--first-sibling):
(c-ts-mode--parent-is-not-top-compound):
(c-ts-mode--indent-styles):
(c-ts-mode--top-level-label-matcher): Remove functions.
(c-ts-mode--simple-indent-rules): Move two label rules into
c-ts-mode--label-indent-rules.
(c-ts-mode--label-indent-rules): Add rules

(cherry picked from commit 994258f55675baa8473e6cff9aab7ecb31338580)

3 weeks agoAdd more c-ts-mode indent tests
Yuan Fu [Sun, 1 Dec 2024 07:49:14 +0000 (23:49 -0800)]
Add more c-ts-mode indent tests

* test/lisp/progmodes/c-ts-mode-resources/indent-bsd.erts: Fix
label test.
* test/lisp/progmodes/c-ts-mode-resources/indent.erts: Add some
test, make other tests harder.

(cherry picked from commit 44fcd37a486399be048fb03b9456497af78632fe)

3 weeks agoUse new baseline indent rule in c-ts-mode
Yuan Fu [Sun, 1 Dec 2024 08:15:08 +0000 (00:15 -0800)]
Use new baseline indent rule in c-ts-mode

Rework the indent rules in c-ts-mode using
c-ts-common-baseline-indent-rule.  Also reworked internal
functions for setting indent styles to make it simpler and (more
importantly) more readable.  Now there's a single function,
c-ts-mode--simple-indent-rules, that returns a value that can go
straight to treesit-simple-indent-rules.

* lisp/progmodes/c-ts-mode.el:
(c-ts-mode--indent-style-setter): Simplify.
(c-ts-mode--get-indent-style): Remove function.
(c-ts-mode--prompt-for-style): Use a hard-coded list of styles.
This is a tiny downgrade from the computed lists but is
acceptable.
(c-ts-mode-set-style): Use c-ts-mode--simple-indent-rules.
(c-ts-mode--standalone-grandparent): Docstring change.
(c-ts-mode--for-loop-indent-rule): New function.
(c-ts-mode--preproc-indent-rules): New variable.  Copied from
old indent rules and added some new rule.
(c-ts-mode--macro-heuristic-rules):
(c-ts-mode--simple-indent-rules):
(c-ts-mode--parenthesized-expression-indent-rule):
(c-ts-mode--label-indent-rules): New functions.
(c-ts-mode):
(c++-ts-mode): Use c-ts-mode--simple-indent-rules.

(cherry picked from commit 63d69bd154987bcc0434e0f85e09bf5dfa07b827)

3 weeks agoAdd baseline tree-sitter indent rule for C-like languages
Yuan Fu [Sat, 30 Nov 2024 04:43:09 +0000 (20:43 -0800)]
Add baseline tree-sitter indent rule for C-like languages

I found a really good baseline indent rule that handles a wide
range of situations very well.  Now major modes can just start
with this rule and add exceptions on top.

This is worth mentioning in the manual, but that'll be a large
change, and doesn't have to be included in this commit.

* lisp/progmodes/c-ts-common.el:

(c-ts-common-list-indent-style): New variable.
(c-ts-common--standalone-parent):
(c-ts-common--prev-standalone-sibling):
(c-ts-common-parent-ignore-preproc):
(c-ts-common-baseline-indent-rule): New function.

* lisp/treesit.el (treesit--indent-prev-line-node): New function.
(treesit-simple-indent-presets): Add new preset.

(cherry picked from commit e37cd4fa597beaec3b491edb1b15ea0c19e72be4)

3 weeks ago; Minor simplification for tree-sitter indent preset column-0
Yuan Fu [Sat, 30 Nov 2024 04:39:00 +0000 (20:39 -0800)]
; Minor simplification for tree-sitter indent preset column-0

* lisp/treesit.el (treesit-simple-indent-presets): Simplify.

(cherry picked from commit 4afdb7e80febd56f4024bad0aff4356198f6ce53)

3 weeks agoAdd treesit-explore command
Yuan Fu [Sat, 30 Nov 2024 04:38:24 +0000 (20:38 -0800)]
Add treesit-explore command

* lisp/treesit.el (treesit-explore): New function.
* doc/lispref/parsing.texi (Language Grammar): Advertize this
command instead of the minor mode.

(cherry picked from commit d0b918d8f3cc0779fa73b395b6384c8a04b0c0ba)

3 weeks agoAllow treesit-simple-indent's rule to be a single function
Yuan Fu [Fri, 29 Nov 2024 22:10:45 +0000 (14:10 -0800)]
Allow treesit-simple-indent's rule to be a single function

* lisp/treesit.el (treesit-simple-indent-rules): Allow the rule
to be a single function.  Also replace cl-loop with dolist plus
catch-throw.
(treesit--indent-rules-optimize): Handle the case when a rule is
a function.
* doc/lispref/modes.texi (Parser-based Indentation): Update
manuel.

(cherry picked from commit 1e44c63fcadeb89a9a9c9208f221970e6fcc774c)

3 weeks agoRefactor treesit--indent-1
Yuan Fu [Fri, 29 Nov 2024 21:45:24 +0000 (13:45 -0800)]
Refactor treesit--indent-1

* lisp/treesit.el (treesit--indent-largest-node-at): New
function.
(treesit--indent-1): Extract code out into the new function.

(cherry picked from commit 1d425125694b61e2b07a7b429a6475dfe59afe37)

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

3 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)

3 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)

3 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)

3 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)

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

3 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)

3 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)

3 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)

3 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)

3 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)

3 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)

3 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)

3 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)

3 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)

3 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)

3 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)

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

3 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)