]> git.eshelyaron.com Git - emacs.git/log
emacs.git
14 months agoMake find-function-regexp also find transient-define-*
Jonas Bernoulli [Mon, 19 Feb 2024 22:36:17 +0000 (23:36 +0100)]
Make find-function-regexp also find transient-define-*

* lisp/emacs-lisp/find-func.el (find-function-regexp): Also find
transient-define-prefix, transient-define-suffix,
transient-define-infix and transient-define-argument.

(cherry picked from commit d9afa1f30fdf9d00b447fea0a8343397333e172f)

14 months ago; Copyedits
Michael Albinus [Tue, 20 Feb 2024 11:53:15 +0000 (12:53 +0100)]
; Copyedits

(cherry picked from commit d5775ae4d3ac8a1a4d2625e05307c9296df28d6f)

14 months agoAdd Tramp methods dockercp and podmancp
Michael Albinus [Tue, 20 Feb 2024 11:52:40 +0000 (12:52 +0100)]
Add Tramp methods dockercp and podmancp

* doc/misc/tramp.texi (External methods):  Add dockercp and podmancp.

* etc/NEWS: Add Tramp methods "dockercp" and "podmancp".

* lisp/net/tramp.el (tramp-handle-make-process):
* lisp/net/tramp-adb.el (tramp-adb-maybe-open-connection):
* lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band)
(tramp-maybe-open-connection):
* lisp/net/tramp-sshfs.el (tramp-sshfs-handle-process-file)
(tramp-sshfs-maybe-open-connection):
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-send-command): Adapt
`tramp-expand-args' calls.

* lisp/net/tramp-container.el (tramp-dockercp-method)
(tramp-podmancp-method): New defconst.
(tramp-methods) <dockercp, podmancp>: Add new methods.
(tramp-container--completion-function): Adapt docstring.  Use it
for "dockercp" and "podmancp" completion.

* lisp/net/tramp.el (tramp-get-remote-tmpdir):
* lisp/net/tramp-gvfs.el (tramp-gvfs-maybe-open-connection):
* lisp/net/tramp-sh.el (tramp-maybe-open-connection): Use a default
value with `tramp-get-method-parameter'.

* lisp/net/tramp-sh.el (tramp-methods) <nc>: Add `tramp-copy-file-name'.
(tramp-default-copy-file-name): New defconst.
(tramp-make-copy-file-name): Rename from
`tramp-make-copy-program-file-name'.  Use method parameter
`tramp-copy-file-name'.  (Bug#69085)
(tramp-do-copy-or-rename-file-out-of-band): Adapt callees.

* lisp/net/tramp.el (tramp-methods): Adapt docstring.
(tramp-get-method-parameter, tramp-expand-args): New optional
argument DEFAULT.

* test/lisp/net/tramp-tests.el (tramp--test-container-p): Adapt.
(tramp--test-container-oob-p): New defun.
(tramp-test17-dired-with-wildcards, tramp-test35-remote-path)
(tramp-test41-special-characters): Use it.
(tramp--test-set-ert-test-documentation): Use `split-string'.

(cherry picked from commit 4e9993cada32a866a75b458092de0028db2f5f41)

14 months ago; * doc/misc/gnus.texi (Other modes): Fix last change.
Eli Zaretskii [Mon, 19 Feb 2024 19:34:43 +0000 (21:34 +0200)]
; * doc/misc/gnus.texi (Other modes): Fix last change.

(cherry picked from commit a1cbc4d810bc1b525fa46b23249b414c1ad6b031)

14 months agoAllow attaching files at point using 'gnus-dired-attach'
Philip Kaludercic [Thu, 15 Feb 2024 11:10:12 +0000 (12:10 +0100)]
Allow attaching files at point using 'gnus-dired-attach'

