emacs.git
11 months ago; Fix refcards
Eli Zaretskii [Sun, 22 Dec 2024 11:43:07 +0000 (13:43 +0200)]
; Fix refcards

* etc/refcards/sk-survival.tex (section{Značky (tags)}):
* etc/refcards/sk-refcard.tex (section{Tagy}):
* etc/refcards/ru-refcard.tex (section{Теги}):
* etc/refcards/pt-br-refcard.tex (section{Tags}):
* etc/refcards/pl-refcard.tex (section{Tags}):
* etc/refcards/fr-survival.tex (section{Marqueurs}):
* etc/refcards/fr-refcard.tex (section{Tags}):
* etc/refcards/de-refcard.tex (section{Tags}):
* etc/refcards/cs-survival.tex (section{Značky (tags)}):
* etc/refcards/cs-refcard.tex (section{Tagy}):
* etc/refcards/survival.tex (section{Tags}):
* etc/refcards/refcard.tex (section{Tags}): Fix 'M-,' and 'M-*'.

11 months ago; Update acknowledgments for Emacs 30
Eli Zaretskii [Sun, 22 Dec 2024 10:55:46 +0000 (12:55 +0200)]
; Update acknowledgments for Emacs 30

* admin/release-process: Suggest a command to compare source
trees.

* doc/emacs/emacs.texi (Acknowledgments):
* doc/emacs/ack.texi (Acknowledgments): Add authors of new stuff
in Emacs 30.

11 months ago; Fix node name in emacs-lisp-intro.texi
Eli Zaretskii [Sun, 22 Dec 2024 10:11:46 +0000 (12:11 +0200)]
; Fix node name in emacs-lisp-intro.texi

* doc/lispintro/emacs-lisp-intro.texi
(Lexical vs Dynamic Binding Example): Renamed from "... vs. ...",
to avoid using period in node names.

11 months ago; Update version tags of defcustoms
Eli Zaretskii [Sun, 22 Dec 2024 10:06:38 +0000 (12:06 +0200)]
; Update version tags of defcustoms

* admin/release-process: Expand on 'cusver-check'.

* lisp/editorconfig.el (editorconfig-indentation-alist)
(editorconfig-trim-whitespaces-mode):
* lisp/eshell/em-cmpl.el (eshell-cmpl-remote-file-ignore):
* lisp/eshell/esh-ext.el (eshell-explicit-remote-commands):
* lisp/gnus/nnfeed.el (nnfeed-date-format):
* lisp/net/newst-ticker.el (newsticker-ticker-period):
* lisp/progmodes/cc-vars.el (c-warn-ids-with-dollar):
* lisp/progmodes/cperl-mode.el (cperl-fontify-trailer):
* lisp/progmodes/eglot.el (customize-package-emacs-version-alist)
(eglot-events-buffer-config, eglot-confirm-server-edits)
(eglot-prefer-plaintext):
* lisp/progmodes/flymake.el (customize-package-emacs-version-alist):
* lisp/progmodes/ruby-mode.el (ruby-rubocop-use-bundler):
* lisp/progmodes/verilog-mode.el
(verilog-indent-ignore-multiline-defines)
(verilog-indent-ignore-regexp, verilog-indent-class-inside-pkg)
(verilog-align-decl-expr-comments)
(verilog-align-comment-distance, verilog-align-assign-expr)
(verilog-align-typedef-regexp, verilog-align-typedef-words)
(verilog-fontify-variables):
* lisp/register.el (register-preview-display-buffer-alist):
* lisp/vc/vc-annotate.el (vc-annotate-use-short-revision): Add
missing :version tags and additions to
'customize-package-emacs-version-alist' as appropriate.

11 months ago;* doc/misc/efaq.texi (New in Emacs 30): Mention 'trusted-contents'.
Eli Zaretskii [Sun, 22 Dec 2024 08:43:57 +0000 (10:43 +0200)]
;* doc/misc/efaq.texi (New in Emacs 30): Mention 'trusted-contents'.

11 months ago; * etc/NEWS: Fix wording.
Michael Albinus [Sun, 22 Dec 2024 08:31:06 +0000 (09:31 +0100)]
; * etc/NEWS: Fix wording.

11 months agoImprove D-Bus and Tramp manual
Michael Albinus [Sun, 22 Dec 2024 08:30:47 +0000 (09:30 +0100)]
Improve D-Bus and Tramp manual

