]> git.eshelyaron.com Git - emacs.git/log
emacs.git
3 days agoFix c++-ts-mode font-lock for latest c++ grammar (bug#73191)
Yuan Fu [Sat, 14 Sep 2024 18:07:28 +0000 (11:07 -0700)]
Fix c++-ts-mode font-lock for latest c++ grammar (bug#73191)

* lisp/progmodes/c-ts-mode.el:
(c-ts-mode--keywords): Add "thread_local" keyword.
(c-ts-mode--test-virtual-named-p): New function.
(c-ts-mode--font-lock-settings): Use named/anonymous "virtual" depending
on the grammar.

(cherry picked from commit 21efdd5ef31febc8fd59bf483a39bba512d50f45)

3 days ago; Skip commit ffc00eac53d88296e234d274ad1dd95bdf3cf065
Eshel Yaron [Mon, 16 Sep 2024 09:59:56 +0000 (11:59 +0200)]
; Skip commit ffc00eac53d88296e234d274ad1dd95bdf3cf065

3 days ago; Skip commit 3822a5e5d12781fb1cd6d075fc5fa3ae1b103f1e
Eshel Yaron [Mon, 16 Sep 2024 09:59:31 +0000 (11:59 +0200)]
; Skip commit 3822a5e5d12781fb1cd6d075fc5fa3ae1b103f1e

3 days ago; Skip commit 43b678d3d26b62d112fde286d0bf077954b28afa
Eshel Yaron [Mon, 16 Sep 2024 09:59:22 +0000 (11:59 +0200)]
; Skip commit 43b678d3d26b62d112fde286d0bf077954b28afa

3 days ago* etc/TODO: New item "support indentation guides".
Stefan Kangas [Sat, 14 Sep 2024 14:34:11 +0000 (16:34 +0200)]
* etc/TODO: New item "support indentation guides".

Ref:
https://lists.gnu.org/r/emacs-devel/2024-07/msg01062.html
(cherry picked from commit 38de992a5a3ff13c6c727fd519b3f016f15264ea)

4 days ago; Update ldefs-boot.el
Eshel Yaron [Sun, 15 Sep 2024 08:29:15 +0000 (10:29 +0200)]
; Update ldefs-boot.el

4 days agoSimplify 'kill-region'
Eshel Yaron [Sun, 15 Sep 2024 08:26:10 +0000 (10:26 +0200)]
Simplify 'kill-region'

4 days ago; Sync treesit.[ch] with upstream
Eshel Yaron [Sun, 15 Sep 2024 07:33:34 +0000 (09:33 +0200)]
; Sync treesit.[ch] with upstream

5 days ago; * etc/NEWS: Fix variable name.
Sean Whitton [Sat, 14 Sep 2024 16:35:45 +0000 (17:35 +0100)]
; * etc/NEWS: Fix variable name.

(cherry picked from commit 691f441717e968b1a497ed5d7792dbbe02cba609)

5 days ago; * lisp/simple.el (kill-region-dwim): Try to simplify docstring.
Sean Whitton [Sat, 14 Sep 2024 16:09:48 +0000 (17:09 +0100)]
; * lisp/simple.el (kill-region-dwim): Try to simplify docstring.

(cherry picked from commit a6631eaec3c9eba7fd495b33377574bbe44ba215)

5 days agoAllow 'kill-region' to kill the last word when there is no region
Philip Kaludercic [Tue, 3 Sep 2024 16:29:56 +0000 (18:29 +0200)]
Allow 'kill-region' to kill the last word when there is no region

* etc/NEWS: Document the new user option.
* lisp/simple.el (kill-region-dwim): New option.
(kill-region): Respect 'kill-region-dwim'.  (Bug#69097)

(cherry picked from commit 7451bd6e398f3dd8a3acc99df46d238d161463cb)

5 days ago; Skip commit efde34f422e85c777482affff74dbb562008dcbd
Eshel Yaron [Sat, 14 Sep 2024 20:35:26 +0000 (22:35 +0200)]
; Skip commit efde34f422e85c777482affff74dbb562008dcbd

5 days ago; Skip commit 3090b2304e715da5cb1286d9166ee8dcc8db0a24
Eshel Yaron [Sat, 14 Sep 2024 20:35:20 +0000 (22:35 +0200)]
; Skip commit 3090b2304e715da5cb1286d9166ee8dcc8db0a24

5 days agoProvide a modified xref backend for TeX buffers
David Fussner [Mon, 10 Jun 2024 13:16:04 +0000 (14:16 +0100)]
Provide a modified xref backend for TeX buffers

In addition to providing a new `xref' backend, the patch also improves
the general handling of expl3 syntax.  Expl3 is the next-generation
LaTeX specification, and has for some time been available by default in
the LaTeX kernel.  The new syntax co-exists in many files with the
standard LaTeX2e syntax, so we try at least minimally to separate the
way modes handle the two specifications, both to reduce
visually-disturbing interference between them and also to improve the
`xref' backend.  (Bug#53749)

* lib-src/etags.c (TeX_commands): Improve parsing of commands in TeX
buffers.
(TEX_defenv): Expand list of commands to tag by default in TeX buffers.
(TeX_help):
* doc/emacs/maintaining.texi (Tag Syntax): Document new tagged commands.
(Identifier Search): Add note about semantic-symref-filepattern-alist,
auto-mode-alist, and xref-find-references.

* lisp/textmodes/tex-mode.el (tex-font-lock-suscript): Test for
underscore in expl3 files and regions, disable subscript face there.
(tex-common-initialization): Set up xref backend for in-tree TeX modes.
Detect expl3 files, and in others set up a list of expl3 regions.
(tex-expl-buffer-parse): New function called in previous.
(tex-expl-buffer-p): New variable to hold the result of previous.
(tex-expl-region-set): New function added to
'syntax-propertize-extend-region-functions' hook.
(tex-expl-region-list): New variable to hold the result of previous.
(tex--xref-backend): New function to identify the xref backend.
(tex--thing-at-point, tex-thingatpt--beginning-of-symbol)
(tex-thingatpt--end-of-symbol, tex--bounds-of-symbol-at-point):
New functions to return 'thing-at-point' for xref backend.
(tex-thingatpt-exclude-chars): New variable to do the same.
(xref-backend-identifier-at-point): New TeX backend method to provide
symbols for processing by xref.
(xref-backend-identifier-completion-table)
(xref-backend-identifier-completion-ignore-case)
(xref-backend-definitions, xref-backend-apropos): Placeholders to
call the standard 'etags' xref backend methods.
(xref-backend-references): Wrapper to call the default xref backend
method, finding as many relevant files as possible and using a bespoke
syntax-propertize-function when required.
(tex--collect-file-extensions, tex-xref-syntax-function): Helper
functions for previous.
(tex-find-references-syntax-table, tex--buffers-list)
(tex--xref-syntax-fun, tex--old-syntax-function): New variables for
the same.

(cherry picked from commit b44c00669ace7b9e6a90aecb5f4e9f4edf6ed25a)

5 days agoFix indentation of Fortran do-loops
Eli Zaretskii [Sat, 14 Sep 2024 14:18:57 +0000 (17:18 +0300)]
Fix indentation of Fortran do-loops

* lisp/progmodes/fortran.el (fortran-calculate-indent): Fix regexp
for do-loops.  Reported by Ken Mankoff <km@kenmankoff.com>.
(Bug#73218)

(cherry picked from commit 98e582e74a2bbc2c7fdef02b8cd90036fa217712)

5 days ago; * etc/NEWS: Fix last change.
Eli Zaretskii [Sat, 14 Sep 2024 12:42:15 +0000 (15:42 +0300)]
; * etc/NEWS: Fix last change.

(cherry picked from commit 3e98ad3063a6dfc96676d297ee6ea3c96a3e049f)

5 days agoNew commands unix-word-rubout, unix-filename-rubout
Sean Whitton [Fri, 6 Sep 2024 10:35:46 +0000 (11:35 +0100)]
New commands unix-word-rubout, unix-filename-rubout

* lisp/simple.el (forward-unix-word): New function.
(unix-word-rubout, unix-filename-rubout): New commands.
* etc/NEWS: Announce the new commands.

(cherry picked from commit f6417ba91b3fdffc5af43bc4a7ad0b7ed007f442)

5 days ago; * etc/NEWS: Announce the improvements in w32 GUI dialogs.
Eli Zaretskii [Sat, 14 Sep 2024 11:02:51 +0000 (14:02 +0300)]
; * etc/NEWS: Announce the improvements in w32 GUI dialogs.

(cherry picked from commit 0a6e988b8d2d610d824d84a176fe9c5e86e02a87)

5 days agoSupport GUI dialogs and message boxes better on MS-Windows
Cecilio Pardo [Wed, 11 Sep 2024 13:44:28 +0000 (15:44 +0200)]
Support GUI dialogs and message boxes better on MS-Windows

* src/w32menu.c (TASKDIALOG_COMMON_BUTTON_FLAGS, TASKDIALOG_FLAGS)
(PFTASKDIALOGCALLBACK, TASKDIALOG_BUTTON, TASKDIALOGCONFIG)
(TDN_CREATED, TDM_ENABLE_BUTTON, TDF_ALLOW_DIALOG_CANCELLATION)
(TD_INFORMATION_ICON) [!MINGW_W64]: Define.
(TaskDialogIndirect_Proc): Declare function type.
(TASK_DIALOG_MAX_BUTTONS): New macro.
(task_dialog_callback): New callback function.
(w32_popup_dialog): Add dialog implementation using TaskDialog.
(globals_of_w32menu): Load TaskDialogIndirect from comctl32.dll.
(Bug#20481)

(cherry picked from commit aa7dee58d81817285208471074f1af598ebf0c98)

5 days agoFix regression in widget-move (bug#72995)
Stephen Berman [Sat, 14 Sep 2024 10:42:49 +0000 (12:42 +0200)]
Fix regression in widget-move (bug#72995)

* lisp/wid-edit.el (widget-move): Avoid advancing point only if it
is at the start of a widget at BOB.

* test/lisp/wid-edit-tests.el (widget-test-widget-move-bug72995): New test.

(cherry picked from commit d509a35699738519d42a35d72827b1111425669c)

5 days agoMake the *grep* buffer editable
Visuwesh [Mon, 9 Sep 2024 14:38:04 +0000 (20:08 +0530)]
Make the *grep* buffer editable

* lisp/progmodes/compile.el (compilation--update-markers):
Factor out function...
(compilation-next-error-function): ...from here.  Adjust
to use the above.
* lisp/progmodes/grep.el (grep-edit--prepare-buffer)
(grep-edit-mode-map, grep-edit-mode-hook, grep-edit-mode)
(grep-change-to-grep-edit-mode, grep-edit-save-changes): Add
new 'grep-edit-mode' to make the grep results editable like
in 'occur-edit-mode' by using the 'occur' framework.
(grep-mode-map): Bind 'e' to the new command
'grep-change-to-grep-edit-mode'.
* doc/emacs/building.texi (Grep Searching): Update Info
manual to include the above command.
* etc/NEWS: Announce the change.  (Bug#70820)

(cherry picked from commit db1eb8a282c1832fd34be049e80dcb1a3b59ade2)

5 days ago; * lisp/cus-edit.el (setopt): Doc fix. (Bug#73098)
Eli Zaretskii [Sat, 14 Sep 2024 09:33:36 +0000 (12:33 +0300)]
; * lisp/cus-edit.el (setopt): Doc fix.  (Bug#73098)

(cherry picked from commit ef0276de82b8ac517ea8c15ee504f290c6528c73)

5 days ago; * lisp/minibuffer.el (completion-pcm--merge-completions): Fix comments.
Eli Zaretskii [Sat, 14 Sep 2024 09:26:54 +0000 (12:26 +0300)]
; * lisp/minibuffer.el (completion-pcm--merge-completions): Fix comments.

(cherry picked from commit b115c2d5ebaa9819fc0a12b0df75f9b1080d53e6)

5 days agoCorrectly include fixed strings before a prefix wildcard in PCM
Spencer Baugh [Mon, 26 Aug 2024 14:12:51 +0000 (10:12 -0400)]
Correctly include fixed strings before a prefix wildcard in PCM

In 03ac16ece40ba3e3ba805d6a61cc457d84bf3792 I fixed a bug with the
PCM implementation of substring completion, relating to the handling
of PCM wildcards.
However, this fix was incomplete.  This change completes the fix by
also including a fixed string if it appears before a 'prefix'
wildcard, even if 'try-completion' doesn't discover that fixed
string grows to a unique completion.
I discovered this bug while working on enhancements to PCM
completion related to 'completion-pcm-leading-wildcard'.
* lisp/minibuffer.el (completion-pcm--merge-completions): Include
fixed strings before 'prefix wildcard.  (Bug#72819)
* test/lisp/minibuffer-tests.el (completion-substring-test-5): Add a
test for this behavior.

(cherry picked from commit 3cda1fdc3b755dd329617cabc266e2b86894d0cb)

5 days ago; * lisp/treesit.el (treesit-major-mode-setup): Doc fix.
Eli Zaretskii [Sat, 14 Sep 2024 09:02:56 +0000 (12:02 +0300)]
; * lisp/treesit.el (treesit-major-mode-setup): Doc fix.

(cherry picked from commit 57d93d0259a3cc9a180b1bcb3cec3f670485f82c)

5 days ago; Improve documentation of 'easy-menu-define'
Eli Zaretskii [Sat, 14 Sep 2024 08:55:08 +0000 (11:55 +0300)]
; Improve documentation of 'easy-menu-define'

* doc/lispref/keymaps.texi (Easy Menu):
* lisp/emacs-lisp/easymenu.el (easy-menu-define): Document that
SYMBOL is also defined as a variable.  (Bug#73108)

(cherry picked from commit ad289f364e5c508d6f5d6ae530ee919c5fa43335)

5 days ago; Skip commit 7c767ec781fdba02d073b79113b1d8d89548bb08
Eshel Yaron [Sat, 14 Sep 2024 20:34:03 +0000 (22:34 +0200)]
; Skip commit 7c767ec781fdba02d073b79113b1d8d89548bb08

5 days agoSet treesit-primary-parser for c and elixir ts mode
Yuan Fu [Sat, 14 Sep 2024 07:46:05 +0000 (00:46 -0700)]
Set treesit-primary-parser for c and elixir ts mode

For buffers with multiple parsers, it's important to set this variable
so font-lock invalidation works smoothly.

* lisp/progmodes/c-ts-mode.el (c-ts-mode): Set treesit-primary-parser.
* lisp/progmodes/elixir-ts-mode.el (elixir-ts-mode): Set
treesit-primary-parser.

(cherry picked from commit 3cad7cc8dc823b8b1dd66d7777a01778e1a4defe)

5 days ago; Minor doc fix in treesit.el
Yuan Fu [Sat, 14 Sep 2024 07:19:47 +0000 (00:19 -0700)]
; Minor doc fix in treesit.el

* lisp/treesit.el (treesit-outline-search): Mention parameters.
(treesit-major-mode-setup): Mention outline setup.

(cherry picked from commit 2f243fb91d6d2c4c4e4a6dbbd94ef5b13d543732)

5 days ago; Skip commit 6a6d7925c9ddbf558f70932661ee943262aea4ca
Eshel Yaron [Sat, 14 Sep 2024 20:33:43 +0000 (22:33 +0200)]
; Skip commit 6a6d7925c9ddbf558f70932661ee943262aea4ca

5 days agoRevert "Read more on each call to treesit's buffer reader"
Yuan Fu [Sat, 14 Sep 2024 05:53:06 +0000 (22:53 -0700)]
Revert "Read more on each call to treesit's buffer reader"

This reverts commit bf23382f1f2d6ea072db4e4750f8a345f77a3ef2.

We move around the gap, narrow regions, ralloc, etc, and don't have a
way to invalidate previously given range.  So tree-sitter can't be given
the full range.

(cherry picked from commit 76faf7e60910ffc29b134fa4d16e3d8c176097a7)

5 days agoFix tree-sitter indent preset prev-adaptive-prefix
Yuan Fu [Fri, 13 Sep 2024 07:23:13 +0000 (00:23 -0700)]
Fix tree-sitter indent preset prev-adaptive-prefix

* lisp/treesit.el (treesit-simple-indent-presets): Use looking-at so the
call to match-string has the match data to work with.

(cherry picked from commit c70bd0e3fe9c2f5b1fcdce7939c07449f8a5ec4c)

5 days ago* lisp/net/tramp.el (tramp-wait-for-regexp): Deactivate (sit-for 0.005).
Michael Albinus [Sat, 14 Sep 2024 06:57:19 +0000 (08:57 +0200)]
* lisp/net/tramp.el (tramp-wait-for-regexp): Deactivate (sit-for 0.005).

(cherry picked from commit 0d07bc1a2d27a5e1dd41035e64612315d82c517b)

5 days ago; * CONTRIBUTE: Minor copyedits.
Eli Zaretskii [Sat, 14 Sep 2024 06:52:59 +0000 (09:52 +0300)]
; * CONTRIBUTE: Minor copyedits.

(cherry picked from commit 272df33fb8bde41887bfa4b03ed8223b9c03c572)

5 days ago* etc/symbol-releases.eld: Fix URL.
Stefan Kangas [Fri, 13 Sep 2024 22:51:08 +0000 (00:51 +0200)]
* etc/symbol-releases.eld: Fix URL.

(cherry picked from commit f3bb84e53b0cd24da9f7175f3d10b36ccf882849)

5 days agoUse stable URLs for files imported from Unicode
Robert Pluim [Fri, 13 Sep 2024 14:08:56 +0000 (16:08 +0200)]
Use stable URLs for files imported from Unicode

* admin/notes/unicode: Point people at "admin/unidata/README" for URLs
for Unicode files.
* admin/unidata/README: Use stable URLs for the various files.  Remove
dates, the files self-describe their dates anyway.

(cherry picked from commit ece47e5a2181cb36fd8f0e532d050caefb92504b)

5 days ago; Skip commit 8e1187e336f6763f03cc8c03cf6c02e97c34dac7
Eshel Yaron [Sat, 14 Sep 2024 20:31:39 +0000 (22:31 +0200)]
; Skip commit 8e1187e336f6763f03cc8c03cf6c02e97c34dac7

5 days ago; * etc/NEWS: Improve 'dired-check-symlinks' entry.
Robert Pluim [Wed, 11 Sep 2024 16:15:35 +0000 (18:15 +0200)]
; * etc/NEWS: Improve 'dired-check-symlinks' entry.

(cherry picked from commit 48d2d616f733fc9cb92e7507ef1583473af24f32)

5 days agoAdd notes about documenting default values
Robert Pluim [Wed, 11 Sep 2024 16:09:29 +0000 (18:09 +0200)]
Add notes about documenting default values

* CONTRIBUTE: Ask people to document default values when adding new user
  options.

(cherry picked from commit b4863908623b739b0771a70c7cc4f4a57d07a841)

5 days agoImprove accuracy of character categories
Eli Zaretskii [Fri, 13 Sep 2024 11:31:28 +0000 (14:31 +0300)]
Improve accuracy of character categories

* lisp/international/characters.el: Assign 'digit' category to all
the characters whose Unicode 'general-category' is Nd.

* admin/unidata/blocks.awk: Add code to assign 'symbol' category
to all characters belonging to the 'symbol' script.

* etc/NEWS: Announce the above changes

(cherry picked from commit 7376623a244a91d1de5245645b4b3e8c9469d422)

5 days agoDon't fail uniquify-tests in non-version-controlled source trees
Mattias Engdegård [Fri, 13 Sep 2024 10:13:53 +0000 (12:13 +0200)]
Don't fail uniquify-tests in non-version-controlled source trees

* test/lisp/uniquify-tests.el (uniquify-project-transform):
Skip test if there is no project (bug#73205).

(cherry picked from commit ca3932121a893df3c4b08dbe11f2c002da4a421f)

5 days ago; * etc/ORG-NEWS: Fix typo.
Robert Pluim [Fri, 13 Sep 2024 07:50:01 +0000 (09:50 +0200)]
; * etc/ORG-NEWS: Fix typo.

(cherry picked from commit 79f68597abade27939397e0c2a50eec833e64daf)

5 days ago* doc/misc/auth.texi: Minor copy edits.
Stefan Kangas [Thu, 12 Sep 2024 22:17:35 +0000 (00:17 +0200)]
* doc/misc/auth.texi: Minor copy edits.

(cherry picked from commit d66b70f3607c7cce99f8d67c18c1a4b13af1970c)

5 days ago; * admin/MAINTAINERS: Remove some entries for Artur Malabarba.
Stefan Kangas [Thu, 12 Sep 2024 21:01:08 +0000 (23:01 +0200)]
; * admin/MAINTAINERS: Remove some entries for Artur Malabarba.

Change agreed with Artur Malabarba <arturmalabarba@gmail.com>.

(cherry picked from commit 2c6b7b2da9f011c6aaf38e5dd24f137b0c033945)

5 days agoUpdate Emacs sources for Unicode 16.0
Eli Zaretskii [Thu, 12 Sep 2024 18:12:09 +0000 (21:12 +0300)]
Update Emacs sources for Unicode 16.0

* lisp/international/ucs-normalize.el (check-range): Update ranges
of character codes with decompositions.
* lisp/international/mule-cmds.el (ucs-names): Update unused
ranges.
* lisp/international/fontset.el (script-representative-chars)
(otf-script-alist, setup-default-fontset): Add new scripts.
* lisp/international/characters.el:
* admin/unidata/blocks.awk:
* test/manual/BidiCharacterTest.txt:
* test/lisp/international/ucs-normalize-tests.el
(ucs-normalize-tests--failing-lines-part2): Update for Unicode
16.0.

* etc/NEWS: Announce support for Unicode 16.0.

(cherry picked from commit 04e8ad6489ebec121ace7ea6d582429a96af8f04)

5 days agoImport updated Unicode files from Unicode 16.0
Eli Zaretskii [Thu, 12 Sep 2024 14:25:36 +0000 (17:25 +0300)]
Import updated Unicode files from Unicode 16.0

* admin/unidata/BidiBrackets.txt:
* admin/unidata/BidiMirroring.txt:
* admin/unidata/Blocks.txt:
* admin/unidata/IdnaMappingTable.txt:
* admin/unidata/NormalizationTest.txt:
* admin/unidata/PropertyValueAliases.txt:
* admin/unidata/ScriptExtensions.txt:
* admin/unidata/Scripts.txt:
* admin/unidata/SpecialCasing.txt:
* admin/unidata/UnicodeData.txt:
* admin/unidata/copyright.html:
* admin/unidata/emoji-data.txt:
* admin/unidata/emoji-sequences.txt:
* admin/unidata/emoji-test.txt:
* admin/unidata/emoji-variation-sequences.txt:
* admin/unidata/emoji-zwj-sequences.txt: Update from Unicode 16.0

(cherry picked from commit 5e16d846896c0f3f8115581a2e392ebef3f3e58b)

5 days agoHuman readable last display time of killed buffer
Manuel Giraud [Mon, 9 Sep 2024 15:16:32 +0000 (17:16 +0200)]
Human readable last display time of killed buffer

* lisp/midnight.el (clean-buffer-list): Upon killing a buffer,
add a human readable last displayed information.  (Bug#73150)

(cherry picked from commit 31e8500b061b6963708e66468fc89db1006226d7)

5 days agoSimple typo in `clean-buffer-list'
Manuel Giraud [Mon, 9 Sep 2024 13:42:56 +0000 (15:42 +0200)]
Simple typo in `clean-buffer-list'

* lisp/midnight.el (clean-buffer-list): `delay' is always an
integer here.  (Bug#73144)

(cherry picked from commit 06de3ae412e70d414cb9e149ca49aac8697309bb)

5 days ago; * doc/emacs/dired.texi (Misc Dired Features): Fix wording.
Eli Zaretskii [Thu, 12 Sep 2024 09:26:44 +0000 (12:26 +0300)]
; * doc/emacs/dired.texi (Misc Dired Features): Fix wording.

(cherry picked from commit ddd3752b9442ba0528403822a5bb1b2e5e0ae985)

5 days agoAdd Ftreesit_grammar_location
Yuan Fu [Wed, 28 Aug 2024 05:31:42 +0000 (22:31 -0700)]
Add Ftreesit_grammar_location

* src/treesit.c (treesit_loaded_lang): New struct.
(treesit_load_language): Return a struct instead of just the language
object.  The struct contains both the language object and the path to
the shared library.
(Ftreesit_language_available_p, Ftreesit_language_abi_version)
(treesit_ensure_query_compiled, Ftreesit_parser_create): Update
call of treesit_load_language.
(Ftreesit_grammar_location): New function.

(cherry picked from commit 2a75693f24a631b0a2a366bdce1ca5cb0c38d215)

5 days agoFix bug#72254
Po Lu [Thu, 12 Sep 2024 00:22:25 +0000 (08:22 +0800)]
Fix bug#72254

* src/pgtkselect.c (Fpgtk_get_selection_internal): If requesting
TARGETS with just one result, return it as a vector.
(bug#72254)

(cherry picked from commit 11e7ae3964e192b0e4bcc437a04278ee727e720b)

5 days ago; Skip commit 9a1c76bf7ff49d886cc8e1a3f360d71e62544802
Eshel Yaron [Sat, 14 Sep 2024 20:28:57 +0000 (22:28 +0200)]
; Skip commit 9a1c76bf7ff49d886cc8e1a3f360d71e62544802

5 days ago; Skip commit 68530860ae998e7364c550e7eddadda31c37eab7
Eshel Yaron [Sat, 14 Sep 2024 20:28:50 +0000 (22:28 +0200)]
; Skip commit 68530860ae998e7364c550e7eddadda31c37eab7

5 days ago; Skip commit fb1db366b98f21d8a39c7d68c978844558474264
Eshel Yaron [Sat, 14 Sep 2024 20:28:46 +0000 (22:28 +0200)]
; Skip commit fb1db366b98f21d8a39c7d68c978844558474264

5 days agoAllow to disable symbolic links check in Dired
Michael Albinus [Wed, 11 Sep 2024 15:42:24 +0000 (17:42 +0200)]
Allow to disable symbolic links check in Dired

* doc/emacs/dired.texi (Misc Dired Features):
* doc/misc/tramp.texi (Frequently Asked Questions):
Explain dired-check-symlinks.

* etc/NEWS: Describe dired-check-symlinks.
Fix typos.

* lisp/dired.el (dired-check-symlinks): New defcustom.
(dired-font-lock-keywords): Use it.  (Bug#73046)

(cherry picked from commit f283144658259f209efdef78c576b43832c9c479)

5 days agoAdd Ediff feature for copying all differences
Paul Nelson [Wed, 4 Sep 2024 07:24:25 +0000 (09:24 +0200)]
Add Ediff feature for copying all differences

* lisp/vc/ediff-util.el (ediff-diff-to-diff): With universal
prefix, copy all differences.

* doc/misc/ediff.texi (Quick Help Commands): Document the new feature.
* etc/NEWS: Announce the new feature.

(Bug#72866)

(cherry picked from commit 833158c0b78c6dbeacb169076a9899ba7bf45bff)

5 days agoFor minibuffer windows record minibuffers only (Bug#72487)
Martin Rudalics [Wed, 11 Sep 2024 08:36:14 +0000 (10:36 +0200)]
For minibuffer windows record minibuffers only (Bug#72487)

* src/minibuf.c (zip_minibuffer_stacks): Use wset type
functions.  Call 'record-window-buffer' instead of
'push-window-buffer-onto-prev' to handle all sorts of buffers
shown in minibuffer windows in a uniform way.
(read_minibuf): Call 'record-window-buffer' instead of
'push-window-buffer-onto-prev' for same reason as previous.
* lisp/calculator.el (calculator-update-display)
(calculator-save-and-quit): Make sure calculator buffer is live
before operating on it.
* lisp/window.el (record-window-buffer): Handle case where
WINDOW is a minibuffer window: Unconditionally remove WINDOW's
buffer from WINDOW's list of previous buffers and push it if
and only if it is a live minibuffer (Bug#72487).  Do not run
'buffer-list-update-hook' if WINDOW is a minibuffer window.
(push-window-buffer-onto-prev): Make it an alias of
'record-window-buffer' so it will run the latter's checks.
(replace-buffer-in-windows): Handle minibuffer windows and
rewrite doc-string accordingly.
* doc/lispref/windows.texi (Buffers and Windows): Explain
handling of minibuffer windows in 'replace-buffer-in-windows'.

(cherry picked from commit fc3a7f45292b9a7be95fdefd24fedb7e8f564d1c)

5 days ago; * test/lisp/gnus/gnus-icalendar-tests.el: remove unneeded unwind-protect
Robert Pluim [Wed, 11 Sep 2024 08:00:34 +0000 (10:00 +0200)]
; * test/lisp/gnus/gnus-icalendar-tests.el: remove unneeded unwind-protect

(cherry picked from commit 74ea24233ca281b19c3e3d2552621ceac30dfc48)

5 days agoAllow comments to organizer in icalendar event replies (Bug#72831)
fpi [Wed, 28 Aug 2024 16:33:20 +0000 (18:33 +0200)]
Allow comments to organizer in icalendar event replies (Bug#72831)

* lisp/gnus/gnus-icalendar.el
(gnus-icalendar-event--build-reply-event-body): Add optional COMMENT
argument to be inserted into the reply.
(gnus-icalendar-event-reply-from-buffer): Add COMMENT argument to be
passed through to gnus-icalendar-event--build-reply-event-body
(gnus-icalendar-reply-accept, gnus-icalendar-reply-tentative,
gnus-icalendar-reply-decline): If interactively called with a prefix
argument ask user for a COMMENT to add to the reply.

* test/lisp/gnus/gnus-icalendar-tests.el
(gnus-icalendar-accept-with-comment,
gnus-icalendar-decline-without-changing-comment): New tests.

(cherry picked from commit 8332b4dd07a43d09ff8eed7097873d9ac4d5afc8)

5 days ago; * exec/configure.ac: Update version.
Po Lu [Wed, 11 Sep 2024 05:26:17 +0000 (13:26 +0800)]
; * exec/configure.ac: Update version.

(cherry picked from commit 69e1aca041c57ba425425d31471e1c8f86d3bf04)

5 days ago* src/treesit.h (struct Lisp_TS_Parser): Correct merge error.
Po Lu [Wed, 11 Sep 2024 05:25:48 +0000 (13:25 +0800)]
* src/treesit.h (struct Lisp_TS_Parser): Correct merge error.

(cherry picked from commit a139c3d6d888219bb3cb3c0c5a3eb6268c9b7a29)

5 days ago; Update version number of exec/configure.ac
Po Lu [Wed, 11 Sep 2024 04:53:29 +0000 (12:53 +0800)]
; Update version number of exec/configure.ac

* admin/admin.el (set-version): Update AC_INIT expansion in
exec/configure.ac.

* exec/configure.ac: Update version to 30.0.90.

(cherry picked from commit ee3e3a6311196129104881d6e9097bb54d8843af)

5 days agoFix heex-ts-mode indentation following previews elixir-mode change
Yuan Fu [Wed, 11 Sep 2024 02:29:31 +0000 (19:29 -0700)]
Fix heex-ts-mode indentation following previews elixir-mode change

After the previous fix in elixir-ts-mode (0fd259d166c), embedded heex
code are indented like this:

1 defmodule Foo do
2   def foo(assigns) do
3     ~H"""
4 <span>
5   text
6 </span>
7     """
8   end
9 end

The indent rule finds the beginning of the parent heex node, and uses
the indentation of that line as anchor with an offset of 0.  Previously
the parent heex node (fragment) starts at EOL of line 3; after the
previous commit, it now starts at BOL of line 4.  To fix the
indentation, I changed the anchor to the beginning of the elixir
(rather than heex) node at point, which is at EOL at line 3.

* lisp/progmodes/heex-ts-mode.el (heex-ts--indent-rules): Use the elixir
node that contains the heex code as the anchor, instead of the heex root
node.

(cherry picked from commit c5925b6ba5f7821ea72ebd26b76e405cecaabb8e)

5 days ago; * admin/make-tarball.txt: Improve last change.
Andrea Corallo [Tue, 10 Sep 2024 22:43:47 +0000 (00:43 +0200)]
; * admin/make-tarball.txt: Improve last change.

(cherry picked from commit c3383be5f043a1efe6f9650e8d0a6d4616ca4eeb)

5 days ago; * admin/make-tarball.txt: Remove now unnecessary configure flag.
Andrea Corallo [Tue, 10 Sep 2024 22:39:26 +0000 (00:39 +0200)]
; * admin/make-tarball.txt: Remove now unnecessary configure flag.

(cherry picked from commit 8ddb54117f175d8e11f936c850513dcbd6697280)

5 days ago; Skip commit 7e194d33f90a0e4b9b88d90c4759f14e8fffda07
Eshel Yaron [Sat, 14 Sep 2024 20:20:43 +0000 (22:20 +0200)]
; Skip commit 7e194d33f90a0e4b9b88d90c4759f14e8fffda07

5 days agoFix use of Uniscribe font driver in MinGW build
Eli Zaretskii [Tue, 10 Sep 2024 12:14:47 +0000 (15:14 +0300)]
Fix use of Uniscribe font driver in MinGW build

This was inadvertently broken when Windows 9X support was
fixed in June 2024.
* src/w32uniscribe.c (syms_of_w32uniscribe_for_pdumper): Set
'uniscribe_available' non-zero in non-Cygwin builds.  (Bug#73159)

(cherry picked from commit 9019536ea66ac0d47ea6f1ef690efd16e32c7ec4)

5 days agoAvoid crashes in redisplay in batch-mode testing
Eli Zaretskii [Tue, 10 Sep 2024 11:43:52 +0000 (14:43 +0300)]
Avoid crashes in redisplay in batch-mode testing

* src/xdisp.c (try_window_id): Don't crash for "initial" frame.
(Bug#72765)

(cherry picked from commit 5c55c860db7891d1301d0bac78c03a8751ebe642)

5 days agoAvoid 100% CPU load in Tramp
Michael Albinus [Tue, 10 Sep 2024 08:04:01 +0000 (10:04 +0200)]
Avoid 100% CPU load in Tramp

* lisp/net/tramp.el (tramp-wait-for-regexp): Add (sit-for 0.005)
prior calling `tramp-accept-process-output'.  This avoids 100% CPU
load.  (Bug#73046)

(cherry picked from commit 652a8a0838b38a6eab85c55fc61cedd1c61ef20f)

5 days ago; Skip commit ba2190e1ae761b11d5fcb9393869f04d0a1d42a7
Eshel Yaron [Sat, 14 Sep 2024 20:20:31 +0000 (22:20 +0200)]
; Skip commit ba2190e1ae761b11d5fcb9393869f04d0a1d42a7

5 days agoeglot-test-rust-completion-exit-function: Fix failure in -Q session
Dmitry Gutov [Tue, 10 Sep 2024 01:34:53 +0000 (04:34 +0300)]
eglot-test-rust-completion-exit-function: Fix failure in -Q session

* test/lisp/progmodes/eglot-tests.el (eglot--call-with-fixture):
Check for buffer liveness (https://debbugs.gnu.org/72765#29).
(eglot-test-rust-completion-exit-function): Don't expect snippet
expansion to happen (no yasnippet in batch mode).

(cherry picked from commit 818c0cc9a51a1d678749404cdacdf640d6f32d6e)

5 days ago* src/xdisp.c (note_tab_bar_highlight): Remove fallback for help_echo_string.
Juri Linkov [Mon, 9 Sep 2024 18:33:10 +0000 (21:33 +0300)]
* src/xdisp.c (note_tab_bar_highlight): Remove fallback for help_echo_string.

Don't use TAB_BAR_ITEM_CAPTION as the default value
when TAB_BAR_ITEM_HELP is not specified (bug#73050).

(cherry picked from commit 24c4bc108da43afe1ea52782202bd62648eed89a)

5 days ago; Skip commit 466db35877281ce2d5c2a5804e16d9401017d766
Eshel Yaron [Sat, 14 Sep 2024 20:20:08 +0000 (22:20 +0200)]
; Skip commit 466db35877281ce2d5c2a5804e16d9401017d766

5 days ago; Fix last change
Michael Albinus [Mon, 9 Sep 2024 13:35:55 +0000 (15:35 +0200)]
; Fix last change

(cherry picked from commit 7d7aa65f63db78c5732f1580213fc3767b767a4a)

5 days agoSilence compiler error
Michael Albinus [Mon, 9 Sep 2024 13:22:35 +0000 (15:22 +0200)]
Silence compiler error

* lisp/net/tramp.el (tramp-file-name*): Embed `function-put' calls
with `tramp--with-startup'.
(tramp-active-command-completion-p)
* lisp/net/tramp-cache.el (tramp-get-hash-table): Remove declare
form.  Add `tramp-suppress-trace' function property.

(cherry picked from commit d33d8c089b909b1fa64a799146557fcb68096269)

5 days ago; * doc/lispref/searching.texi (Rx Notation): Simplify rx example
Mattias Engdegård [Mon, 9 Sep 2024 13:18:36 +0000 (15:18 +0200)]
; * doc/lispref/searching.texi (Rx Notation): Simplify rx example

(cherry picked from commit f47297782bdb5e5a07e02f119c8013d11f7d7fae)

5 days ago; Skip commit 03e56981675c9533f844257bc7f0bc5603bb58fa
Eshel Yaron [Sat, 14 Sep 2024 20:19:21 +0000 (22:19 +0200)]
; Skip commit 03e56981675c9533f844257bc7f0bc5603bb58fa

5 days ago; * src/treesit.c: Minor cleanups of recent changes.
Eli Zaretskii [Mon, 9 Sep 2024 11:03:15 +0000 (14:03 +0300)]
; * src/treesit.c: Minor cleanups of recent changes.

(cherry picked from commit 9f0603207b17084563c73f271c397c0c469bf3e9)

5 days ago* etc/emacs_lldb.py (Lisp_Object): Recognise Lisp_Sub_Char_Table
Mattias Engdegård [Mon, 9 Sep 2024 08:27:50 +0000 (10:27 +0200)]
* etc/emacs_lldb.py (Lisp_Object): Recognise Lisp_Sub_Char_Table

(cherry picked from commit 21ff61372bf272711514f4c6508f20a5d8ab23ea)

5 days agoSpeed up LLDB support for debugging Emacs
Mattias Engdegård [Mon, 9 Sep 2024 08:23:46 +0000 (10:23 +0200)]
Speed up LLDB support for debugging Emacs

* etc/emacs_lldb.py (Lisp_Object):
Perform some numeric operations in Python instead of invoking LLDB
for evaluation.  Add lots of caches.

(cherry picked from commit 87daaaf9a463720f2ec80201d8f1e41aa29bd7ce)

5 days ago; * lisp/emacs-lisp/chart.el (chart--directory-size): Simpler regexp
Mattias Engdegård [Sat, 7 Sep 2024 14:05:07 +0000 (16:05 +0200)]
; * lisp/emacs-lisp/chart.el (chart--directory-size): Simpler regexp

The empty regexp matches any string.

(cherry picked from commit 95371fa754260199a6ea3428721270a89c341928)

5 days ago; * src/json.c: refactor: clean out development detritus
Mattias Engdegård [Sat, 7 Sep 2024 09:44:08 +0000 (11:44 +0200)]
; * src/json.c: refactor: clean out development detritus

* src/json.c (enum ParseEndBehavior): Remove.
(json_parse): Simplify, moving most code to the callers.

(cherry picked from commit 9a1de38528a6a7bc8dcd283d430e2f69ce3fcae4)

5 days ago* src/treesit.c (treesit_debug_print_parser_list): Fix format string.
Andrea Corallo [Mon, 9 Sep 2024 07:09:48 +0000 (09:09 +0200)]
* src/treesit.c (treesit_debug_print_parser_list): Fix format string.

(cherry picked from commit e0d3f7439573f2c5bde95dbb9005a4efc954aa0b)

5 days ago; * src/treesit.c (treesit_debug_print_parser_list): Fix formatting.
Yuan Fu [Mon, 9 Sep 2024 04:14:00 +0000 (21:14 -0700)]
; * src/treesit.c (treesit_debug_print_parser_list): Fix formatting.

(cherry picked from commit bed38ded730130d63f08af7ad4049d87efe9bcf8)

5 days ago; * src/treesit.c: Add a prototype so there's no warning about it.
Yuan Fu [Mon, 9 Sep 2024 04:04:29 +0000 (21:04 -0700)]
; * src/treesit.c: Add a prototype so there's no warning about it.

(cherry picked from commit 18c6487dbd06ed01b5736d8c94582c5b72006b65)

5 days agoRead more on each call to treesit's buffer reader
Yuan Fu [Mon, 9 Sep 2024 00:46:18 +0000 (17:46 -0700)]
Read more on each call to treesit's buffer reader

* src/treesit.c (treesit_read_buffer): Read until the gap or visible
end, instead of reading a single char.

(cherry picked from commit bf23382f1f2d6ea072db4e4750f8a345f77a3ef2)

5 days ago; Skip commit 3435464452b4947098b8ccbe93e5c0afdd2ed06e
Eshel Yaron [Sat, 14 Sep 2024 20:16:21 +0000 (22:16 +0200)]
; Skip commit 3435464452b4947098b8ccbe93e5c0afdd2ed06e

5 days agoAdd debugging function for treesit.c
Yuan Fu [Mon, 9 Sep 2024 00:30:21 +0000 (17:30 -0700)]
Add debugging function for treesit.c

* src/treesit.c (treesit_debug_print_parser_list): New function.

(cherry picked from commit 3fcec09f754af9822339eff3ea15d43eb7d19014)

5 days agoFix elixir-ts-mode's range query
Yuan Fu [Mon, 9 Sep 2024 00:28:26 +0000 (17:28 -0700)]
Fix elixir-ts-mode's range query

* lisp/progmodes/elixir-ts-mode.el:
(elixir-ts--treesit-range-rules): Add underscore in front of the name
capture, so Emacs won't put heex parser on it.

(cherry picked from commit 0fd259d166c0dca4d097ad026ac748748ba88497)

5 days ago; project-files-relative-names: Update docstring (bug#72701)
Dmitry Gutov [Sun, 8 Sep 2024 20:50:58 +0000 (23:50 +0300)]
; project-files-relative-names: Update docstring (bug#72701)

(cherry picked from commit 2329b36b1fb0dab969554eb9e1617e31a9755084)

5 days agoMake json-serialize always return a unibyte string (bug#70007)
Mattias Engdegård [Sun, 8 Sep 2024 18:02:34 +0000 (20:02 +0200)]
Make json-serialize always return a unibyte string (bug#70007)

The JSON format is defined as a byte sequence and will always be used as
such, so returning a multibyte string makes little sense.

* src/json.c (json_out_to_string): Remove.
(Fjson_serialize): Return unibyte string.
* test/src/json-tests.el (json-serialize/roundtrip)
(json-serialize/roundtrip-scalars, json-serialize/string):
Update tests.
* doc/lispref/text.texi (Parsing JSON): Document.
* etc/NEWS: Announce.

(cherry picked from commit e55e2e1c6baebbd105f930fa553ec65c74a3000d)

5 days agoFix :type of some user options
Eli Zaretskii [Sun, 8 Sep 2024 16:17:48 +0000 (19:17 +0300)]
Fix :type of some user options

* lisp/which-key.el:
* lisp/progmodes/python.el:
* lisp/play/animate.el:
* lisp/pixel-scroll.el:
* lisp/image/image-dired.el:
* lisp/htmlfontify.el: Change :type of user options from 'float'
to 'number' where integer values make sense.  (Bug#73098)

(cherry picked from commit 4073c624376148d469a27a7c487a9b2f49d5352a)

5 days ago; * doc/lispref/os.texi (Suspending Emacs): Fix last change.
Eli Zaretskii [Sat, 7 Sep 2024 16:41:36 +0000 (19:41 +0300)]
; * doc/lispref/os.texi (Suspending Emacs): Fix last change.

(cherry picked from commit 89c99891b2b3ab087cd7e824cef391ef26800ab4)

5 days ago; Improve documentation of 'suspend-emacs'
Eli Zaretskii [Sat, 7 Sep 2024 15:38:40 +0000 (18:38 +0300)]
; Improve documentation of 'suspend-emacs'

* doc/lispref/os.texi (Suspending Emacs):
* src/keyboard.c (Fsuspend_emacs): Document possible failures
in sending STUFFSTRING to the shell.  (Bug#73100).

(cherry picked from commit 4f044d0d3df019e9a7717b443fe4b4c172854c7c)

9 days ago; Update scope.el tests
Eshel Yaron [Tue, 10 Sep 2024 06:56:34 +0000 (08:56 +0200)]
; Update scope.el tests

11 days agoDrop electric-layout-mode, fix some tests
Eshel Yaron [Sun, 8 Sep 2024 15:43:46 +0000 (17:43 +0200)]
Drop electric-layout-mode, fix some tests

11 days ago; (electric-indent-local-mode-map): Remap 'newline'.
Eshel Yaron [Sun, 8 Sep 2024 15:42:46 +0000 (17:42 +0200)]
; (electric-indent-local-mode-map): Remap 'newline'.

11 days ago; (project-find-file-in-root): Avoid 'call-interactively'.
Eshel Yaron [Sun, 8 Sep 2024 12:54:14 +0000 (14:54 +0200)]
; (project-find-file-in-root): Avoid 'call-interactively'.

11 days ago; Update NEWS for last change.
Eli Zaretskii [Sun, 8 Sep 2024 06:46:42 +0000 (09:46 +0300)]
; Update NEWS for last change.

(cherry picked from commit 8081c08ff1b4fd5e948058be7067136e11ac0ecb)

11 days agoSupport for custom php.ini for the built-in PHP web server.
Vincenzo Pupillo [Mon, 2 Sep 2024 12:11:01 +0000 (14:11 +0200)]
Support for custom php.ini for the built-in PHP web server.

A new CONFIG attribute, which defaults to 'php-ts-mode-php-config',
allows an alternative php.ini file to be specified for the built-in web
server.  The 'php-ts-mode-run-php-webserver' function, when called
interactively with a prefix argument, also requires this new attribute.
* lisp/progmodes/php-ts-mode.el (php-ts-mode--parent-html-bol):
Fix docstring.
* lisp/progmodes/php-ts-mode.el (php-ts-mode-run-php-webserver):
New CONFIG attribute.  Update docstring.
* lisp/progmodes/php-ts-mode.el (php-ts-mode--webserver-read-args):
Support the new TYPE.  Update docstring.  (Bug#72966)

(cherry picked from commit bb239841670f9bf87576c8196c41fdf295d5eac2)