* lisp/gnus/gnus-dired.el (gnus-dired-attach-at-end): Add option.
(gnus-dired-attach): Respect it.
* doc/misc/gnus.texi (Other modes): Document it.  (Bug#69141)

(cherry picked from commit 6893106fe9302b1be68dd04034441799e6d29b68)

14 months agoSlight switch byte op speedup
Mattias Engdegård [Mon, 19 Feb 2024 13:42:55 +0000 (14:42 +0100)]
Slight switch byte op speedup

* src/bytecode.c (exec_byte_code): Hoist symbols_with_pos_enabled check
from fast loop, and eliminate the initial index check.

(cherry picked from commit 23793600778c4efe5615b646f2d3895624c23ef0)

14 months agoReplace XSET_HASH_TABLE with make_lisp_hash_table
Mattias Engdegård [Mon, 19 Feb 2024 10:44:53 +0000 (11:44 +0100)]
Replace XSET_HASH_TABLE with make_lisp_hash_table

* src/lisp.h (XSET_HASH_TABLE): Remove, replace with...
(make_lisp_hash_table): ...this.  All callers adapted.

(cherry picked from commit 188fe6bffa69e08b60a7d65709998bd803b7ada5)

14 months agoCheck shortdoc keywords and fix one mistake
Mattias Engdegård [Mon, 19 Feb 2024 09:27:02 +0000 (10:27 +0100)]
Check shortdoc keywords and fix one mistake

* lisp/emacs-lisp/shortdoc.el (shortdoc--check)
(define-short-documentation-group): Check that used keywords exist.
* lisp/emacs-lisp/shortdoc.el (list): Fix a typo.

(cherry picked from commit ddfba511c190e5bb44e44a50aef5ab8c08e3d798)

14 months ago; Further copyedits of doc/translations/README.
Eli Zaretskii [Mon, 19 Feb 2024 13:19:54 +0000 (15:19 +0200)]
; Further copyedits of doc/translations/README.

(cherry picked from commit 70dc1700562309c2612a71be35f9c71e9e1641b8)

14 months ago; Proofreading changes in doc/translations/README.
Jean-Christophe Helary [Mon, 19 Feb 2024 11:05:14 +0000 (20:05 +0900)]
; Proofreading changes in doc/translations/README.

(cherry picked from commit 5d3ecd7358252349dd26e6015a83054893af4474)

14 months ago* test/src/eval-tests.el (eval-tests/default-value): Add new test case.
Ihor Radchenko [Tue, 2 Jan 2024 11:06:16 +0000 (12:06 +0100)]
* test/src/eval-tests.el (eval-tests/default-value): Add new test case.

Bug#66117

(cherry picked from commit be8f3e68a88a00bc12f1cc405a8a341666c41858)

14 months agoDon't update ranges for the whole buffer in treesit--pre-redisplay
Yuan Fu [Mon, 19 Feb 2024 05:39:31 +0000 (21:39 -0800)]
Don't update ranges for the whole buffer in treesit--pre-redisplay

* lisp/treesit.el (treesit--pre-redisplay): Only update two
screen-full of text around point.

(cherry picked from commit 8f260bb93f534b24d9a93d3315804ffe0c1fec4f)

14 months agoBack out part of commit db5e84af202
Eric Abrahamsen [Mon, 19 Feb 2024 02:08:51 +0000 (18:08 -0800)]
Back out part of commit db5e84af202

* lisp/gnus/gnus-agent.el (gnus-category-make-function-1): This code is
untested and was not meant to be part of the earlier commit.

(cherry picked from commit f6743099cc907f1f2847f028ff8f3712288c559f)

14 months agoUse -Wanalyzer-deref-before-check in GCC 14
Paul Eggert [Sun, 18 Feb 2024 08:12:28 +0000 (00:12 -0800)]
Use -Wanalyzer-deref-before-check in GCC 14

* src/marker.c: Work around GCC bug 113253 only if GCC 13.
The GCC bug reportedly will be fixed in GCC 14.

(cherry picked from commit 4a8d3c5b75b28167300d2df061d053935809d43e)

14 months agoDo not ignore -Wanalyzer-allocation-size in GCC 14
Paul Eggert [Sun, 18 Feb 2024 07:48:20 +0000 (23:48 -0800)]
Do not ignore -Wanalyzer-allocation-size in GCC 14

* src/lisp.h (SAFE_ALLOCA_LISP_EXTRA): Use pragma to ignore the
warning only in GCC 13, as the GCC developers say GCC bug 109577
is fixed in GCC 14.

(cherry picked from commit 659770fdf535ca683a97d965d2e4ed0f9f321145)

14 months agoRemove no-longer-needed pdumper_load workaround
Paul Eggert [Sun, 18 Feb 2024 07:38:30 +0000 (23:38 -0800)]
Remove no-longer-needed pdumper_load workaround

* src/pdumper.c (pdumper_load): Revert my commit "Pacify GCC
12.1.1 in default developer build" dated 2022-06-13 13:21:18 -07,
as GCC bug 105961 is fixed, and this workaround is not needed for
unfixed GCC as these builds should not use --enable-gcc-warnings.

(cherry picked from commit 42c6cf4e5804312defa9d9caac8882500bd38179)

14 months agoIgnore fewer GCC -fanalyzer diagnostics in ccl.c
Paul Eggert [Sun, 18 Feb 2024 07:12:18 +0000 (23:12 -0800)]
Ignore fewer GCC -fanalyzer diagnostics in ccl.c

* src/ccl.c: Do not ignore -Wanalyzer-use-of-uninitialized-value,
as that bug has been fixed in GCC.  Ignore
-Wanalyzer-out-of-bounds only if GCC 13, as the bug will
reportedly be fixed when GCC 14 comes out.

(cherry picked from commit f8d27a8a1fd5bdc8e25569cc05a9298e186a8c63)

14 months ago; Fix punctuation and encoding of doc/translations/README
Eli Zaretskii [Sun, 18 Feb 2024 07:56:14 +0000 (09:56 +0200)]
; Fix punctuation and encoding of doc/translations/README

* doc/translations/README: Fix non-ASCII characters and
punctuation.  Add local variables section.

(cherry picked from commit d80f1352d80938bb4ef61c5d74aa056902abd9b4)

14 months agoMove translations-related files to do/translations/.
Eli Zaretskii [Sun, 18 Feb 2024 07:49:16 +0000 (09:49 +0200)]
Move translations-related files to do/translations/.

(cherry picked from commit 42179750c5f3f722b1ce2f82d2b2e73bba8e4de8)

14 months agojava-ts-mode: Indentation for opening brace on a separate line
Dmitry Gutov [Sat, 17 Feb 2024 20:34:55 +0000 (22:34 +0200)]
java-ts-mode: Indentation for opening brace on a separate line

* lisp/progmodes/java-ts-mode.el (java-ts-mode--indent-rules):
Support putting the opening brace on a separate line (bug#67556).

* test/lisp/progmodes/java-ts-mode-resources/indent.erts:
Add a test.

(cherry picked from commit 5a64d2c7595dc393504c6eee9321d74dbd8ae9e2)

14 months agoRemoved decommissioned PGP keyservers
Philip Kaludercic [Sun, 11 Feb 2024 17:38:13 +0000 (18:38 +0100)]
Removed decommissioned PGP keyservers

* lisp/epa-ks.el (epa-keyserver): Update the user option type of
`epa-keyserver'.

See https://mail.gnu.org/archive/html/emacs-devel/2023-11/msg00857.html.

(cherry picked from commit 9e56bd5ed8775f53c3025b114525cee7c578e2d0)

14 months agoorg: Fix security prompt for downloading remote resource
Ihor Radchenko [Fri, 2 Feb 2024 19:59:41 +0000 (20:59 +0100)]
org: Fix security prompt for downloading remote resource

* lisp/org.el (org--confirm-resource-safe): Do not assume that
resource is safe when user replies "n" (do not download).

Reported-by: Max Nikulin <manikulin@gmail.com>
Link: https://orgmode.org/list/upj6uk$b7o$1@ciao.gmane.io
(cherry picked from commit e56f0ef51bfdd0e03e817670754bc813fb3702a2)

14 months agoRevert "Update to Org 9.6.19"
Eli Zaretskii [Sat, 17 Feb 2024 16:53:05 +0000 (18:53 +0200)]
Revert "Update to Org 9.6.19"

This reverts commit 07a392f445eb21c5e4681027eee9d981300a4309.
It was installed by mistake.

(cherry picked from commit 65ba3274652a4dac37f41f872330e391cd511ae1)

14 months agoUpdate to Org 9.6.19
Kyle Meyer [Sat, 17 Feb 2024 15:17:41 +0000 (10:17 -0500)]
Update to Org 9.6.19

(cherry picked from commit 07a392f445eb21c5e4681027eee9d981300a4309)

14 months agoMore multi-commands
Eshel Yaron [Wed, 28 Feb 2024 17:26:42 +0000 (18:26 +0100)]
More multi-commands

14 months ago; Autoload text property search functions
Eshel Yaron [Wed, 28 Feb 2024 16:58:02 +0000 (17:58 +0100)]
; Autoload text property search functions

14 months agoUnify 'cycle-' and 'display-sort-function' to just 'sort-function'
Eshel Yaron [Wed, 28 Feb 2024 16:56:50 +0000 (17:56 +0100)]
Unify 'cycle-' and 'display-sort-function' to just 'sort-function'

14 months agoRework *Completions* display
Eshel Yaron [Mon, 26 Feb 2024 18:58:03 +0000 (19:58 +0100)]
Rework *Completions* display

14 months ago; Refine dictionary definition display in *Help* buffers
Eshel Yaron [Sun, 25 Feb 2024 11:25:58 +0000 (12:25 +0100)]
; Refine dictionary definition display in *Help* buffers

* lisp/net/dictionary.el (dictionary-display-definition-in-help-buffer):
Add one-line description and normalize whitespace in references.

14 months agoNew command 'minibuffer-apply'
Eshel Yaron [Wed, 21 Feb 2024 16:23:57 +0000 (17:23 +0100)]
New command 'minibuffer-apply'

* lisp/minibuffer.el (completions-used-input): New face.
(minibuffer-completion-action): New variable and function.
(minibuffer-completion-command): New variable.
(completing-read-default): Set it to 'this-command'.
(minibuffer-current-input): New function.
(minibuffer-apply): New command.
(minibuffer-local-completion-map): Bind it to 'C-j'.
(minibuffer-local-must-match-map): Unbind 'C-j'.

* lisp/cus-edit.el (customize-toggle-option): Set
'minibuffer-action' property to non-nil.

* etc/NEWS: Announce it.

14 months ago; Reposition cursor after refreshing *Completions*
Eshel Yaron [Wed, 21 Feb 2024 12:24:06 +0000 (13:24 +0100)]
; Reposition cursor after refreshing *Completions*

* lisp/minibuffer.el (minibuffer-completion-help): If *Completions* is
already visible and some candidate is highlighted, try to highlight it
again after populating the buffer anew.

14 months agoMove French translations to the top-level doc/ directory.
Jean-Christophe Helary [Sat, 17 Feb 2024 15:02:09 +0000 (00:02 +0900)]
Move French translations to the top-level doc/ directory.

(cherry picked from commit a58bcb96ac898d218b3169e76db798f192107d52)

14 months agoAdd README file about translations of Emacs manuals
Jean-Christophe Helary [Sat, 17 Feb 2024 15:04:18 +0000 (00:04 +0900)]
Add README file about translations of Emacs manuals

* doc/README: New file.

(cherry picked from commit aa8baf77b47e3de114f5dc5e9aaa987bb96ed248)

14 months agoImplement tooltip_reuse_hidden_frame for Android
Po Lu [Sun, 18 Feb 2024 04:48:41 +0000 (12:48 +0800)]
Implement tooltip_reuse_hidden_frame for Android

* java/org/gnu/emacs/EmacsWindow.java
(findSuitableActivityContext): Return Activity rather than
Context.
(mapWindow): Provide window token manually.

* src/androidfns.c (Fx_show_tip, Fx_hide_tip): Respect
tooltip_reuse_hidden_frame.

(cherry picked from commit c2d714886ef139f601d89463675b0d5b49d18ff9)

14 months agoUpdate from Gnulib by running admin/merge-gnulib
Paul Eggert [Sat, 17 Feb 2024 23:58:03 +0000 (15:58 -0800)]
Update from Gnulib by running admin/merge-gnulib

(cherry picked from commit bd0e281a6a27c048b12847811bc0385acbaa1eec)

14 months agoAdjust to yesterday’s Gnulib nstrftime changes
Paul Eggert [Fri, 16 Feb 2024 02:45:29 +0000 (18:45 -0800)]
Adjust to yesterday’s Gnulib nstrftime changes

Bruno Haible fixed Gnulib so that nstrftime no longer requires
locking code, which means we no longer need to avoid localename.
However, nstrftime now requires localename-unsafe-limited which
pulls in some Gnulib-specific locale code, and it’s likely this
needs to be replaced with Emacs-specific locale code.  In the
meantime let’s continue to finess this by avoiding
localename-unsafe-limited.
* admin/merge-gnulib (AVOIDED_MODULES):
Avoid localename-unsafe-limited instead of localename.

(cherry picked from commit 37bb33dae791e5f59f1d0d27c0221db3b3b4c16d)

14 months ago; Fix typo from commit 32c5bdfa971
Philip Kaludercic [Sat, 17 Feb 2024 18:20:42 +0000 (19:20 +0100)]
; Fix typo from commit 32c5bdfa971

* lisp/gnus/gnus-util.el (gnus-not-ignore): Quote the argument
to defalias.

(cherry picked from commit 20997aa20728a6fc2a3de736e9fc718b97dcef99)

14 months agoProvide better default value for date in Gnus scoring
Jakub Ječmínek [Sat, 17 Feb 2024 17:34:36 +0000 (09:34 -0800)]
Provide better default value for date in Gnus scoring

Bug#61002, thanks to Kamil Jońca for reporting

* lisp/gnus/gnus-score.el (gnus-summary-score-entry): When scoring on
Date header, the default value for the prompt should be number of days
between the date of the article under point, and "now".

(cherry picked from commit 32c5bdfa971220bae37991a298628605c82f866c)

14 months agoAlias some gnus-specific do-nothing functions
Eric Abrahamsen [Sat, 17 Feb 2024 17:31:50 +0000 (09:31 -0800)]
Alias some gnus-specific do-nothing functions

Replace with #'always and #'ignore

* lisp/gnus/gnus-agent.el: `gnus-agent-true' and `gnus-agent-false'
* lisp/gnus/gnus-util.el: `gnus-not-ignore'

(cherry picked from commit db5e84af202532b138918295ea6dd1b0ea910d78)

14 months ago; Skip commit c14a67a80f4263c13db55b6a79fb545b82a8b5b7
Eshel Yaron [Tue, 20 Feb 2024 14:57:46 +0000 (15:57 +0100)]
; Skip commit c14a67a80f4263c13db55b6a79fb545b82a8b5b7

14 months ago; Skip commit 52d554d5d8964943c65ecf140fdcc4bd6bccf855
Eshel Yaron [Tue, 20 Feb 2024 14:56:39 +0000 (15:56 +0100)]
; Skip commit 52d554d5d8964943c65ecf140fdcc4bd6bccf855

14 months ago; Use the ':prefix' argument of 'defvar-keymap'
Eshel Yaron [Tue, 20 Feb 2024 14:23:36 +0000 (15:23 +0100)]
; Use the ':prefix' argument of 'defvar-keymap'

* lisp/minibuffer.el (minibuffer-narrow-completions-map): Use ':prefix'.

14 months ago; Bind M-<left>/<right> in minibuffer for navigating *Completions*
Eshel Yaron [Tue, 20 Feb 2024 14:18:52 +0000 (15:18 +0100)]
; Bind M-<left>/<right> in minibuffer for navigating *Completions*

* lisp/minibuffer.el (minibuffer-local-completion-map): Bind
'M-<left>/<right>' to 'minibuffer-previous/next-completion', and bind
'M-<down>/<up>' to the vertical variants of these commands.

14 months ago; Remove 'minibuffer-visible-completions' and associated cruft
Eshel Yaron [Tue, 20 Feb 2024 07:40:16 +0000 (08:40 +0100)]
; Remove 'minibuffer-visible-completions' and associated cruft

* lisp/minibuffer.el (completion-auto-deselect)
(completions--deselect, completions--after-change)
(minibuffer-visible-completions)
(minibuffer-visible-completions-bind)
(minibuffer-visible-completions-map)
(minibuffer-choose-completion-or-exit): Remove.
(display-completion-list, minibuffer-completion-help)
(completion-in-region-mode)
(minibuffer-mode, completing-read-default)
(minibuffer-next-completion): Simplify.

* lisp/simple.el (choose-completion-deselect-if-after): Remove.
(choose-completion, completion-setup-function): Simplify.

* etc/NEWS: Remove announcement.

14 months ago; Simplify 'display-completion-list'
Eshel Yaron [Mon, 19 Feb 2024 08:43:35 +0000 (09:43 +0100)]
; Simplify 'display-completion-list'

* lisp/minibuffer.el (display-completion-list): Remove obsolete
argument COMMON-SUBSTRING.
(completion--insert-strings): Improve docstring.
(minibuffer-completion-help): Adjust.
* etc/NEWS: Announce it.
* doc/lispref/minibuf.texi (Programmed Completion): Add anchor
for the definition of completions grouping functions.
(Completion Commands): Document GROUP-FUN argument of
'display-completion-list'.

14 months ago; Show option state (ON/OFF) in 'toggle-option' completions list
Eshel Yaron [Sun, 18 Feb 2024 21:08:48 +0000 (22:08 +0100)]
; Show option state (ON/OFF) in 'toggle-option' completions list

* lisp/cus-edit.el (custom-boolean-option-on)
(custom-boolean-option-off): New faces.
(customize-read-boolean-option-affixation): New function.
(customize-read-boolean-option): Use it.
(customize-toggle-option): Update.

14 months ago; Flush cycling cache in 'minibuffer-force-complete-and-exit'
Eshel Yaron [Sun, 18 Feb 2024 11:09:45 +0000 (12:09 +0100)]
; Flush cycling cache in 'minibuffer-force-complete-and-exit'

* lisp/minibuffer.el (minibuffer-force-complete-and-exit): Flush cycling
cache to avoid cycling when we were just cycling but now want to exit.

14 months ago; Don't use non-ASCII characters in C comments in xdisp.c.
Eli Zaretskii [Sat, 17 Feb 2024 10:15:11 +0000 (12:15 +0200)]
; Don't use non-ASCII characters in C comments in xdisp.c.

(cherry picked from commit 77576cd7626e4a99a5c88aa854091d701edd53a8)

14 months ago; Skip commit d85461ac61c5ea99ea194f99c771de1efdabbef4
Eshel Yaron [Sat, 17 Feb 2024 13:03:57 +0000 (14:03 +0100)]
; Skip commit d85461ac61c5ea99ea194f99c771de1efdabbef4

14 months ago; Skip commit 6477be93bd8a29cba8ce383f9ea3fba23c45f225
Eshel Yaron [Sat, 17 Feb 2024 13:03:47 +0000 (14:03 +0100)]
; Skip commit 6477be93bd8a29cba8ce383f9ea3fba23c45f225

14 months agoEagerly indent first field in tables in 'lua-ts-mode'
john muhl [Tue, 13 Feb 2024 00:46:51 +0000 (18:46 -0600)]
Eagerly indent first field in tables in 'lua-ts-mode'

* lisp/progmodes/lua-ts-mode.el (lua-ts--simple-indent-rules):
Properly indent the first field of a table when it appears on a
line by itself.  (Bug#69088)

(cherry picked from commit 84e4f1259b54442f52183c1ccee72a417e0a2658)

14 months agoSupport shebang lines with amended environment
Kévin Le Gouguec [Sat, 10 Feb 2024 16:56:57 +0000 (17:56 +0100)]
Support shebang lines with amended environment

For bug#64939.

* lisp/files.el (auto-mode-interpreter-regexp): Account for possible
VARIABLE=[VALUE] operands.
* test/lisp/files-tests.el (files-tests-auto-mode-interpreter):
Add an example from the coreutils manual.

(cherry picked from commit c64e650fb346d92294703d22f8cd7deb7c47b49e)

14 months agoSupport more complex env invocations in shebang lines
Kévin Le Gouguec [Sat, 10 Feb 2024 16:37:35 +0000 (17:37 +0100)]
Support more complex env invocations in shebang lines

This is not an exact re-implementation of what env accepts, but
hopefully it should be "good enough".

Example of known limitation: we assume that arguments for
--long-options will be set with '=', but that is not
necessarily the case.  '--unset' (mandatory argument) can be
passed as '--unset=VAR' or '--unset VAR', but
'--default-signal' (optional argument) requires an '=' sign.

For bug#64939.

* lisp/files.el (auto-mode-interpreter-regexp): Account for
supplementary arguments passed beside -S/--split-string.
* test/lisp/files-tests.el (files-tests-auto-mode-interpreter):
Test some of these combinations.

(cherry picked from commit ecb9641ecb5f42899042ff9c164ec7dbb8e166fe)

14 months agoRefine shebang tests (bug#64939)
Kévin Le Gouguec [Sat, 10 Feb 2024 15:14:08 +0000 (16:14 +0100)]
Refine shebang tests (bug#64939)

* test/lisp/files-tests.el (files-tests--check-shebang): For
shell-script modes, verify that the correct shell is set.
(files-tests-auto-mode-interpreter): Prefer 'sh-base-mode' to
'sh-mode' to stay tree-sitter-agnostic; re-organize test cases to
make future ones easier to add.

(cherry picked from commit de6f7f3c86ea0e52e8f9825585c726a7f93fa9cf)

14 months agoUse modern fallback for channel name detection in ERC
F. Jason Park [Mon, 12 Feb 2024 04:01:54 +0000 (20:01 -0800)]
Use modern fallback for channel name detection in ERC

* lisp/erc/erc-backend.el (erc-query-buffer-p): Remove forward declaration.
* lisp/erc/erc.el (erc-query-buffer-p): Defer to `erc-channel-p'.
(erc-channel-p): Refactor and use `erc--fallback-channel-prefixes' for
the default CHANTYPES value.  Honor an empty CHANTYPES value as valid,
e.g., for servers that only support direct messages.
(erc--fallback-channel-prefixes): New variable to hold fallback
CHANTYPES prefixes recommended by RFC1459 and modern authorities on
the matter.
* test/lisp/erc/erc-tests.el (erc-channel-p): Revise test.  (Bug#67220)

(cherry picked from commit 3d87e343276081247102838b827b8a1f5e9e0c54)

14 months agoNormalize ISUPPORT params with empty values in ERC
F. Jason Park [Mon, 12 Feb 2024 01:15:14 +0000 (17:15 -0800)]
Normalize ISUPPORT params with empty values in ERC

* lisp/erc/erc-backend.el (erc-server-parameters)
(erc--isupport-params): Mention parsing and storage behavior regarding
nonstandard "FOO=" tokens.
(erc--parse-isupport-value): Move comment closer to code.
(erc--get-isupport-entry): Treat the empty string as truly null, as
prescribed by the Brocklesby draft cited in the top-level comment.
* test/lisp/erc/erc-tests.el (erc--get-isupport-entry): Add case for
the empty string appearing as a value for an `erc-server-parameters'
item.
(erc-server-005): Assert compat-related behavior of retaining the
empty string as a valid value from a raw "FOO=" token.
(Bug#67220)

(cherry picked from commit 25d15391f2683ea95c4d7ee291fb82e0c9858d73)

14 months agoIgnore the TGT-LIST parameter in erc-open
F. Jason Park [Mon, 12 Feb 2024 04:42:18 +0000 (20:42 -0800)]
Ignore the TGT-LIST parameter in erc-open

* etc/ERC-NEWS: Mention `erc-open' now ignores TGT-LIST.
* lisp/erc/erc.el (erc-open): Set `erc-default-recipients' to a list
containing only the supplied target.  Other values may cause ERC to
malfunction.  Also redo doc string.

(cherry picked from commit d7c18a7b4f218de8c4d2178c9124ea26c7dc5b6b)

14 months agoMake erc-fill-wrap depend on scrolltobottom
F. Jason Park [Mon, 13 Nov 2023 20:07:36 +0000 (12:07 -0800)]
Make erc-fill-wrap depend on scrolltobottom

* lisp/erc/erc-fill.el (erc-fill-mode): Add reference to
`erc-fill-wrap-mode' in doc string.
(erc--fill-wrap-scrolltobottom-exempt-p): New variable to allow tests
involving `fill-wrap' to opt out of having to enable `scrolltobottom'.
(erc-fill--wrap-ensure-dependencies): Warn and enable
`erc-scrolltobottom-mode' if necessary.
(erc-fill-wrap-mode): Mention workaround for automatically enabling
`scrolltobottom'.
* test/lisp/erc/erc-fill-tests.el (erc-fill-tests--wrap-populate):
Exempt tests from `scrolltobottom' dependency.
* test/lisp/erc/resources/erc-scenarios-common.el: Load `erc-fill'
when compiling.
(erc-scenarios-common--print-trace): Exempt tests using `fill-wrap'
from the `scrolltobottom' dependency by making
`erc--fill-wrap-scrolltobottom-exempt-p' non-nil during test runs.
(Bug#60936)

(cherry picked from commit 9668b4f97c2fc6bfff83258861d455a6d02516a8)

14 months agoAutoload custom-loads for new Custom groups in erc.el
F. Jason Park [Sun, 4 Feb 2024 01:17:48 +0000 (17:17 -0800)]
Autoload custom-loads for new Custom groups in erc.el

* lisp/erc/erc.el: Add `custom-loads' library features for group
symbols `erc-spelling' and `erc-imenu' since they aren't defined in
all supported Emacs versions.  Also add groups `erc-sasl' and
`erc-nicks', new libraries recently added to ERC.  Note that this is
unrelated to prefixes generated for the help system.  (Bug#68943)

(cherry picked from commit 1a36d52413c784750f650ccba95436e4f76ab104)

14 months ago; Load erc-compat before ert-x in ERC tests
F. Jason Park [Fri, 9 Feb 2024 03:19:53 +0000 (19:19 -0800)]
; Load erc-compat before ert-x in ERC tests

Avoid eager macro-expansion error in tests files on Emacs 27 and 28 by
ensuring definitions provided by Compat, like `macroexp-file-name',
load first.

* lisp/erc/erc-speedbar.el (erc-speedbar--reset-last-ran-on-timer):
Suppress "`buffer-local-value' is an obsolete generalized variable"
warning on Emacs 29 and below.
* lisp/erc/erc-stamp.el (erc-stamp--time-as-day): Avoid "unused
lexical variable `current-time-list'" warning on 28 and below.
* lisp/erc/erc.el (erc-check-text-conversion): Add `defvar' for
`text-conversion-style' to avoid "reference to free variable" warning
on Emacs 29 and below.
* test/lisp/erc/erc-button-tests.el: Load `erc-button' before `ert-x'.
* test/lisp/erc/erc-fill-tests.el: Load `erc-fill' before `ert-x'.
* test/lisp/erc/erc-goodies-tests.el: Load `erc-goodies' before
`ert-x'.
* test/lisp/erc/erc-networks-tests.el: Explicitly load `erc-compat'
before anything else.
* test/lisp/erc/erc-scenarios-base-renick.el: Update timeouts.
* test/lisp/erc/erc-stamp-tests.el: Load `erc-stamp' before `ert-x'.
* test/lisp/erc/erc-tests.el: Load `erc-ring' before `ert-x'.

(cherry picked from commit a43b062ee57fd9b7c410e741946e51281db5b92a)

14 months agoRemove "erc-" prefixed Compat definitions
F. Jason Park [Fri, 16 Feb 2024 04:17:20 +0000 (20:17 -0800)]
Remove "erc-" prefixed Compat definitions

* lisp/erc/erc-compat.el: Remove NO-ERROR argument from top-level
`require' for library `compat' because it's guaranteed to be present.
(erc-compat-function, erc-compat-call): Redefine as obsolete aliases
for unprefixed namesakes.
* lisp/erc/erc-fill.el (erc-fill-wrap-nudge): Use `compat-call'
instead of `erc-compat-call'.

(cherry picked from commit e288e1b2f352952e826727967a406c8675fd5594)

14 months ago* java/debug.sh: Print errors correctly if device is ambiguous.
Po Lu [Sat, 17 Feb 2024 02:33:54 +0000 (10:33 +0800)]
* java/debug.sh: Print errors correctly if device is ambiguous.

(cherry picked from commit 537914561eb3809e34b9daf8c2b4719ae9b30a6b)

14 months agoProperly record mtime after insert-file-contents on Android
Po Lu [Sat, 17 Feb 2024 02:27:26 +0000 (10:27 +0800)]
Properly record mtime after insert-file-contents on Android

* src/fileio.c (write_region): Do not verify file identity after
retreiving file status for the second time if st_ino is 0.

(cherry picked from commit 5b65c2ad7526ec081ac37d32c87e9b58e787d66a)

14 months ago* src/androidvfs.c (android_scan_directory_tree): Get rid of xstrdup.
Po Lu [Fri, 16 Feb 2024 14:17:01 +0000 (22:17 +0800)]
* src/androidvfs.c (android_scan_directory_tree): Get rid of xstrdup.

(cherry picked from commit 4b89fb08bdd7d0249698bc0ed578555d6755724d)

14 months ago* lisp/loadup.el (lexical-binding): Add a comment
Stefan Monnier [Fri, 16 Feb 2024 14:04:46 +0000 (09:04 -0500)]
* lisp/loadup.el (lexical-binding): Add a comment

(cherry picked from commit 44a1721156ec29e5799da94f7918f217f52fd751)

14 months agoRemove references to phst@google.com.
Philipp Stephani [Mon, 8 Jan 2024 18:38:33 +0000 (19:38 +0100)]
Remove references to phst@google.com.

I don't work for Google any more, so I'll use my private address going
forward.

* .mailmap: Remove references to phst@google.com.

(cherry picked from commit 45f9af61b8ecbe500de915f63de53e9c598184b9)

14 months ago* BUGS: Note how to report critical security issues.
Stefan Kangas [Wed, 14 Feb 2024 23:51:05 +0000 (00:51 +0100)]
* BUGS: Note how to report critical security issues.

(cherry picked from commit 7256690a3ca4840e0f682a552d45321a1b710398)

14 months agoAdd cross-reference to ELisp manual Caveats
Stefan Kangas [Wed, 14 Feb 2024 23:39:00 +0000 (00:39 +0100)]
Add cross-reference to ELisp manual Caveats

* doc/lispref/intro.texi (Caveats): Add cross-reference to Emacs manual.
Talking about "contributing code" makes little sense in a section about
reporting mistakes in the ELisp manual, so skip that part.

(cherry picked from commit 1035669b38b5aa2aa277e7423837c80534332c19)

14 months agoImprove directory prompt used by package-vc-checkout
Joseph Turner [Tue, 30 Jan 2024 08:52:39 +0000 (00:52 -0800)]
Improve directory prompt used by package-vc-checkout

* lisp/emacs-lisp/package-vc.el (package-vc--read-package-name): Use
read-directory-name instead of read-file-name.  (Bug#66114)

(cherry picked from commit 61a145076275a9da79d0372d50def4aaf5117587)

14 months agoMinor Tramp doc adaption
Michael Albinus [Wed, 14 Feb 2024 16:27:43 +0000 (17:27 +0100)]
Minor Tramp doc adaption

* doc/misc/tramp.texi (Frequently Asked Questions): Be more
precise with FIDO2 keys.

* lisp/net/tramp.el: Adapt comments.

(cherry picked from commit 0c7c8210cb6a87a06b61451d19f3601975569946)

14 months ago;; Fix typo in the Tramp documentation
Daniel Martín [Mon, 12 Feb 2024 12:21:08 +0000 (13:21 +0100)]
;; Fix typo in the Tramp documentation

(cherry picked from commit 17a395e04c62d6c6c3f3ff4c4889f03e427e00d3)

14 months ago* Improve reproducibility of inferred values by native comp
Andrea Corallo [Sun, 11 Feb 2024 09:43:57 +0000 (10:43 +0100)]
* Improve reproducibility of inferred values by native comp

* lisp/emacs-lisp/comp-cstr.el (comp-normalize-valset): Do not try to
reorder conses using 'sxhash-equal' as its behavior is not reproducible
over different sessions.

(cherry picked from commit 614b244a7fa03fcb27d76757e14ef0fa895d6f23)

14 months agoHandle typescript ts grammar breaking change for function_expression
Loïc Lemaître [Sun, 11 Feb 2024 03:00:38 +0000 (05:00 +0200)]
Handle typescript ts grammar breaking change for function_expression

Starting from version 0.20.4 of the typescript/tsx grammar, "function"
becomes "function_expression". The right expression is used depending
on the grammar version.

* lisp/progmodes/typescript-ts-mode.el
(tsx-ts-mode--font-lock-compatibility-function-expression):
New function (bug#69024).
(typescript-ts-mode--font-lock-settings): Use it.

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

14 months agoDon't quote 't' in doc strings
Eli Zaretskii [Sat, 10 Feb 2024 11:00:51 +0000 (13:00 +0200)]
Don't quote 't' in doc strings

* lisp/outline.el (outline-minor-mode-use-buttons): Doc fix.
Patch by Arash Esbati <arash@gnu.org>.  (Bug#69012)

(cherry picked from commit 717d8c4285fa6eecc0bbec9b5910f028f02aab59)

14 months ago; * doc/emacs/search.texi (Error in Isearch): Fix typo.
Eshel Yaron [Sat, 17 Feb 2024 12:30:50 +0000 (13:30 +0100)]
; * doc/emacs/search.texi (Error in Isearch): Fix typo.

14 months agoOptionally highlight non-matching part on completion input
Eshel Yaron [Sat, 17 Feb 2024 12:28:13 +0000 (13:28 +0100)]
Optionally highlight non-matching part on completion input

* lisp/minibuffer.el (minibuffer-completing-remote-file-p)
(minibuffer-not-completing-remote-file-p): New functions.
(minibuffer-completion-fail): New face.
(minibuffer-pulse-failing-completion): New user option.
(completion--fail): Respect it.

* doc/emacs/mini.texi (Completion Options): Document it.

* etc/NEWS: Announce it.

14 months ago; * doc/emacs/mini.texi (Completion Options): Improve indexing.
Eshel Yaron [Sat, 17 Feb 2024 11:39:03 +0000 (12:39 +0100)]
; * doc/emacs/mini.texi (Completion Options): Improve indexing.

14 months ago; Improve message when REQUIRE-MATCH function denies exiting
Eshel Yaron [Sat, 17 Feb 2024 11:06:45 +0000 (12:06 +0100)]
; Improve message when REQUIRE-MATCH function denies exiting

* lisp/minibuffer.el (minibuffer-force-complete): Disregard
'completion-fail-discreetly', since we are not failing completion.
Improve message.

14 months ago; Stop claiming that 'SPC' performs completion
Eshel Yaron [Sat, 17 Feb 2024 11:03:20 +0000 (12:03 +0100)]
; Stop claiming that 'SPC' performs completion

* doc/emacs/mini.texi (Minibuffer Edit)
(Completion, Completion Commands): Update.

14 months ago; Ensure 'seq-max' argument is non empty
Eshel Yaron [Sat, 17 Feb 2024 07:45:09 +0000 (08:45 +0100)]
; Ensure 'seq-max' argument is non empty

* lisp/faces.el (completion-face-name-affixation)
* lisp/minibuffer.el (completion-styles-affixation)
(completion-file-name-affixation)
(minibuffer-narrow-buffer-completions)
(completion-buffer-name-affixation)
* lisp/simple.el (read-extended-command--affixation): Add 0 to
beginning of 'seq-max' argument to ensure it is non empty.

14 months agoWhen deleting output in Eshell, optionally add it to the kill ring.
Tomas Volf [Fri, 16 Feb 2024 02:23:23 +0000 (18:23 -0800)]
When deleting output in Eshell, optionally add it to the kill ring.

* lisp/eshell/esh-mode.el (eshell-kill-output): Rename to...
(eshell-delete-output): ... this, for consistency with 'comint-mode',
and accept KILL argument.  Update callers.

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

14 months ago(tex-font-lock-keywords-1): Fix bug#68827
Stefan Monnier [Thu, 15 Feb 2024 20:09:13 +0000 (15:09 -0500)]
(tex-font-lock-keywords-1): Fix bug#68827

* lisp/textmodes/tex-mode.el (tex-font-lock-keywords-1): Don't
apply `tex-verbatim` in comments.

(cherry picked from commit cea72c1757cc45b42baf3a35fb4d963f3e722b9c)

14 months ago; * lisp/emacs-lisp/comp.el (comp--write-bytecode-file): Add comment.
Andrea Corallo [Thu, 15 Feb 2024 18:17:07 +0000 (19:17 +0100)]
; * lisp/emacs-lisp/comp.el (comp--write-bytecode-file): Add comment.

(cherry picked from commit 4dbc3bbcc568182380d4646310a652285e210876)

14 months ago; Skip commit 7b34bb5c928798e0d40fce062c1b6d4b2ce06979
Eshel Yaron [Fri, 16 Feb 2024 07:34:09 +0000 (08:34 +0100)]
; Skip commit 7b34bb5c928798e0d40fce062c1b6d4b2ce06979

14 months agoFix the MS-DOS build
Po Lu [Thu, 15 Feb 2024 14:11:14 +0000 (22:11 +0800)]
Fix the MS-DOS build

* configure.ac (REQUIRE_GNUISH_STRFTIME_AM_PM): Move definition
to...

* src/conf_post.h (REQUIRE_GNUISH_STRFTIME_AM_PM):
...conf_post.h.

(cherry picked from commit e058380324e462c234bb3407d504807f22d825b0)

14 months agoRemove filecache.el
Eshel Yaron [Fri, 16 Feb 2024 07:19:30 +0000 (08:19 +0100)]
Remove filecache.el

This library doesn't work well in recent Emacsen, and more modern
workflows generally supersede it.

* doc/emacs/emacs.texi (Top)
* doc/emacs/files.texi (Files): Update menu.
(File Name Cache): Remove section.
* doc/lispref/minibuf.texi (Text from Minibuffer): Remove comment.
* doc/misc/tramp.texi (Frequently Asked Questions): Don't mention it.
* lisp/bindings.el (minibuffer-local-map): Unbind 'C-TAB'.
* lisp/filecache.el: Delete file.
* test/lisp/help-tests.el (help-tests--test-keymap)
(help-tests-substitute-command-keys/keymaps): Adjust.

14 months ago; Simplify recent change in 'read_minibuf' history handling
Eshel Yaron [Thu, 15 Feb 2024 18:28:47 +0000 (19:28 +0100)]
; Simplify recent change in 'read_minibuf' history handling

* src/minibuf.c (read_minibuf): Simplify.
(syms_of_minibuf): Delete 'Qhistory_add_new_input'.

14 months agoDeprecate 'read-no-blanks-input'
Eshel Yaron [Thu, 15 Feb 2024 17:37:18 +0000 (18:37 +0100)]
Deprecate 'read-no-blanks-input'

This function is unused in the Emacs tree, and it probably
shouldn't be used anywhere else, either.

* lisp/minibuffer.el (read-no-blanks-input): Turn it into an
obsolete alias of 'read-string'.
(self-insert-and-exit, minibuffer-local-ns-map): Deprecate.

* doc/emacs/custom.texi (Minibuffer Maps):
* doc/lispref/minibuf.texi (Text from Minibuffer)
(Minibuffer Commands): Update.

* lisp/calc/calc-store.el (calcVar-digit, calcVar-oper):
Avoid 'self-insert-and-exit'.

* test/src/minibuf-tests.el (test-inhibit-interaction):
Adjust.

14 months agoAllow font-spec in 'face-font-rescale-alist' set at startup
Eli Zaretskii [Thu, 15 Feb 2024 10:04:07 +0000 (12:04 +0200)]
Allow font-spec in 'face-font-rescale-alist' set at startup

* lisp/startup.el (startup--rescale-elt-match-p): New function.
(normal-top-level): Use it, instead of the naive 'string-match-p',
to match the default font against the elements of
'face-font-rescale-alist'.  Reported by Rahguzar
<rahguzar@zohomail.eu>.

(cherry picked from commit 3d6137116f6be8ee38f9f49c9811b97ef92e0e58)

14 months agoAdd support for reading/writing IELM input history (bug#67000)
Simen Heggestøyl [Tue, 16 Jan 2024 07:21:41 +0000 (08:21 +0100)]
Add support for reading/writing IELM input history (bug#67000)

* lisp/ielm.el (inferior-emacs-lisp-mode): Add support for saving input
history to a file.
(ielm--history-file-name): New variable indicating IELM input history
file.
(ielm--exit): Holds a function to call when Emacs is killed to write
out the input history.
(ielm--input-history-writer): Helper function for writing the IELM
input history out to file.

* lisp/comint.el (comint-input-ring-file-name): Improve defcustom tag.

(cherry picked from commit 60cff1ac9d216e5abcb350ea5e623ab0b377c131)

14 months agoHandle /assets and /content file names in `android-browse-url'
Po Lu [Thu, 15 Feb 2024 06:23:43 +0000 (14:23 +0800)]
Handle /assets and /content file names in `android-browse-url'

* lisp/net/browse-url.el (android-browse-url): New function.

* lisp/term/android-win.el (android-browse-url-internal): Update
function declaration.

* src/androidselect.c (Fandroid_browse_url): Rename to...
(Fandroid_browse_url_internal): ... this.
(syms_of_androidselect): Adjust to match.

(cherry picked from commit 783a511d1e31b5c9e5f9cb8ec27fd91d1b9078c9)

14 months agoUpdate from Gnulib by running admin/merge-gnulib
Paul Eggert [Thu, 15 Feb 2024 05:18:25 +0000 (21:18 -0800)]
Update from Gnulib by running admin/merge-gnulib

* lib/strftime.c: New file, copied from Gnulib.

(cherry picked from commit 377e4212e9df293ba2021238bae2bdccf5c8b8d3)

14 months agoAdjust to recent Gnulib nstrftime changes
Paul Eggert [Thu, 15 Feb 2024 05:18:25 +0000 (21:18 -0800)]
Adjust to recent Gnulib nstrftime changes

* admin/merge-gnulib (AVOIDED_MODULES): Add localename.
* configure.ac (REQUIRE_GNUISH_STRFTIME_AM_PM): Define.

(cherry picked from commit 7c32f3bcd6d390510d9463b3100255cecab41e1c)

14 months agotitdic-cnv.el: Bring all definitions under the `tit-` namespace
Stefan Monnier [Wed, 14 Feb 2024 22:18:50 +0000 (17:18 -0500)]
titdic-cnv.el: Bring all definitions under the `tit-` namespace

Add a `tit-` or `tit--` prefix where necessary.  Adjust all callers.
I kept the old names via obsolete aliases for now, although it's probably not
worth the trouble.

* lisp/international/titdic-cnv.el: Bring all definitions under the
`tit-` namespace.
(tit-quail-cxterm-package-ext-info): Rename var from
`quail-cxterm-package-ext-info`.  Adjust value to new names.
(tit-dic-convert): Rename from `titdic-convert`.
(batch-tit-dic-convert): Rename from `batch-titdic-convert`.
(tit-quail-misc-package-ext-info): Rename var from
`quail-misc-package-ext-info`.  Adjust value to new names.
(tit--tsang-quick-converter): Rename from `tsang-quick-converter`.
(tit--tsang-b5-converter): Rename from `tsang-b5-converter`.
(tit--quick-b5-converter): Rename from `quick-b5-converter`.
(tit--tsang-cns-converter): Rename from `tsang-cns-converter`.
(tit--quick-cns-converter): Rename from `quick-cns-converter`.
(tit--py-converter): Rename from `py-converter`.
(tit--ziranma-converter): Rename from `ziranma-converter`.
(tit--ctlau-converter): Rename from `ctlau-converter`.
(tit--ctlau-gb-converter): Rename from `ctlau-gb-converter`.
(tit--ctlau-b5-converter): Rename from `ctlau-b5-converter`.
(tit-miscdic-convert): Rename from `miscdic-convert`.
(batch-tit-miscdic-convert): Rename from `batch-miscdic-convert`.
(tit-pinyin-convert): Rename from `pinyin-convert`.

* leim/Makefile.in (${leimdir}/quail/%.el, misc_convert)
(${srcdir}/../lisp/language/pinyin.el): Use the new names.

(cherry picked from commit fbef8ff2a4106ff7f0f3d026071fb8096280cc61)

14 months agoRemove completion.el
Eshel Yaron [Thu, 15 Feb 2024 08:00:42 +0000 (09:00 +0100)]
Remove completion.el

While powerful, this library is quite obscure and its
integration with the rest of Emacs is poor.  Moreover, we have
better alternatives nowadays.

* lisp/completion.el:
* test/lisp/completion-tests.el: Delete.

14 months agoString hashing improvements (spread and performance)
Mattias Engdegård [Tue, 13 Feb 2024 13:52:39 +0000 (14:52 +0100)]
String hashing improvements (spread and performance)

Fix gaps in hashing coverage in the middle and end of even fairly short
strings.  E.g., `outline-1`, `outline-2` etc all hashed to the exact
same value but with the patch, there are no collisions among the ~160000
symbols in the Emacs tree.

This change also improves average hashing speed by using fewer mixing
operations.

* src/fns.c (hash_string):
Use unit stride for fairly short strings, while retaining the cap of 8
samples for long ones.

Always hash the last word to ensure that the end of the string is
covered.  For strings shorter than a word, use fewer loads and a single
reduction step.

(cherry picked from commit 3a93e301ddc913758abe05c876aa3016e8b23af8)

14 months agoImprove prompting 'customize-toggle-option'
Eshel Yaron [Wed, 14 Feb 2024 12:51:29 +0000 (13:51 +0100)]
Improve prompting 'customize-toggle-option'

* lisp/cus-edit.el (customize-option-history): New variable.
(custom-variable-prompt): Use it.
(customize-read-boolean-option): New function.
(customize-toggle-option): Use it.

* etc/NEWS: Refine announcement.

14 months agoTake file-local variables into account in elint-file (bug#69076)
Gerd Möllmann [Wed, 14 Feb 2024 07:54:04 +0000 (08:54 +0100)]
Take file-local variables into account in elint-file (bug#69076)

* lisp/emacs-lisp/elint.el (elint-file): Use hack-local-variables.

(cherry picked from commit decfdd4f1a1e3b1539eafdaaf11191e8477f0636)

14 months agoDetect DEFUNs as outline-minor-mode headings in Emacs sources in c-ts-mode.
Juri Linkov [Wed, 14 Feb 2024 07:20:48 +0000 (09:20 +0200)]
Detect DEFUNs as outline-minor-mode headings in Emacs sources in c-ts-mode.

* lisp/progmodes/c-ts-mode.el (c-ts-mode--outline-predicate): When
c-ts-mode-emacs-sources-support is t, use c-ts-mode--emacs-defun-p
(bug#68824).

(cherry picked from commit fa74c7f88a8f3216665ea386c5b6355e3660fb79)

14 months ago; * lisp/progmodes/elisp-mode.el (emacs-lisp-native-compile): Fix typo.
Eli Zaretskii [Wed, 14 Feb 2024 03:24:36 +0000 (05:24 +0200)]
; * lisp/progmodes/elisp-mode.el (emacs-lisp-native-compile): Fix typo.

(cherry picked from commit b54db9c9ac7599fc84f108eb6f469e2af4834bed)