* doc/misc/dbus.texi (Overview):
* doc/misc/tramp.texi (GVFS-based methods): Describe, how the
feature can be checked at runtime.  (Bug#75004)

11 months ago; Fix call to 'decode_string_utf_8' in #ifdef'ed-away code
Eli Zaretskii [Sat, 21 Dec 2024 12:12:14 +0000 (14:12 +0200)]
; Fix call to 'decode_string_utf_8' in  #ifdef'ed-away code

* src/coding.c (Finternal_decode_string_utf_8): Fix calling
sequence of 'decode_string_utf_8' to adapt to changes in the
latter's signature.

11 months ago; Improve commentary in calendar.el
Eli Zaretskii [Sat, 21 Dec 2024 11:00:05 +0000 (13:00 +0200)]
; Improve commentary in calendar.el

* lisp/calendar/calendar.el: Expand the commentary.  Suggested by
Richard Lawrence <rwl@recursewithless.net>.  (Bug#74965)

11 months agoAdd 'lua-ts-mode' to 'interpreter-mode-alist'
john muhl [Wed, 18 Dec 2024 16:59:19 +0000 (10:59 -0600)]
Add 'lua-ts-mode' to 'interpreter-mode-alist'

* lisp/progmodes/lua-ts-mode.el: Enable 'lua-ts-mode' for Lua
scripts based on their interpreter line.  (Bug#74951)

11 months agoDocument representation of dates in calendar.el
Richard Lawrence [Mon, 16 Dec 2024 19:46:34 +0000 (20:46 +0100)]
Document representation of dates in calendar.el

* lisp/calendar/calendar.el: Add a comment in file header
explaining how dates are represented.

11 months agoAutoload 'shortdoc-help-fns-examples-function'
Eli Zaretskii [Fri, 20 Dec 2024 20:06:06 +0000 (22:06 +0200)]
Autoload 'shortdoc-help-fns-examples-function'

* lisp/help-fns.el (shortdoc-help-fns-examples-function):
Autoload, to allow adding it to
'help-fns-describe-function-functions' as advertised.  (Bug#74995)

11 months ago* Update 'ldefs-boot.el' (don't merge)
Andrea Corallo [Thu, 19 Dec 2024 21:27:07 +0000 (22:27 +0100)]
* Update 'ldefs-boot.el' (don't merge)

* lisp/ldefs-boot.el: Update.

11 months ago* Bump Emacs version to 30.0.93
Andrea Corallo [Wed, 18 Dec 2024 23:48:19 +0000 (00:48 +0100)]
* Bump Emacs version to 30.0.93

* nt/README.W32: Update Emacs version.
* msdos/sed2v2.inp: Likewise.
* exec/configure.ac: Likewise.
* configure.ac: Likewise.
* README: Likewise.

11 months ago; * ChangeLog.4: Update.
Andrea Corallo [Wed, 18 Dec 2024 23:43:27 +0000 (00:43 +0100)]
; * ChangeLog.4: Update.

11 months ago; * etc/AUTHORS: Update.
Andrea Corallo [Wed, 18 Dec 2024 23:42:28 +0000 (00:42 +0100)]
; * etc/AUTHORS: Update.

11 months ago* Update authors.el
Andrea Corallo [Wed, 18 Dec 2024 23:16:20 +0000 (00:16 +0100)]
* Update authors.el

* admin/authors.el (authors-aliases, authors-valid-file-names)
(authors-renamed-files-alist): Add entry.

11 months ago; * etc/NEWS: Mark unmarked entries.
Eli Zaretskii [Wed, 18 Dec 2024 18:37:37 +0000 (20:37 +0200)]
; * etc/NEWS: Mark unmarked entries.

11 months agoDocument 'trusted-content
Eli Zaretskii [Wed, 18 Dec 2024 17:57:13 +0000 (19:57 +0200)]
Document 'trusted-content

* doc/emacs/misc.texi (Host Security): Document 'trusted-content'.

* lisp/files.el (trusted-content): Doc fix.

* etc/NEWS: Mark its entry as "documented".

11 months agoMention network-interface-list in network-interface-info docstring
Robert Pluim [Wed, 18 Dec 2024 15:00:55 +0000 (16:00 +0100)]
Mention network-interface-list in network-interface-info docstring

* src/process.c (Fnetwork_interface_info): Reference
'network-interface-list'.

11 months ago; * lisp/emacs-lisp/re-builder.el (reb-change-syntax): Fix typo.
Eli Zaretskii [Wed, 18 Dec 2024 14:22:21 +0000 (16:22 +0200)]
; * lisp/emacs-lisp/re-builder.el (reb-change-syntax): Fix typo.

12 months agoMove NEWS items from unreleased 28.3 to released 29.1
Stefan Kangas [Tue, 17 Dec 2024 03:46:36 +0000 (04:46 +0100)]
Move NEWS items from unreleased 28.3 to released 29.1

* etc/NEWS.28: Remove empty sections for 28.3.
Move single pertinent item from here...
* etc/NEWS.29: ...to here.

12 months agoImprove browse-url-android-share docstring
Stefan Kangas [Tue, 17 Dec 2024 03:38:18 +0000 (04:38 +0100)]
Improve browse-url-android-share docstring

* lisp/net/browse-url.el (browse-url-android-share): Clarify that
the option only applies to Android systems.

12 months agoMinor doc fix for url-handler-regexp
Stefan Kangas [Tue, 17 Dec 2024 02:10:42 +0000 (03:10 +0100)]
Minor doc fix for url-handler-regexp

* lisp/url/url-handlers.el (url-handler-regexp): Remove mention of
obsolete internal protocol "about" (i.e. url-about.el).  Reflow.

12 months agoImprove reb-change-syntax docstring
Stefan Kangas [Mon, 16 Dec 2024 21:17:36 +0000 (22:17 +0100)]
Improve reb-change-syntax docstring

* lisp/emacs-lisp/re-builder.el (reb-change-syntax): Improve docstring.

12 months ago* lisp/files.el (trusted-content-p): Make `:all` work in non-file buffers
Stefan Monnier [Mon, 16 Dec 2024 14:27:01 +0000 (09:27 -0500)]
* lisp/files.el (trusted-content-p): Make `:all` work in non-file buffers

12 months ago; * src/process.c (Fnetwork_interface_list): Fix typo.
Robert Pluim [Mon, 16 Dec 2024 12:35:28 +0000 (13:35 +0100)]
; * src/process.c (Fnetwork_interface_list): Fix typo.

12 months ago; * lisp/net/nsm.el (nsm-trust-local-network): Fix typo.
Robert Pluim [Mon, 16 Dec 2024 12:25:24 +0000 (13:25 +0100)]
; * lisp/net/nsm.el (nsm-trust-local-network): Fix typo.

12 months ago; Add some tree-sitter thing content to the manual
Yuan Fu [Mon, 16 Dec 2024 05:40:49 +0000 (21:40 -0800)]
; Add some tree-sitter thing content to the manual

* doc/lispref/parsing.texi (User-defined Things): List "builtin"
things.

12 months ago* lisp/org/ox-texinfo.el (org-texinfo-template): Fix Info format (bug#74844)
Stefan Monnier [Sun, 15 Dec 2024 22:08:25 +0000 (17:08 -0500)]
* lisp/org/ox-texinfo.el (org-texinfo-template): Fix Info format (bug#74844)

12 months agotrusted-content: Adjust the last patch based on preliminary feedback
Stefan Monnier [Sun, 15 Dec 2024 22:05:55 +0000 (17:05 -0500)]
trusted-content: Adjust the last patch based on preliminary feedback

* lisp/files.el (trusted-content): Rename from `trusted-files`.
Update all references.

* lisp/progmodes/elisp-mode.el (lisp-interaction-mode):
* lisp/ielm.el (inferior-emacs-lisp-mode):
* lisp/simple.el (read--expression): Set `trusted-content` since
these buffers contain code that the user presumably intends to run anyway.
(elisp--safe-macroexpand-all): Make the warning more discreet.

12 months ago; * etc/NEWS: Fix typos.
Michael Albinus [Sun, 15 Dec 2024 08:24:40 +0000 (09:24 +0100)]
; * etc/NEWS: Fix typos.

12 months ago; * doc/lispref/frames.texi (Multiple Terminals): Add indexing.
Eli Zaretskii [Sun, 15 Dec 2024 07:45:58 +0000 (09:45 +0200)]
; * doc/lispref/frames.texi (Multiple Terminals): Add indexing.

12 months agoUpdate documentation of 'etags' regexps some more
Paul Eggert [Sun, 15 Dec 2024 07:16:10 +0000 (00:16 -0700)]
Update documentation of 'etags' regexps some more

* doc/emacs/maintaining.texi (Etags Regexps):
* doc/man/etags.1: Give more details about what's not supported.

12 months agoUpdate documentation of 'etags' regexps
Eli Zaretskii [Sun, 15 Dec 2024 05:52:40 +0000 (07:52 +0200)]
Update documentation of 'etags' regexps

* doc/emacs/maintaining.texi (Etags Regexps):
* doc/man/etags.1: Say that shy groups are not supported (bug#74861).

12 months agoelisp-mode.el: Disable Flymake byte-compile backend in untrusted files
Stefan Monnier [Tue, 10 Dec 2024 21:26:31 +0000 (16:26 -0500)]
elisp-mode.el: Disable Flymake byte-compile backend in untrusted files

To address serious security issues (CVE-2024-53920), disable
`elisp-flymake-byte-compile` except in those files explicitly
specified as "trusted".

For that introduce a new custom var `trusted-files` and new
function `trusted-content-p`.

While at it, similarly skip the implicit macroexpansion done during
completion if the current file is not trusted.

* lisp/files.el (trusted-files): New variable.
(trusted-content-p): New function.

* lisp/progmodes/elisp-mode.el (elisp--safe-macroexpand-all):
New function, extracted from `elisp--local-variables`.
Use `trusted-content-p`.
(elisp--local-variables): Use it.
(elisp-flymake-byte-compile): Disable according to `trusted-content-p`.

12 months ago; * etc/PROBLEMS: Document problem with menu-bar background (bug#74028).
Eli Zaretskii [Sat, 14 Dec 2024 09:57:04 +0000 (11:57 +0200)]
; * etc/PROBLEMS: Document problem with menu-bar background (bug#74028).

12 months ago* lisp/time-stamp.el: Limit field width to two digits.
Stephen Gildea [Fri, 13 Dec 2024 16:53:54 +0000 (08:53 -0800)]
* lisp/time-stamp.el: Limit field width to two digits.

12 months ago; * lisp/progmodes/executable.el: Remove stale comment (bug#74846).
Eli Zaretskii [Fri, 13 Dec 2024 12:11:13 +0000 (14:11 +0200)]
; * lisp/progmodes/executable.el: Remove stale comment (bug#74846).

12 months ago; * etc/TODO: Add an item for improving defgroups.
Eli Zaretskii [Thu, 12 Dec 2024 16:03:19 +0000 (18:03 +0200)]
; * etc/TODO: Add an item for improving defgroups.

12 months ago; * lisp/net/rcirc.el (rcirc-next-active-buffer): Doc fix (bug#74773).
Scott Bell [Tue, 10 Dec 2024 19:02:54 +0000 (12:02 -0700)]
; * lisp/net/rcirc.el (rcirc-next-active-buffer): Doc fix (bug#74773).

12 months ago; Fix :version tag in browse-url
Stefan Kangas [Wed, 11 Dec 2024 21:40:22 +0000 (22:40 +0100)]
; Fix :version tag in browse-url

* lisp/net/browse-url.el (browse-url-button-regexp): Fix :version tag.

12 months agoRevert "Attempt to install package first when upgrading"
Philip Kaludercic [Tue, 10 Dec 2024 21:12:34 +0000 (22:12 +0100)]
Revert "Attempt to install package first when upgrading"

This reverts commit 3d8e49c41a66a7f05cb96f84e2a10f0f308ac9ca.

12 months agoFix 'gnus-select-method' custom type
Robert Pluim [Tue, 10 Dec 2024 13:56:21 +0000 (14:56 +0100)]
Fix 'gnus-select-method' custom type

* lisp/gnus/gnus.el (gnus-redefine-select-method-widget): Cater
for the 'gnus-search-engine' configuration variable, which takes
2 args instead of 1.   (Bug#74759)

12 months agoFix typo in maps.texi
Chu [Tue, 10 Dec 2024 03:10:34 +0000 (11:10 +0800)]
Fix typo in maps.texi

* doc/lispref/maps.texi (Standard Keymaps): Fix typo.  (Bug#74761)

Copyright-paperwork-exempt: yes

12 months ago; * etc/DEBUG: Mention "handle SIGINT" on MS-Windows.
Eli Zaretskii [Mon, 9 Dec 2024 18:23:40 +0000 (20:23 +0200)]
; * etc/DEBUG: Mention "handle SIGINT" on MS-Windows.

12 months ago* doc/misc/tramp.texi (FUSE-based methods): Fix sshfs reference.
Michael Albinus [Mon, 9 Dec 2024 14:50:59 +0000 (15:50 +0100)]
* doc/misc/tramp.texi (FUSE-based methods): Fix sshfs reference.

12 months agoImprove gnus.texi indexing
Stefan Kangas [Sun, 8 Dec 2024 13:51:50 +0000 (14:51 +0100)]
Improve gnus.texi indexing

* doc/misc/gnus.texi (Common Variables): Improve indexing.

12 months ago; * lisp/net/eww.el (eww-browse-with-external-browser): Fix typo.
Eli Zaretskii [Sun, 8 Dec 2024 05:58:41 +0000 (07:58 +0200)]
; * lisp/net/eww.el (eww-browse-with-external-browser): Fix typo.

12 months ago; Improve doc strings in compile.el
Eli Zaretskii [Sun, 8 Dec 2024 05:47:07 +0000 (07:47 +0200)]
; Improve doc strings in compile.el

* lisp/progmodes/compile.el (compilation-transform-file-match-alist)
(compilation-error-regexp-alist): Doc fixes.

12 months agoAttempt to install package first when upgrading
Philip Kaludercic [Sat, 7 Dec 2024 19:02:00 +0000 (20:02 +0100)]
Attempt to install package first when upgrading

* lisp/emacs-lisp/package.el (package-upgrade): Swap the
'package-install' and the 'package-delete' invocations.
(Bug#74556)

12 months 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)

12 months 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)

12 months 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.

12 months 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.

12 months 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.

12 months 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'.

12 months 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.

12 months 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.

12 months 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)

12 months 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)

12 months agoFix the latest dabbrev-expand test fix
Stephen Berman [Tue, 3 Dec 2024 09:38:26 +0000 (10:38 +0100)]
Fix the latest dabbrev-expand test fix

* test/lisp/dabbrev-tests.el (dabbrev-expand-after-killing-buffer):
In batch runs of this file, the user-error message contains curved
quotes, but grave quotes when running `make check' (so here was
evidently not passed to `substitute-command-keys'), so use grave
quotes so the test succeeds in both modes of execution.

12 months agoFix password prompt in comint (don't merge)
Michael Albinus [Mon, 2 Dec 2024 18:21:54 +0000 (19:21 +0100)]
Fix password prompt in comint (don't merge)

* lisp/comint.el (comint-watch-for-password-prompt): Use whole
string for setting the prompt.  (Bug#74626)

12 months 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)

12 months 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)

12 months agoFix latest test for dabbrev-expand
Stephen Berman [Mon, 2 Dec 2024 12:13:39 +0000 (13:13 +0100)]
Fix latest test for dabbrev-expand

* test/lisp/dabbrev-tests.el (dabbrev-expand-after-killing-buffer):
Fix typo in a 'should' test, use part of return value of 'should-error'
test, and remove mistaken and unfounded FIXME comment.

12 months 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.

12 months 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.

12 months 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.

12 months 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)

12 months agoPrevent "Selecting deleted buffer" error with dabbrev-expand
Stephen Berman [Sat, 30 Nov 2024 22:28:06 +0000 (23:28 +0100)]
Prevent "Selecting deleted buffer" error with dabbrev-expand

* lisp/dabbrev.el (dabbrev-expand): Use the buffer where the last
expansion was found only if it is still a live buffer (bug#74090).

* test/lisp/dabbrev-tests.el (dabbrev-expand-test-minibuffer-3):
Fix typo in doc string.
(dabbrev-expand-after-killing-buffer): New test.

12 months ago; (dictionary-search-interface): Fix bug#74511.
Eshel Yaron [Sat, 30 Nov 2024 11:56:49 +0000 (12:56 +0100)]
; (dictionary-search-interface): Fix bug#74511.

* lisp/net/dictionary.el (dictionary-search-interface):
During initialization, do not override individual
customization of the other options that this option
affects (by applying the :set function), unless this option
was explicitly set.

12 months 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)

12 months agoFix docstring of c-ts-mode-indent-style
Yuan Fu [Sat, 30 Nov 2024 05:11:19 +0000 (21:11 -0800)]
Fix docstring of c-ts-mode-indent-style

* lisp/progmodes/c-ts-mode.el (c-ts-mode-indent-style): Make the
docstring reflect what's expected by the code.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

12 months agoAvoid loading 'rx' at runtime in 'lua-ts-mode'
john muhl [Sat, 23 Nov 2024 20:08:21 +0000 (14:08 -0600)]
Avoid loading 'rx' at runtime in 'lua-ts-mode'

* lisp/progmodes/lua-ts-mode.el (lua-ts-inferior-lua):
Replace 'rx-to-string' and substitution with 'rx' and 'literal'.
(Bug#74499)

(cherry picked from commit e71d714a815e1088f8cfe946b1e431356ec85b24)

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

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

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

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

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

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

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

12 months agoSkip proced refine tests on Darwin
Laurence Warne [Thu, 21 Nov 2024 17:26:25 +0000 (17:26 +0000)]
Skip proced refine tests on Darwin

* test/lisp/proced-tests.el (proced-refine-test)
(proced-refine-with-update-test): Skip if the system is Darwin.

12 months ago; Fix recent additions to the manuals
Eli Zaretskii [Thu, 21 Nov 2024 15:47:22 +0000 (17:47 +0200)]
; Fix recent additions to the manuals

* doc/lispref/objects.texi (Type Specifiers):
* doc/lispref/functions.texi (Declare Form):
* doc/emacs/help.texi (Name Help): Fix wording and markup.
(Bug#73626)

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

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

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

12 months ago; Introduce type specifiers to the elisp manual (bug#73626)
Andrea Corallo [Wed, 13 Nov 2024 23:20:13 +0000 (00:20 +0100)]
; Introduce type specifiers to the elisp manual (bug#73626)

* doc/lispref/objects.texi (Programming Types): Add 'Type Specifiers' entry.
(Type Specifiers): Add node.
* doc/lispref/functions.texi (Declare Form): Add 'Type Specifiers'
reference.

12 months agoFuture-proof loading tree-sitter library on MS-Windows
Eli Zaretskii [Thu, 21 Nov 2024 12:55:38 +0000 (14:55 +0200)]
Future-proof loading tree-sitter library on MS-Windows

* src/treesit.c (syms_of_treesit) <tree-sitter--library-abi>: New
internal variable.

* lisp/term/w32-win.el (dynamic-library-alist): Use
'tree-sitter--library-abi' to select a proper libtree-sitter DLL
version.

12 months ago; Improve documentation of 'category' in display-buffer actions
Eli Zaretskii [Thu, 21 Nov 2024 10:28:26 +0000 (12:28 +0200)]
; Improve documentation of 'category' in display-buffer actions

* doc/lispref/windows.texi (Choosing Window)
(Buffer Display Action Alists): Add cross-references.
* doc/lispref/buffers.texi (Buffer List):

* lisp/subr.el (buffer-match-p): Improve documentation of
'category' condition.  (Bug#74361)

12 months ago; More accurate documentation of 'set-mark-command'
Eli Zaretskii [Thu, 21 Nov 2024 09:47:07 +0000 (11:47 +0200)]
; More accurate documentation of 'set-mark-command'

* doc/emacs/mark.texi (Setting Mark, Global Mark Ring): Explain
that activating an existing mark doesn't set a new mark, and
doesn't push the mark onto the global mark ring.  (Bug#74438)

12 months agoFix overriding 'c-ts-mode' by 'c-mode'
Eli Zaretskii [Thu, 21 Nov 2024 07:43:34 +0000 (09:43 +0200)]
Fix overriding 'c-ts-mode' by 'c-mode'

* lisp/progmodes/c-ts-mode.el: Remove all c- and c++-mode
associations from 'major-mode-remap-defaults' before installing
entries that remap to 'c-ts-mode' and 'c++-ts-mode'.  (Bug#74339)

12 months ago; Improve vc-dir help-echo
Eli Zaretskii [Mon, 18 Nov 2024 19:25:18 +0000 (21:25 +0200)]
; Improve vc-dir help-echo

* lisp/vc/vc-git.el (vc-git-stash-shared-help)
(vc-git-stash-list-help, vc-git-stash-menu-map): Improve help-echo
text.

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

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

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

See bug#74367.

13 months ago; In PROBLEMS mention issue with .Xresources on Gnome desktop (Bug#73244)
Martin Rudalics [Sat, 16 Nov 2024 16:30:29 +0000 (17:30 +0100)]
; In PROBLEMS mention issue with .Xresources on Gnome desktop (Bug#73244)

* etc/PROBLEMS: Mention issue with specifying frame size in
.Xresources when running Emacs on Gnome desktop (Bug#73244).