diff options
| author | Eli Zaretskii | 2025-02-01 07:40:19 -0500 |
|---|---|---|
| committer | Eli Zaretskii | 2025-02-01 07:40:19 -0500 |
| commit | d58fe6619f9b31069ebb420f0e85c7ce00a5fcb7 (patch) | |
| tree | 42b098c30d10ace21562a76702e3b799e9c292a8 | |
| parent | 25fc779986744913a97bbd4349907877bde68d38 (diff) | |
| parent | ba2719389515cee54874588d76b9244c17f568d5 (diff) | |
| download | emacs-d58fe6619f9b31069ebb420f0e85c7ce00a5fcb7.tar.gz emacs-d58fe6619f9b31069ebb420f0e85c7ce00a5fcb7.zip | |
Merge from origin/emacs-30
ba271938951 ; * etc/NEWS: Fix wording.
fdc6842a44e Remove bookmark fringe marks when deleting all bookmarks
3bccd04c5c6 Improve wording in symbols.texi
6441b9ea7af Fix typo in Gnus manual
87be3aa1491 eglot: Allow omnisharp binary to be capitalized "OmniSharp"
5485ea6aef9 Do not set `trusted-content` in major modes
d11488fd6fb ; * lisp/subr.el (sit-for): Doc fix.
# Conflicts:
# etc/NEWS
| -rw-r--r-- | doc/lispref/symbols.texi | 10 | ||||
| -rw-r--r-- | doc/misc/gnus.texi | 2 | ||||
| -rw-r--r-- | etc/NEWS.30 | 3 | ||||
| -rw-r--r-- | lisp/bookmark.el | 2 | ||||
| -rw-r--r-- | lisp/files.el | 5 | ||||
| -rw-r--r-- | lisp/ielm.el | 4 | ||||
| -rw-r--r-- | lisp/progmodes/eglot.el | 1 | ||||
| -rw-r--r-- | lisp/progmodes/elisp-mode.el | 3 | ||||
| -rw-r--r-- | lisp/simple.el | 4 | ||||
| -rw-r--r-- | lisp/subr.el | 8 |
10 files changed, 26 insertions, 16 deletions
diff --git a/doc/lispref/symbols.texi b/doc/lispref/symbols.texi index 37fb3b49e43..6cddd50c920 100644 --- a/doc/lispref/symbols.texi +++ b/doc/lispref/symbols.texi | |||
| @@ -106,11 +106,11 @@ reference any object. (This is not the same thing as holding the symbol | |||
| 106 | a value cell that is void results in an error, such as @samp{Symbol's | 106 | a value cell that is void results in an error, such as @samp{Symbol's |
| 107 | value as variable is void}. | 107 | value as variable is void}. |
| 108 | 108 | ||
| 109 | Because each symbol has separate value and function cells, variables | 109 | Because each symbol has separate value and function cells, the names |
| 110 | names and function names do not conflict. For example, the symbol | 110 | of variables and functions do not conflict. For example, the symbol |
| 111 | @code{buffer-file-name} has a value (the name of the file being | 111 | @code{buffer-file-name} has a value (the name of the file being visited |
| 112 | visited in the current buffer) as well as a function definition (a | 112 | in the current buffer) as well as a function definition (a primitive |
| 113 | primitive function that returns the name of the file): | 113 | function that returns the name of the file): |
| 114 | 114 | ||
| 115 | @example | 115 | @example |
| 116 | buffer-file-name | 116 | buffer-file-name |
diff --git a/doc/misc/gnus.texi b/doc/misc/gnus.texi index cfcc8039165..239aa43703f 100644 --- a/doc/misc/gnus.texi +++ b/doc/misc/gnus.texi | |||
| @@ -17204,7 +17204,7 @@ filename is unrelated to the article number in Gnus. @code{nnmaildir} | |||
| 17204 | also stores the equivalent of @code{nnml}'s overview files in one file | 17204 | also stores the equivalent of @code{nnml}'s overview files in one file |
| 17205 | per article, so it uses about twice as many inodes as @code{nnml}. | 17205 | per article, so it uses about twice as many inodes as @code{nnml}. |
| 17206 | (Use @code{df -i} to see how plentiful your inode supply is.) If this | 17206 | (Use @code{df -i} to see how plentiful your inode supply is.) If this |
| 17207 | slows you down or takes up very much space, a non-block-structured | 17207 | slows you down or takes up very much space, use a non-block-structured |
| 17208 | file system. | 17208 | file system. |
| 17209 | 17209 | ||
| 17210 | Since maildirs don't require locking for delivery, the maildirs you use | 17210 | Since maildirs don't require locking for delivery, the maildirs you use |
diff --git a/etc/NEWS.30 b/etc/NEWS.30 index fbfb9086430..ec14e447859 100644 --- a/etc/NEWS.30 +++ b/etc/NEWS.30 | |||
| @@ -193,6 +193,9 @@ For example, Flymake's backend for Emacs Lisp consults this option | |||
| 193 | and disables itself with an "untrusted content" warning if the file | 193 | and disables itself with an "untrusted content" warning if the file |
| 194 | is not listed. | 194 | is not listed. |
| 195 | 195 | ||
| 196 | Emacs Lisp authors should note that a major or minor mode must never set | ||
| 197 | this option to the ':all' value. | ||
| 198 | |||
| 196 | This option is used to fix CVE-2024-53920. See below for details. | 199 | This option is used to fix CVE-2024-53920. See below for details. |
| 197 | 200 | ||
| 198 | ** Emacs now supports Unicode Standard version 15.1. | 201 | ** Emacs now supports Unicode Standard version 15.1. |
diff --git a/lisp/bookmark.el b/lisp/bookmark.el index c86101217d6..e8ad0cee31d 100644 --- a/lisp/bookmark.el +++ b/lisp/bookmark.el | |||
| @@ -1586,6 +1586,8 @@ confirmation." | |||
| 1586 | (when (or no-confirm | 1586 | (when (or no-confirm |
| 1587 | (yes-or-no-p "Permanently delete all bookmarks? ")) | 1587 | (yes-or-no-p "Permanently delete all bookmarks? ")) |
| 1588 | (bookmark-maybe-load-default-file) | 1588 | (bookmark-maybe-load-default-file) |
| 1589 | (dolist (bm bookmark-alist) | ||
| 1590 | (bookmark--remove-fringe-mark bm)) | ||
| 1589 | (setq bookmark-alist-modification-count | 1591 | (setq bookmark-alist-modification-count |
| 1590 | (+ bookmark-alist-modification-count (length bookmark-alist))) | 1592 | (+ bookmark-alist-modification-count (length bookmark-alist))) |
| 1591 | (setq bookmark-alist nil) | 1593 | (setq bookmark-alist nil) |
diff --git a/lisp/files.el b/lisp/files.el index 5ff40c335d7..e5fde17513f 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -721,11 +721,12 @@ enabled (for example, when it is added to a mode hook). | |||
| 721 | Each element of the list should be a string: | 721 | Each element of the list should be a string: |
| 722 | - If it ends in \"/\", it is considered as a directory name and means that | 722 | - If it ends in \"/\", it is considered as a directory name and means that |
| 723 | Emacs should trust all the files whose name has this directory as a prefix. | 723 | Emacs should trust all the files whose name has this directory as a prefix. |
| 724 | - else it is considered as a file name. | 724 | - Otherwise, it is considered a file name. |
| 725 | Use abbreviated file names. For example, an entry \"~/mycode/\" means | 725 | Use abbreviated file names. For example, an entry \"~/mycode/\" means |
| 726 | that Emacs will trust all the files in your directory \"mycode\". | 726 | that Emacs will trust all the files in your directory \"mycode\". |
| 727 | This variable can also be set to `:all', in which case Emacs will trust | 727 | This variable can also be set to `:all', in which case Emacs will trust |
| 728 | all files, which opens a gaping security hole." | 728 | all files, which opens a gaping security hole. Emacs Lisp authors |
| 729 | should note that this value must never be set by a major or minor mode." | ||
| 729 | :type '(choice (repeat :tag "List" file) | 730 | :type '(choice (repeat :tag "List" file) |
| 730 | (const :tag "Trust everything (DANGEROUS!)" :all)) | 731 | (const :tag "Trust everything (DANGEROUS!)" :all)) |
| 731 | :version "30.1") | 732 | :version "30.1") |
diff --git a/lisp/ielm.el b/lisp/ielm.el index 561185a738a..b3cd02b4dc0 100644 --- a/lisp/ielm.el +++ b/lisp/ielm.el | |||
| @@ -580,7 +580,6 @@ Customized bindings may be defined in `ielm-map', which currently contains: | |||
| 580 | ielm-fontify-input-enable | 580 | ielm-fontify-input-enable |
| 581 | (comint-fontify-input-mode)) | 581 | (comint-fontify-input-mode)) |
| 582 | 582 | ||
| 583 | (setq-local trusted-content :all) | ||
| 584 | (setq comint-prompt-regexp (concat "^" (regexp-quote ielm-prompt))) | 583 | (setq comint-prompt-regexp (concat "^" (regexp-quote ielm-prompt))) |
| 585 | (setq-local paragraph-separate "\\'") | 584 | (setq-local paragraph-separate "\\'") |
| 586 | (setq-local paragraph-start comint-prompt-regexp) | 585 | (setq-local paragraph-start comint-prompt-regexp) |
| @@ -684,7 +683,8 @@ See `inferior-emacs-lisp-mode' for details." | |||
| 684 | (unless (comint-check-proc buf-name) | 683 | (unless (comint-check-proc buf-name) |
| 685 | (with-current-buffer (get-buffer-create buf-name) | 684 | (with-current-buffer (get-buffer-create buf-name) |
| 686 | (unless (zerop (buffer-size)) (setq old-point (point))) | 685 | (unless (zerop (buffer-size)) (setq old-point (point))) |
| 687 | (inferior-emacs-lisp-mode))) | 686 | (inferior-emacs-lisp-mode) |
| 687 | (setq-local trusted-content :all))) | ||
| 688 | (pop-to-buffer-same-window buf-name) | 688 | (pop-to-buffer-same-window buf-name) |
| 689 | (when old-point (push-mark old-point)))) | 689 | (when old-point (push-mark old-point)))) |
| 690 | 690 | ||
diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index 76648f310e6..4114f21bc75 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el | |||
| @@ -325,6 +325,7 @@ automatically)." | |||
| 325 | ((csharp-mode csharp-ts-mode) | 325 | ((csharp-mode csharp-ts-mode) |
| 326 | . ,(eglot-alternatives | 326 | . ,(eglot-alternatives |
| 327 | '(("omnisharp" "-lsp") | 327 | '(("omnisharp" "-lsp") |
| 328 | ("OmniSharp" "-lsp") | ||
| 328 | ("csharp-ls")))) | 329 | ("csharp-ls")))) |
| 329 | (purescript-mode . ("purescript-language-server" "--stdio")) | 330 | (purescript-mode . ("purescript-language-server" "--stdio")) |
| 330 | ((perl-mode cperl-mode) | 331 | ((perl-mode cperl-mode) |
diff --git a/lisp/progmodes/elisp-mode.el b/lisp/progmodes/elisp-mode.el index 078563a123c..d61cf4684f9 100644 --- a/lisp/progmodes/elisp-mode.el +++ b/lisp/progmodes/elisp-mode.el | |||
| @@ -1340,8 +1340,7 @@ Semicolons start comments. | |||
| 1340 | 1340 | ||
| 1341 | \\{lisp-interaction-mode-map}" | 1341 | \\{lisp-interaction-mode-map}" |
| 1342 | :abbrev-table nil | 1342 | :abbrev-table nil |
| 1343 | (setq-local lexical-binding t) | 1343 | (setq-local lexical-binding t)) |
| 1344 | (setq-local trusted-content :all)) | ||
| 1345 | 1344 | ||
| 1346 | ;;; Emacs Lisp Byte-Code mode | 1345 | ;;; Emacs Lisp Byte-Code mode |
| 1347 | 1346 | ||
diff --git a/lisp/simple.el b/lisp/simple.el index d3005c69b0c..e1c0dd4a092 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -11249,7 +11249,9 @@ too short to have a dst element. | |||
| 11249 | (when initial-scratch-message | 11249 | (when initial-scratch-message |
| 11250 | (insert (substitute-command-keys initial-scratch-message)) | 11250 | (insert (substitute-command-keys initial-scratch-message)) |
| 11251 | (set-buffer-modified-p nil)) | 11251 | (set-buffer-modified-p nil)) |
| 11252 | (funcall initial-major-mode)) | 11252 | (funcall initial-major-mode) |
| 11253 | (when (eq initial-major-mode 'lisp-interaction-mode) | ||
| 11254 | (setq-local trusted-content :all))) | ||
| 11253 | scratch))) | 11255 | scratch))) |
| 11254 | 11256 | ||
| 11255 | (defun scratch-buffer () | 11257 | (defun scratch-buffer () |
diff --git a/lisp/subr.el b/lisp/subr.el index 65b50dc5598..12f4ec38b78 100644 --- a/lisp/subr.el +++ b/lisp/subr.el | |||
| @@ -3547,13 +3547,15 @@ causes it to evaluate `help-form' and display the result." | |||
| 3547 | char)) | 3547 | char)) |
| 3548 | 3548 | ||
| 3549 | (defun sit-for (seconds &optional nodisp) | 3549 | (defun sit-for (seconds &optional nodisp) |
| 3550 | "Redisplay, then wait for SECONDS seconds. Stop when input is available. | 3550 | "Redisplay, then wait for SECONDS seconds; stop when input is available. |
| 3551 | SECONDS may be a floating-point value. | 3551 | SECONDS may be a floating-point value. |
| 3552 | \(On operating systems that do not support waiting for fractions of a | 3552 | \(On operating systems that do not support waiting for fractions of a |
| 3553 | second, floating-point values are rounded down to the nearest integer.) | 3553 | second, floating-point values are rounded down to the nearest integer.) |
| 3554 | 3554 | ||
| 3555 | If optional arg NODISP is t, don't redisplay, just wait for input. | 3555 | If there's pending input, return nil immediately without redisplaying |
| 3556 | Redisplay does not happen if input is available before it starts. | 3556 | and without waiting. |
| 3557 | If optional arg NODISP is t, don't redisplay, just wait for input (but | ||
| 3558 | still return nil immediately if there's pending input). | ||
| 3557 | 3559 | ||
| 3558 | Value is t if waited the full time with no input arriving, and nil otherwise." | 3560 | Value is t if waited the full time with no input arriving, and nil otherwise." |
| 3559 | ;; This used to be implemented in C until the following discussion: | 3561 | ;; This used to be implemented in C until the following discussion: |