]> git.eshelyaron.com Git - emacs.git/log
emacs.git
13 days ago; Fix documentation of a recent change in Eshell
Eli Zaretskii [Thu, 12 Dec 2024 05:40:32 +0000 (07:40 +0200)]
; Fix documentation of a recent change in Eshell

* lisp/eshell/em-hist.el (eshell-history-isearch): Fix typo and
wording.  (Bug#74287)

(cherry picked from commit 276a74f0f70126d099b64fefbcafa09758c20b2e)

13 days ago; Skip commit 5f8a86992f30b7ccd502e36c766dea76a94d1798
Eshel Yaron [Thu, 12 Dec 2024 16:00:46 +0000 (17:00 +0100)]
; Skip commit 5f8a86992f30b7ccd502e36c766dea76a94d1798

13 days agoDrop completion--adjust-metadata style property
Eshel Yaron [Thu, 12 Dec 2024 16:00:26 +0000 (17:00 +0100)]
Drop completion--adjust-metadata style property

13 days agoRework history Isearch for Eshell
Pengji Zhang [Tue, 10 Dec 2024 10:55:36 +0000 (18:55 +0800)]
Rework history Isearch for Eshell

This is to make history Isearch for Eshell similar to that of
'comint-mode', by hooking into Isearch properly instead of
defining new commands to emulate Isearch (bug#74287).

* lisp/eshell/em-hist.el (eshell-history-isearch): New user
option.
(eshell-goto-history, eshell--isearch-setup)
(eshell-history-isearch-end, eshell-history-isearch-search)
(eshell-history-isearch-message, eshell-history-isearch-wrap)
(eshell-history-isearch-push-state): New functions.
(eshell-isearch-backward-regexp, eshell-isearch-forward-regexp):
New commands.
(eshell--history-isearch-message-overlay)
(eshell--stored-incomplete-input, eshell--force-history-isearch):
New internal variables.
(eshell-hist-mode-map): Bind 'M-r' to
'eshell-isearch-backward-regexp' and free 'M-s' binding for
normal in-buffer search commands.
(eshell-isearch-backward, eshell-isearch-forward): Use the new
way to start searching.
(eshell-hist-initialize): Use the new Isearch setup function.
(eshell-previous-matching-input): Use 'eshell-goto-history'.
Also inhibit messages when searching.
(eshell-isearch-map, eshell-isearch-repeat-backward)
(eshell-isearch-abort, eshell-isearch-delete-char)
(eshell-isearch-return, eshell-isearch-cancel)
(eshell-isearch-repeat-forward, eshell-test-imatch)
(eshell-return-to-prompt, eshell-prepare-for-search): Remove.
These are for the old history Isearch implementation.

* doc/misc/eshell.texi (History): Document changes.

* etc/NEWS: Annouce changes.

(cherry picked from commit 3959ea66448fb371cdc67bd963cd539a90f99ee5)

13 days ago* test/infra/Dockerfile.emba (emacs-tree-sitter): Add jsdoc grammar.
Michael Albinus [Wed, 11 Dec 2024 08:15:47 +0000 (09:15 +0100)]
* test/infra/Dockerfile.emba (emacs-tree-sitter): Add jsdoc grammar.

(cherry picked from commit c0e1ff6b6b7105e0af09cb3db293d125cebbd9a1)

13 days agoFix browse-url-kde :version tags
Robert Pluim [Wed, 11 Dec 2024 08:04:06 +0000 (09:04 +0100)]
Fix browse-url-kde :version tags

* lisp/net/browse-url.el (browse-url-kde-program,
browse-url-kde-args): Update :version to 31.1.  (Bug#74775)

(cherry picked from commit f70b486759811090b8262302fbe10680b4846c7b)

13 days agoDo not call custom-reevaluate-setting in comint.el (bug#74287)
Pengji Zhang [Wed, 11 Dec 2024 07:05:09 +0000 (09:05 +0200)]
Do not call custom-reevaluate-setting in comint.el (bug#74287)

* lisp/comint.el (comint--force-history-isearch): New internal variable.
(comint-history-isearch-backward, comint-history-isearch-backward-regexp):
Set comint--force-history-isearch to t.
(comint-history-isearch-setup): Check comint--force-history-isearch.
(comint-history-isearch-end): Set comint--force-history-isearch back to nil
instead of calling custom-reevaluate-setting.

(cherry picked from commit 5db9471453af4a47d7665295ea007faf35c069b6)

13 days agoMake c-ts-mode tests pass even for older tree-sitter libraries
Yuan Fu [Wed, 11 Dec 2024 06:08:10 +0000 (22:08 -0800)]
Make c-ts-mode tests pass even for older tree-sitter libraries

* lisp/progmodes/c-ts-mode.el (c-ts-mode--for-loop-indent-rule):
Use child index instead of field name.

(cherry picked from commit 10e49d7fae708d64fe68effe5890ea77c875a799)

13 days agoUpdate browse-url-kde variables
Björn Bidar [Tue, 10 Dec 2024 22:43:29 +0000 (00:43 +0200)]
Update browse-url-kde variables

* lisp/net/browse-url.el (browse-url-kde-program, browse-url-kde-args):
Update defaults to more modern alternative to kfmclient.  Kfmclient is
only installed when Konqueror is installed, which isn't the default
file-manager since KDE4.  In contrast, it is more likely that kde-open
is installed as it is required by Plasma, and it exists since
KDE4.  (Bug#74775)

(cherry picked from commit 63b9ddda8f8dcfea2927cc4fab7134a7f65c0229)

13 days ago; * lisp/loadup.el: Silence checkdoc.
Stefan Kangas [Wed, 11 Dec 2024 00:06:00 +0000 (01:06 +0100)]
; * lisp/loadup.el: Silence checkdoc.

(cherry picked from commit 2412b9d763390c26a903604867bad4d2a5ffa67c)

13 days agoUpdate project-recompile's docstring
Daniel Mendler [Tue, 10 Dec 2024 23:29:01 +0000 (01:29 +0200)]
Update project-recompile's docstring

* lisp/progmodes/project.el (project-recompile):
Update the docstring accordingly (bug#74631).

(cherry picked from commit d657a38fd1270138301bcd5936f2c9319df69903)

13 days agoUse builtin-expect directly
Paul Eggert [Tue, 10 Dec 2024 19:19:25 +0000 (11:19 -0800)]
Use builtin-expect directly

* admin/merge-gnulib (GNULIB_MODULES): Add builtin-expect,
since src/lisp.h now uses __builtin_expect directly,
which we should no longer rely on it being pulled in as
a dependency of some other Gnulib module that we use.

(cherry picked from commit 1012e2a43b9d78ad623f2daa2204a2d1cec830a5)

13 days agotime-stamp: properly abbreviate instead of truncating names
Stephen Gildea [Tue, 10 Dec 2024 17:09:39 +0000 (09:09 -0800)]
time-stamp: properly abbreviate instead of truncating names

* lisp/time-stamp (time-stamp-string-preprocess): Stop truncating month
and weekday name strings; it didn't internationalize well.
Some historical conversions, previously accepted quietly, now warn.
(time-stamp-format): Recommend the simpler formats implemented in 2019.
* test/lisp/time-stamp-tests.el: Update tests and comments to match.
Revert commit 83e4559664 (2022-07-01), which was working around the
former confusion between truncation and abbreviation.

(cherry picked from commit 7665ec8df8d1c01211db6a85dda4813d6912ffee)

13 days agoMove ns-specific event setup to term/ns-win.el (Bug#74619)
Robert Pluim [Tue, 10 Dec 2024 08:42:11 +0000 (09:42 +0100)]
Move ns-specific event setup to term/ns-win.el (Bug#74619)

* lisp/term/ns-win.el (ns-setup-special-keys): New function,
contains event setup code previously in term/common-win.el.
Call it at top-level.
* lisp/term/common-win.el (x-setup-function-keys): Call
'ns-setup-special-keys'.

(cherry picked from commit ebd8feef1491907ebf4648a3aa38ddaa7fbf1dd2)

13 days agoproject-recompile: Autoload and run in project root
Daniel Mendler [Sun, 1 Dec 2024 10:43:48 +0000 (11:43 +0100)]
project-recompile: Autoload and run in project root

* lisp/progmodes/project.el (project-recompile): Autoload and
use project root as `default-directory' (bug#74631).

(cherry picked from commit be51f13491ddb5eb4f281a79fa7e76ef30147cb1)

13 days ago; Skip commit 4eea545bbc34adac27fbc7668542df0ec3b25f9f
Eshel Yaron [Thu, 12 Dec 2024 15:47:18 +0000 (16:47 +0100)]
; Skip commit 4eea545bbc34adac27fbc7668542df0ec3b25f9f

13 days ago; Mark failing tests in erc-scenarios-match.el as :unstable
F. Jason Park [Sun, 8 Dec 2024 00:52:12 +0000 (16:52 -0800)]
; Mark failing tests in erc-scenarios-match.el as :unstable

* test/lisp/erc/erc-scenarios-match.el
(erc-scenarios-match--stamp-both-invisible-fill-static)
(erc-scenarios-match--stamp-both-invisible-fill-static--nooffset):
Tag as :unstable for a `system-type' of `berkeley-unix'.
(Bug#74722)

(cherry picked from commit b25fba0ef8f38f95a9e65548f9ebb6c92739857e)

13 days ago; Slightly improve test case for erc-parse-modes
F. Jason Park [Sat, 7 Dec 2024 03:09:04 +0000 (19:09 -0800)]
; Slightly improve test case for erc-parse-modes

* lisp/erc/erc.el (erc--merge-local-modes): Look for a symbol's
`erc-module' property before examining its name.
* test/lisp/erc/erc-tests.el (erc-parse-modes): Expand case to cover
alternating plus and minus mode changes.

(cherry picked from commit dc7c38ed9ec85e2e7cbe3c9fcb3b6d5dbb5aa206)

13 days agoSupport menu separator types in tty menus (bug#74740)
Gerd Möllmann [Mon, 9 Dec 2024 14:08:01 +0000 (15:08 +0100)]
Support menu separator types in tty menus (bug#74740)

* src/xdisp.c (display_tty_menu_item): Display "--" for all menu
separator types.

(cherry picked from commit d719a8140917e3b1dd6889f064ffb8e8b0621c7d)

13 days ago; Add an autoload cookie for native-compile-prune-cache
Gerd Möllmann [Mon, 9 Dec 2024 05:41:09 +0000 (06:41 +0100)]
; Add an autoload cookie for native-compile-prune-cache

* lisp/emacs-lisp/comp.el (native-compile-prune-cache): Make it
autoload.

(cherry picked from commit b8ee67b6963a913d2842d69686f92f690c78cc50)

13 days agoFix occasional crash in lwlib due to uninitialized data
Pip Cet [Mon, 9 Dec 2024 12:48:54 +0000 (12:48 +0000)]
Fix occasional crash in lwlib due to uninitialized data

Crash observed on cfarm's cfarm210 machine, which is a Solaris 10 zone
on an M3000 server.

* lwlib/xlwmenu.c (XlwMenuInitialize): Initialize menu.font.

(cherry picked from commit cb288fbcd97deeeb993a7a3de97bdbf5b7dced75)

2 weeks agoFix usage reporting for Eshell commands
Jim Porter [Mon, 9 Dec 2024 04:23:46 +0000 (20:23 -0800)]
Fix usage reporting for Eshell commands

* lisp/eshell/esh-cmd.el (eshell-exec-lisp): Call
'elisp-get-fnsym-args-string'; the old function was renamed to this.

(cherry picked from commit 6df535788a20c9047d33dd8a0c62258597632647)

2 weeks agoReturn non-zero exit status when Eshell's "which" fails to find a command
Jim Porter [Mon, 9 Dec 2024 04:21:31 +0000 (20:21 -0800)]
Return non-zero exit status when Eshell's "which" fails to find a command

* lisp/eshell/esh-cmd.el (eshell/which): Set exit status to 1 if we
couldn't find any of the commands (bug#74739).

(cherry picked from commit b6c91cdf54168eef260e28a7866486a4d68bfc9e)

2 weeks ago; * etc/symbol-releases.eld: Add and-let*.
Stefan Kangas [Mon, 9 Dec 2024 03:14:47 +0000 (04:14 +0100)]
; * etc/symbol-releases.eld: Add and-let*.

(Bug#74712)

(cherry picked from commit 1098ae2896f458507c01afd04cb2e242227c6724)

2 weeks agoMake setting tex-dvi-view-command to an sexp obsolete
Stefan Kangas [Mon, 9 Dec 2024 03:01:44 +0000 (04:01 +0100)]
Make setting tex-dvi-view-command to an sexp obsolete

This is more in line with how we generally handle user options for
commands to call.  Later, we can get rid of the 'eval' call.

* lisp/textmodes/tex-mode.el (tex-view): Warn if tex-dvi-view-command is
set to an sexp instead of a string; say that this use is obsolete.
(tex-dvi-view-command): Change the default value to a string.  Update
docstring to reflect the above obsoletion.

(cherry picked from commit 9b4af418ddc3328c8756f3ca21ba25f161c65b65)

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

2 weeks ago; * doc/lispref/modes.texi (Parser-based Font Lock): Fix markup.
Eli Zaretskii [Sun, 8 Dec 2024 12:10:33 +0000 (14:10 +0200)]
; * doc/lispref/modes.texi (Parser-based Font Lock): Fix markup.

(cherry picked from commit 9a0e26b88616946d2512680859166caa2675b30a)

2 weeks agoAllow treesit--font-lock-level-setter to be an alist
Yuan Fu [Sun, 8 Dec 2024 07:18:53 +0000 (23:18 -0800)]
Allow treesit--font-lock-level-setter to be an alist

* lisp/treesit.el (treesit-font-lock-level): Allow the
value to be an alist mapping major modes to font lock levels.
(treesit--font-lock-level-setter): Rewrite.
(treesit--compute-font-lock-level): New function.
(treesit-font-lock-recompute-features): Use new function.

* doc/lispref/modes.texi (Parser-based Font Lock): Minor fix.

(cherry picked from commit b953bcb17047998c9e41cede7c5e5ffec22209b2)

2 weeks ago* test/lisp/wdired-tests.el (wdired-test-bug34915): Fix for *BSD.
Michael Albinus [Sat, 7 Dec 2024 14:14:00 +0000 (15:14 +0100)]
* test/lisp/wdired-tests.el (wdired-test-bug34915): Fix for *BSD.

(Bug#74721)

(cherry picked from commit 69191aeefdb0fec0722dbbe29a72ad2af9053f87)

2 weeks agoDon't restrict 'lua-ts-send-file' to 'lua-ts-mode'
john muhl [Mon, 2 Dec 2024 15:20:01 +0000 (09:20 -0600)]
Don't restrict 'lua-ts-send-file' to 'lua-ts-mode'

* lisp/progmodes/lua-ts-mode.el (lua-ts-send-file): Remove
restriction on interactive use.  Unlike related send-* commands
it can be useful to send a file to the Lua interpreter outside of
a 'lua-ts-mode' buffer.  (Bug#74705)

(cherry picked from commit 4f2a21cc2a369341b91bb3657e851bdc75e5e053)

2 weeks ago; Skip commit 84fc77f34f0c942860c2fd4d3080504e9509dd2b
Eshel Yaron [Mon, 9 Dec 2024 12:47:24 +0000 (13:47 +0100)]
; Skip commit 84fc77f34f0c942860c2fd4d3080504e9509dd2b

2 weeks agoRemove unnecessary function call from 'php-ts-mode'
Vincenzo Pupillo [Wed, 4 Dec 2024 14:06:54 +0000 (15:06 +0100)]
Remove unnecessary function call from 'php-ts-mode'

* lisp/progmodes/php-ts-mode.el (php-ts-mode): Remove
unnecessary function call 'treesit-font-lock-recompute-features'.
(Bug#74688)

(cherry picked from commit c87c5b95e1309b59b6cb07d07a20234a74a73f35)

2 weeks agoprogmodes/js: Use 'completing-read' instead of 'ido-completing-read'
Daniel Mendler [Wed, 1 Mar 2023 18:27:38 +0000 (19:27 +0100)]
progmodes/js: Use 'completing-read' instead of 'ido-completing-read'

* lisp/progmodes/js.el (js--read-symbol): Don't use Ido.
(Bug#74615)

(cherry picked from commit e7fdf6b68ce7aeba9f3b503a1c5b8bf1a61800c1)

2 weeks ago; Skip commit 8c3e10b5756a72d5d17f8166c0241f933305abe9
Eshel Yaron [Mon, 9 Dec 2024 12:46:58 +0000 (13:46 +0100)]
; Skip commit 8c3e10b5756a72d5d17f8166c0241f933305abe9

2 weeks ago; Skip commit bf976ca7436b620ac33f00fa12317038ab387e00
Eshel Yaron [Mon, 9 Dec 2024 12:46:54 +0000 (13:46 +0100)]
; Skip commit bf976ca7436b620ac33f00fa12317038ab387e00

2 weeks ago; * lisp/dired-aux.el (shell-command-guess-open): Fix :type (bug#74720).
Eli Zaretskii [Sat, 7 Dec 2024 11:50:27 +0000 (06:50 -0500)]
; * lisp/dired-aux.el (shell-command-guess-open): Fix :type (bug#74720).

(cherry picked from commit d84c5c24b58b124f79b2a61e58e46c501d8ec52a)

2 weeks agoUpdate info-lookup's support for 'latex-mode'
Eli Zaretskii [Sat, 7 Dec 2024 09:04:44 +0000 (11:04 +0200)]
Update info-lookup's support for 'latex-mode'

* lisp/info-look.el (latex-mode): Update URLs of LaTeX manuals and
the corresponding names of the index nodes.

(cherry picked from commit d185d901905e11cf9120f5cea680ae04eae2809f)

2 weeks ago; * lisp/help-at-pt.el (display-local-help): Fix last change.
Robert Pluim [Thu, 5 Dec 2024 10:19:41 +0000 (11:19 +0100)]
; * lisp/help-at-pt.el (display-local-help): Fix last change.

(cherry picked from commit 3cf177442ccd08f7b92b3e08c41899ba34699355)

2 weeks ago; * lisp/help-at-pt.el (display-local-help): Doc fix.
Eli Zaretskii [Wed, 4 Dec 2024 17:51:31 +0000 (19:51 +0200)]
; * lisp/help-at-pt.el (display-local-help): Doc fix.

(cherry picked from commit 02c53b9aab0f255e7fac39660febbbbfbc59ba25)

2 weeks ago; * doc/emacs/building.texi (Compilation Mode): Fix last change.
Eli Zaretskii [Wed, 4 Dec 2024 16:21:19 +0000 (18:21 +0200)]
; * doc/emacs/building.texi (Compilation Mode): Fix last change.

(cherry picked from commit 130c2a13dc72fca1677a986d3131398e908e58df)

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)