Eli Zaretskii
4b2bb63b7a
Fix documentation and prompt in 'package-isolate'
...
* lisp/emacs-lisp/package.el (package-isolate): Fix doc string and
the prompt. (Bug#75163)
2025-01-04 14:18:54 +02:00
Yuan Fu
55f43f5b22
; Fix typo in treesit-explore-mode
...
* lisp/treesit.el (treesit-explore-mode): We added the hook to
kill-buffer-hook, so make sure to remove it from
kill-buffer-hook, not post-command-hook.
2025-01-03 21:40:42 -08:00
Wilhelm Kirschbaum
921f454f50
Update fontification for attribute values in heex-ts-mode
...
Attribute values are strings as with html-ts-mode.
* lisp/progmodes/heex-ts-mode.el (heex-ts--font-lock-settings):
Change to attribute value to @font-lock-string-face. (Bug#75192)
2025-01-03 16:13:37 +01:00
Wilhelm Kirschbaum
ae2589ea7a
Add expression handling to heex-ts-mode
...
On the latest update of the grammar expressions were added and won't be
seen as directives anymore.
* lisp/progmodes/heex-ts-mode.el
(heex-ts--sexp-regexp): Match on expression as well.
(heex-ts--indent-rules): Indent on expression end. (Bug#75191)
* test/lisp/progmodes/heex-ts-mode-resources/indent.erts: Add expression
indent test.
2025-01-03 09:41:15 +01:00
Stefan Kangas
f47a29da5c
* lisp/man.el (Man-mode): Improve docstring.
2025-01-03 03:36:38 +01:00
Stefan Kangas
cd6e2a0828
Fix copyright years by hand
...
These are dates that admin/update-copyright did not update.
2025-01-02 18:44:48 +01:00
Stefan Kangas
7fa975adbc
Update copyright year to 2025
...
Run "TZ=UTC0 admin/update-copyright".
2025-01-02 18:39:42 +01:00
Dmitry Gutov
afe776051e
[project-vc]: Make project-buffers more consistent with project-files
...
* lisp/progmodes/project.el (project-buffers):
Catch 'file-missing' error to continue anyway if .git does not
exist (bug#74826).
2025-01-02 18:58:40 +02:00
Stefan Monnier
a720458fdd
(elisp-flymake-byte-compile): Improve UX with debug-on-error
...
* lisp/progmodes/elisp-mode.el (elisp-flymake-byte-compile): Don't jump
into the debugger just because the content is not trusted.
2025-01-02 10:51:38 -05:00
Wilhelm Kirschbaum
43a8f0de5e
Always match underscore variables for elixir-ts-mode
...
The code comment is invalid, as it is common to treat any _variable as a
comment.
* lisp/progmodes/elixir-ts-mode.el (elixir-ts-font-lock-settings):
Add ":override t" to comment identifier match. (Bug#75156)
2024-12-28 17:37:38 +01:00
Wilhelm Kirschbaum
624322d5f6
Add missing fontification matches for elixir-ts-mode
...
* lisp/progmodes/elixir-ts-mode.el (elixir-ts--font-lock-settings): Add
matches for missing tokens and fix atom type face. (Bug#75156)
2024-12-28 09:42:09 +01:00
Stefan Kangas
186ea40732
Don't start docstrings with "This function" or similar
...
* lisp/calculator.el (calculator-add-operators):
* lisp/erc/erc-backend.el (erc-server-ping-handler):
* lisp/erc/erc-log.el (erc-generate-log-file-name-with-date):
(erc-generate-log-file-name-short):
* lisp/erc/erc-track.el (erc-track-shorten-function):
* lisp/eshell/em-smart.el (eshell-where-to-jump):
* lisp/eshell/esh-mode.el (eshell-begin-on-new-line):
* lisp/gnus/gnus-art.el (gnus-prompt-before-saving):
* lisp/mail/supercite.el (sc-cite-region-limit):
* lisp/net/nsm.el (network-security-protocol-checks):
* lisp/org/org-element.el
(org-element--cache-avoid-synchronous-headline-re-parsing):
* lisp/progmodes/hideif.el (hif-merge-ifdef-region):
* lisp/progmodes/modula2.el (m2-indent):
* lisp/progmodes/xscheme.el (xscheme-running-p):
(xscheme-control-g-disabled-p):
* lisp/tab-bar.el (tab-bar--event-to-item):
* lisp/which-key.el (which-key--hide-popup): Don't start docstrings with
"This function" or "This variable".
2024-12-26 21:02:45 +01:00
john muhl
54f3513709
Fix comment indent in 'lua-ts-mode' and old grammar
...
* lisp/progmodes/lua-ts-mode.el (lua-ts--simple-indent-rules):
Improve multi-line comment indention for pre-0.0.19 grammars that
used a different structure for comment start/end markers.
(Bug#75107)
2024-12-26 11:01:49 +02:00
Eli Zaretskii
8064b2a679
Document undocumented completion commands
...
* src/minibuf.c (Fread_from_minibuffer):
* lisp/minibuffer.el (minibuffer-complete-history)
(minibuffer-complete-defaults): Doc fixes.
* doc/emacs/mini.texi (Completion Commands): Fix markup, style of
describing commands, and indexing. Document 'C-x UP' and 'C-x
DOWN'.
2024-12-24 21:25:02 +02:00
Eli Zaretskii
77243ba5be
; 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.
2024-12-22 12:06:38 +02:00
Eli Zaretskii
6902673b5b
; Improve commentary in calendar.el
...
* lisp/calendar/calendar.el: Expand the commentary. Suggested by
Richard Lawrence <rwl@recursewithless.net >. (Bug#74965)
2024-12-21 13:00:05 +02:00
john muhl
08b62132dd
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)
2024-12-21 12:53:21 +02:00
Richard Lawrence
d8ffcf2fba
Document representation of dates in calendar.el
...
* lisp/calendar/calendar.el: Add a comment in file header
explaining how dates are represented.
2024-12-21 12:43:39 +02:00
Eli Zaretskii
faaa13ec76
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)
2024-12-20 22:06:06 +02:00
Andrea Corallo
68bcabf58a
* Update 'ldefs-boot.el' (don't merge)
...
* lisp/ldefs-boot.el: Update.
2024-12-19 22:29:25 +01:00
Eli Zaretskii
8a0c9c234f
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".
2024-12-18 19:57:13 +02:00
Eli Zaretskii
a7905145f7
; * lisp/emacs-lisp/re-builder.el (reb-change-syntax): Fix typo.
2024-12-18 16:22:21 +02:00
Stefan Kangas
5686bb5b42
Improve browse-url-android-share docstring
...
* lisp/net/browse-url.el (browse-url-android-share): Clarify that
the option only applies to Android systems.
2024-12-17 04:38:18 +01:00
Stefan Kangas
92041e15f4
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.
2024-12-17 03:13:10 +01:00
Stefan Kangas
9fd96e2ab9
Improve reb-change-syntax docstring
...
* lisp/emacs-lisp/re-builder.el (reb-change-syntax): Improve docstring.
2024-12-16 22:17:36 +01:00
Stefan Monnier
b9dc337ea7
* lisp/files.el (trusted-content-p): Make :all work in non-file buffers
2024-12-16 09:27:01 -05:00
Robert Pluim
c14c489571
; * lisp/net/nsm.el (nsm-trust-local-network): Fix typo.
2024-12-16 13:34:19 +01:00
Stefan Monnier
55303a6bc0
* lisp/org/ox-texinfo.el (org-texinfo-template): Fix Info format (bug#74844)
2024-12-15 17:08:25 -05:00
Stefan Monnier
8b6c6cffd1
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.
2024-12-15 17:05:55 -05:00
Stefan Monnier
b5158bd191
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`.
2024-12-14 09:48:36 -05:00
Stephen Gildea
488801baf7
* lisp/time-stamp.el: Limit field width to two digits.
2024-12-13 08:56:41 -08:00
Eli Zaretskii
34bedcd58d
; * lisp/progmodes/executable.el: Remove stale comment (bug#74846).
2024-12-13 14:11:13 +02:00
Scott Bell
7ae9ccae0c
; * lisp/net/rcirc.el (rcirc-next-active-buffer): Doc fix (bug#74773).
2024-12-12 13:04:28 +02:00
Stefan Kangas
3e51be94ae
; Fix :version tag in browse-url
...
* lisp/net/browse-url.el (browse-url-button-regexp): Fix :version tag.
2024-12-11 22:41:10 +01:00
Philip Kaludercic
dffd4a50c6
Revert "Attempt to install package first when upgrading"
...
This reverts commit 3d8e49c41a .
2024-12-10 22:12:43 +01:00
Robert Pluim
fbcb357b9d
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)
2024-12-10 15:53:47 +01:00
Eli Zaretskii
4a090bd7ea
; * lisp/net/eww.el (eww-browse-with-external-browser): Fix typo.
2024-12-08 07:58:41 +02:00
Eli Zaretskii
59fa0b1dd6
; Improve doc strings in compile.el
...
* lisp/progmodes/compile.el (compilation-transform-file-match-alist)
(compilation-error-regexp-alist): Doc fixes.
2024-12-08 07:47:07 +02:00
Philip Kaludercic
3d8e49c41a
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)
2024-12-07 20:02:58 +01:00
john muhl
4f2a21cc2a
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)
2024-12-07 15:28:14 +02:00
Vincenzo Pupillo
84fc77f34f
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 c87c5b95e1 )
2024-12-07 15:17:35 +02:00
Robert Pluim
3cf177442c
; * lisp/help-at-pt.el (display-local-help): Fix last change.
2024-12-05 11:21:51 +01:00
Eli Zaretskii
02c53b9aab
; * lisp/help-at-pt.el (display-local-help): Doc fix.
2024-12-04 19:51:31 +02:00
Robert Pluim
df7f02a795
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'.
2024-12-04 17:00:16 +01:00
Robert Pluim
7c50e4cc8c
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.
2024-12-04 14:55:27 +01:00
Robert Pluim
a73d08bb67
Improve 'compilation-hidden-output' docstring
...
* lisp/progmodes/compile.el (compilation-hidden-output): Escape
the newline so the example value is more suitable for copying.
2024-12-04 14:50:41 +01:00
Eli Zaretskii
d50293b0f1
; 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)
2024-12-04 15:21:13 +02:00
Robert Pluim
c7d9ffcf82
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 9f266e2d7c )
2024-12-04 14:10:21 +02:00
Michael Albinus
e618d5ae94
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)
2024-12-02 19:21:54 +01:00
Visuwesh
4c67f636c0
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)
2024-12-01 10:16:10 +02:00