diff options
| author | Michael Albinus | 2024-10-18 17:56:08 +0200 |
|---|---|---|
| committer | Michael Albinus | 2024-10-18 17:56:08 +0200 |
| commit | 674ad2ba7fc2ce21eff823ee3c6bfbc42da59520 (patch) | |
| tree | 297b401c2210fc6b0be473e82df34875f1bd3f54 | |
| parent | 5c59ab56e67d1880bdec98a4319d6b4be45acf9b (diff) | |
| parent | 78e6328fafddd4f39ed06d6ac4cecfb2f88d2fa4 (diff) | |
| download | emacs-674ad2ba7fc2ce21eff823ee3c6bfbc42da59520.tar.gz emacs-674ad2ba7fc2ce21eff823ee3c6bfbc42da59520.zip | |
Merge from origin/emacs-30
78e6328fafd ; (select-safe-coding-system-interactively): Say "safely ...
c5eba443ae7 ; * lisp/icomplete.el (icomplete-in-buffer): Doc fix (bug...
569186c36e3 ; * doc/lispref/display.texi (Face Attributes): Fix typo ...
d5723fc4f03 * lisp/progmodes/c-ts-mode.el (treesit-node-eq): Declare ...
0085e48f917 * admin/notes/emba: Docker builds do not run in a worktree.
3d30905b022 * lisp/calc/calc-ext.el (math-approx-sqrt-e): Doc fix (bu...
94d0e9c4018 : Revert a mistaken change
4d90a1d8209 ; * doc/emacs/search.texi (Word Search): Spelling fixes.
c154047c46a Fix c-ts-mode--anchor-prev-sibling (bug#73661)
b87fda63dd4 Fix formatting of long keyboard macros by 'list-keyboard-...
ae75ea62324 ; * src/fileio.c (Ffile_newer_than_file_p): Fix wording (...
b1203978685 Merge branch 'emacs-30' of git.sv.gnu.org:/srv/git/emacs ...
de54d922b5c * doc/emacs/mini.texi (Passwords): Mention password visib...
0f8f0773183 ; * doc/emacs/search.texi (Word Search): Document 'dictio...
fb155bcfb6f ; * lisp/emacs-lisp/chart.el (chart-bar-quickie): Doc fix.
6dbe4e99ac4 ; * lisp/emacs-lisp/chart.el (chart-bar-quickie): Improve...
d664227f81a ; More accurate documentation of 'file-newer-than-file-p'
e49b479f869 Fix c-ts-mode indentation for initializer lists (bug#73661)
f520008744b Avoid segfaults in Rmail-MIME
6a5c2edd84f Eglot: use :immediate t when resolving completions (bug#7...
cd36e070c24 Eglot: minor changes to doc and docstrings
1ea0d9b891b Revert "Set treesit-primary-parser for tree-sitter modes"
52746ceb625 Remove duplicate indent rules in elixir-ts-mode
ed57faafc74 Set treesit-primary-parser for tree-sitter modes
37a6c859b04 ; * lisp/emacs-lisp/cl-macs.el (cl-once-only): Fix capita...
2d4d6dc43a4 Delete XIE X extension from TODO
b68b9f291cc ; * lisp/progmodes/csharp-mode.el (treesit-query-compile)...
688201ef18d ; * lisp/window.el (switch-to-prev-buffer-skip-regexp): D...
ba44fc9a447 Restore comment/string check for 'electric-layout-mode'
5a462948e13 Update Arni Magnusson's email address
6b1271b169a Fix python-ts-mode-map docstring
aaaafddc945 Normalize "Commentary" section in eudc.el
d656be9794d Expand email abbrevs in X-Debbugs-Cc header.
e9dcf0c57dd Fix 'list-tags' when invoked from a non-file buffer
51ef05f684c count-windows: Fix reference to walk-windows
5eaf0c784bf * lisp/info-look.el (mapc): Add use-package manual's index.
705a5a1a9e6 ; * ChangeLog.4: Fix attribution of one change.
bf26ff0dc8d Update csharp-ts-mode font-lock (bug#73369)
4c866abab96 ; * doc/lispref/variables.texi (Creating Buffer-Local): F...
d42d7d474fe ; * lisp/doc-view.el (doc-view-svg-face): Copy-edit docst...
f46f476bb8f ; * admin/MAINTAINERS: Take VC subsystem, add note about ...
d68e6d2689d ; rcirc-update-activity-string: Justify some existing beh...
e6a37869c8d Fix inconsistency in value of rcirc-activity-string
108b3179bd4 Revert "; Minor clarification in variables.texi"
44156c21407 ; Minor clarification in variables.texi
63058e1153a Tag interactive commands in 'lua-ts-mode'
84bea20eba2 ; * lisp/info-look.el: Add two more links.
96b87ad5363 Mention LSP acronym in eglot defgroup docstring
9c904e8ceae Change :group of 'eglot' defgroup to 'tools'
fd1a1b07805 Remove out-of-date documentation from python.el
11e3e0cadd4 Fix executing commands in Eshell using "env" with no loca...
c0ef8a9a1b3 Fix a typo in the calendar manual
36ff7138feb ; Fix a thinko in sieve-manage.el
7abecbcd633 ; * nt/INSTALL: Update MinGW notes URL. (Bug#73528)
e2b01d164cd ; Fix last changes in php-ts-mode.el
e8830015b07 Require ert-x for use by 'ert-font-lock-deftest-file'
a1841b4d8e7 ; * admin/authors.el (authors-aliases): Don't ignore "one...
69d8f9d1b70 Fix php-ts-mode font-lock for latest PHP grammar (bug#73516)
68f53e43488 eieio.texi: Fix bug#73505
53c887fdf6d ; cperl-mode.el: Fix an invalid face specification
f5cd5585f46 ; Recommend GNU Find for 'find-dired'
65e589698e6 ; * lisp/filesets.el (filesets-homepage): Fix URL.
1f243a97806 Delete duplicated line in Viper refcard
| -rw-r--r-- | admin/notes/emba | 2 | ||||
| -rw-r--r-- | doc/emacs/mini.texi | 12 | ||||
| -rw-r--r-- | doc/emacs/search.texi | 8 | ||||
| -rw-r--r-- | doc/lispref/display.texi | 2 | ||||
| -rw-r--r-- | lisp/calc/calc-ext.el | 2 | ||||
| -rw-r--r-- | lisp/icomplete.el | 12 | ||||
| -rw-r--r-- | lisp/international/mule-cmds.el | 6 | ||||
| -rw-r--r-- | lisp/kmacro.el | 2 | ||||
| -rw-r--r-- | lisp/progmodes/c-ts-mode.el | 18 | ||||
| -rw-r--r-- | src/fileio.c | 4 | ||||
| -rw-r--r-- | test/lisp/progmodes/c-ts-mode-resources/indent.erts | 2 |
11 files changed, 42 insertions, 28 deletions
diff --git a/admin/notes/emba b/admin/notes/emba index 2e61ec49ae5..59cbe687f95 100644 --- a/admin/notes/emba +++ b/admin/notes/emba | |||
| @@ -89,7 +89,7 @@ As usual in GitLab, the tests run in containers, which could be | |||
| 89 | applied also locally. Unfortunately, the Emba container registry, | 89 | applied also locally. Unfortunately, the Emba container registry, |
| 90 | emba.gnu.org:5050, is not accessible publicly. Instead, the container | 90 | emba.gnu.org:5050, is not accessible publicly. Instead, the container |
| 91 | images must be build locally. Change the current directory to a | 91 | images must be build locally. Change the current directory to a |
| 92 | recent Emacs branch, and apply the command | 92 | recent Emacs branch (not a worktree), and apply the command |
| 93 | 93 | ||
| 94 | docker build --target emacs-inotify --tag emacs-inotify \ | 94 | docker build --target emacs-inotify --tag emacs-inotify \ |
| 95 | -f test/infra/Dockerfile.emba . | 95 | -f test/infra/Dockerfile.emba . |
diff --git a/doc/emacs/mini.texi b/doc/emacs/mini.texi index 8a13cabb837..7e48a02711a 100644 --- a/doc/emacs/mini.texi +++ b/doc/emacs/mini.texi | |||
| @@ -981,10 +981,14 @@ action with Emacs until you have submitted the password. | |||
| 981 | backwards, removing the last character entered. @kbd{C-u} deletes | 981 | backwards, removing the last character entered. @kbd{C-u} deletes |
| 982 | everything you have typed so far. @kbd{C-g} quits the password prompt | 982 | everything you have typed so far. @kbd{C-g} quits the password prompt |
| 983 | (@pxref{Quitting}). @kbd{C-y} inserts the current kill into the | 983 | (@pxref{Quitting}). @kbd{C-y} inserts the current kill into the |
| 984 | password (@pxref{Killing}). You may type either @key{RET} or | 984 | password (@pxref{Killing}). @key{TAB} toggles the visibility of the |
| 985 | @key{ESC} to submit the password. Any other self-inserting character | 985 | password. You may type either @key{RET} or @key{ESC} to submit the |
| 986 | key inserts the associated character into the password, and all other | 986 | password. Any other self-inserting character key inserts the associated |
| 987 | input is ignored. | 987 | character into the password, and all other input is ignored. |
| 988 | |||
| 989 | There is also an icon at the front of the mode line indicating the | ||
| 990 | password visibility. Clicking @kbd{mouse-1} on it toggles the password | ||
| 991 | visibility as well. | ||
| 988 | 992 | ||
| 989 | @node Yes or No Prompts | 993 | @node Yes or No Prompts |
| 990 | @section Yes or No Prompts | 994 | @section Yes or No Prompts |
diff --git a/doc/emacs/search.texi b/doc/emacs/search.texi index f23dc1fdb51..af069bbe194 100644 --- a/doc/emacs/search.texi +++ b/doc/emacs/search.texi | |||
| @@ -807,21 +807,21 @@ look up, using the word at point as the default, then asks the @sc{dict} | |||
| 807 | server to provide the definitions of that word in one or more | 807 | server to provide the definitions of that word in one or more |
| 808 | dictionaries. By default, the command first tries to connect to the | 808 | dictionaries. By default, the command first tries to connect to the |
| 809 | @sc{dict} server installed on the local host, and if that fails, it | 809 | @sc{dict} server installed on the local host, and if that fails, it |
| 810 | tries @file{dict.org} after your confirmation; customize the variable | 810 | tries @file{dict.org} after asking for confirmation; customize the variable |
| 811 | @code{dictionary-server} to specify, as a string, the URL of a single | 811 | @code{dictionary-server} to specify, as a string, the URL of a single |
| 812 | server to use (use @samp{localhost} if you want to query only the local | 812 | server to use (use @samp{localhost} if you want to query only the local |
| 813 | server). Normally, @code{dictionary-search} tells the server to look up | 813 | server). Normally, @code{dictionary-search} tells the server to look up |
| 814 | the word in all the dictionaries available to the server, but if you | 814 | the word in all the dictionaries available to the server, but if you |
| 815 | invoke the command with a prefix argument, it will prompt for a single | 815 | invoke the command with a prefix argument, it will prompt for a single |
| 816 | dictionary to look. The list of dictionaries available to a server can | 816 | dictionary to use. The list of dictionaries available to a server can |
| 817 | be displayed by pressing the @samp{Select dictionary} button shown in | 817 | be displayed by pressing the @samp{Select dictionary} button shown in |
| 818 | the @file{*Dictionary*} buffer, described below. | 818 | the @file{*Dictionary*} buffer, described below. |
| 819 | 819 | ||
| 820 | First time you use @code{dictionary-search}, it creates a new | 820 | The first time you use @code{dictionary-search}, it creates a new |
| 821 | @file{*Dictionary*} buffer and turns on a special mode in it. The | 821 | @file{*Dictionary*} buffer and turns on a special mode in it. The |
| 822 | buffer shows buttons for selecting a dictionary, searching a definition | 822 | buffer shows buttons for selecting a dictionary, searching a definition |
| 823 | of another word, etc. Subsequent @code{dictionary-search} commands | 823 | of another word, etc. Subsequent @code{dictionary-search} commands |
| 824 | reuse this buffer. To create another such buffer (e.g., too look up | 824 | reuse this buffer. To create another such buffer (e.g., to look up |
| 825 | other words, perhaps in another dictionary), type @w{@kbd{M-x dictionary | 825 | other words, perhaps in another dictionary), type @w{@kbd{M-x dictionary |
| 826 | @key{RET}}}. | 826 | @key{RET}}}. |
| 827 | 827 | ||
diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi index e19354ec107..d5de08a5c6e 100644 --- a/doc/lispref/display.texi +++ b/doc/lispref/display.texi | |||
| @@ -2769,7 +2769,7 @@ Draw a box with lines of width 1, in the foreground color. | |||
| 2769 | Draw a box with lines of width 1, in color @var{color}. | 2769 | Draw a box with lines of width 1, in color @var{color}. |
| 2770 | 2770 | ||
| 2771 | @item @code{(:line-width (@var{vwidth} . @var{hwidth}) :color @var{color} :style @var{style})} | 2771 | @item @code{(:line-width (@var{vwidth} . @var{hwidth}) :color @var{color} :style @var{style})} |
| 2772 | You can explicitly specify all aspects of the box with a plist on this | 2772 | You can explicitly specify all aspects of the box with a plist of this |
| 2773 | form. Any element in this plist can be omitted. | 2773 | form. Any element in this plist can be omitted. |
| 2774 | 2774 | ||
| 2775 | The values of @var{vwidth} and @var{hwidth} specify respectively the | 2775 | The values of @var{vwidth} and @var{hwidth} specify respectively the |
diff --git a/lisp/calc/calc-ext.el b/lisp/calc/calc-ext.el index 191149892a8..25d2492b277 100644 --- a/lisp/calc/calc-ext.el +++ b/lisp/calc/calc-ext.el | |||
| @@ -2069,7 +2069,7 @@ calc-kill calc-kill-region calc-yank)))) | |||
| 2069 | 2069 | ||
| 2070 | (defconst math-approx-sqrt-e | 2070 | (defconst math-approx-sqrt-e |
| 2071 | (math-read-number-simple "1.648721270700128146849") | 2071 | (math-read-number-simple "1.648721270700128146849") |
| 2072 | "An approximation for sqrt(3).") | 2072 | "An approximation for sqrt(e).") |
| 2073 | 2073 | ||
| 2074 | (math-defcache math-sqrt-e math-approx-sqrt-e | 2074 | (math-defcache math-sqrt-e math-approx-sqrt-e |
| 2075 | (math-add-float '(float 1 0) (math-exp-minus-1-raw '(float 5 -1)))) | 2075 | (math-add-float '(float 1 0) (math-exp-minus-1-raw '(float 5 -1)))) |
diff --git a/lisp/icomplete.el b/lisp/icomplete.el index 540ed2b5819..a79db644cab 100644 --- a/lisp/icomplete.el +++ b/lisp/icomplete.el | |||
| @@ -139,9 +139,17 @@ See `icomplete-delay-completions-threshold'." | |||
| 139 | :type 'integer) | 139 | :type 'integer) |
| 140 | 140 | ||
| 141 | (defcustom icomplete-in-buffer nil | 141 | (defcustom icomplete-in-buffer nil |
| 142 | "If non-nil, also use Icomplete when completing in non-mini buffers. | 142 | "If non-nil, use Icomplete when completing in buffers other than minibuffer. |
| 143 | This affects commands like `completion-in-region', but not commands | 143 | This affects commands like `completion-in-region', but not commands |
| 144 | that use their own completions setup." | 144 | that use their own completions setup. |
| 145 | |||
| 146 | If you would prefer to see only Icomplete's in-buffer display, but do | ||
| 147 | not want the \"*Completions*\" buffer to pop up in those cases, add | ||
| 148 | this advice to your init file: | ||
| 149 | |||
| 150 | (advice-add \\='completion-at-point | ||
| 151 | :after #\\='minibuffer-hide-completions) | ||
| 152 | " | ||
| 145 | :type 'boolean) | 153 | :type 'boolean) |
| 146 | 154 | ||
| 147 | (defcustom icomplete-minibuffer-setup-hook nil | 155 | (defcustom icomplete-minibuffer-setup-hook nil |
diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el index 7d589431acc..cefb6ddf9da 100644 --- a/lisp/international/mule-cmds.el +++ b/lisp/international/mule-cmds.el | |||
| @@ -737,7 +737,7 @@ DEFAULT is the coding system to use by default in the query." | |||
| 737 | (format "string \"%s\"." from) | 737 | (format "string \"%s\"." from) |
| 738 | (format-message "buffer `%s'." bufname))) | 738 | (format-message "buffer `%s'." bufname))) |
| 739 | (insert | 739 | (insert |
| 740 | "These default coding systems were tried to encode" | 740 | "These default coding systems were tried to safely encode" |
| 741 | (if (stringp from) | 741 | (if (stringp from) |
| 742 | (concat " \"" (if (> (length from) 10) | 742 | (concat " \"" (if (> (length from) 10) |
| 743 | (concat (substring from 0 10) "...\"") | 743 | (concat (substring from 0 10) "...\"") |
| @@ -758,9 +758,9 @@ e.g., for sending an email message.\n ") | |||
| 758 | (insert (if rejected "The other coding systems" | 758 | (insert (if rejected "The other coding systems" |
| 759 | "However, each of them") | 759 | "However, each of them") |
| 760 | (substitute-command-keys | 760 | (substitute-command-keys |
| 761 | " encountered characters it couldn't encode:\n")) | 761 | " encountered characters it couldn't encode safely:\n")) |
| 762 | (dolist (coding unsafe) | 762 | (dolist (coding unsafe) |
| 763 | (insert (format " %s cannot encode these:" (car coding))) | 763 | (insert (format " %s cannot safely encode these:" (car coding))) |
| 764 | (let ((i 0) | 764 | (let ((i 0) |
| 765 | (func1 | 765 | (func1 |
| 766 | (lambda (bufname pos) | 766 | (lambda (bufname pos) |
diff --git a/lisp/kmacro.el b/lisp/kmacro.el index 50ff875de52..6d43a3f680c 100644 --- a/lisp/kmacro.el +++ b/lisp/kmacro.el | |||
| @@ -1576,7 +1576,7 @@ To customize possible responses, change the \"bindings\" in | |||
| 1576 | ,(format "%d" cnt) | 1576 | ,(format "%d" cnt) |
| 1577 | ,fmt | 1577 | ,fmt |
| 1578 | ,(format fmt cnt) | 1578 | ,(format fmt cnt) |
| 1579 | ,(format-kbd-macro (kmacro--keys km))]))) | 1579 | ,(format-kbd-macro (kmacro--keys km) 1)]))) |
| 1580 | (kmacro-menu--kmacros)) | 1580 | (kmacro-menu--kmacros)) |
| 1581 | kmacro-menu--deletion-flags nil | 1581 | kmacro-menu--deletion-flags nil |
| 1582 | kmacro-menu--marks nil) | 1582 | kmacro-menu--marks nil) |
diff --git a/lisp/progmodes/c-ts-mode.el b/lisp/progmodes/c-ts-mode.el index 3f6a7422aa0..0c2da768833 100644 --- a/lisp/progmodes/c-ts-mode.el +++ b/lisp/progmodes/c-ts-mode.el | |||
| @@ -85,6 +85,7 @@ | |||
| 85 | (declare-function treesit-node-prev-sibling "treesit.c") | 85 | (declare-function treesit-node-prev-sibling "treesit.c") |
| 86 | (declare-function treesit-node-first-child-for-pos "treesit.c") | 86 | (declare-function treesit-node-first-child-for-pos "treesit.c") |
| 87 | (declare-function treesit-node-next-sibling "treesit.c") | 87 | (declare-function treesit-node-next-sibling "treesit.c") |
| 88 | (declare-function treesit-node-eq "treesit.c") | ||
| 88 | (declare-function treesit-query-compile "treesit.c") | 89 | (declare-function treesit-query-compile "treesit.c") |
| 89 | 90 | ||
| 90 | ;;; Custom variables | 91 | ;;; Custom variables |
| @@ -335,16 +336,17 @@ characters of the current line." | |||
| 335 | ((or "#elif" "#else") | 336 | ((or "#elif" "#else") |
| 336 | (setq prev-sibling (treesit-node-prev-sibling | 337 | (setq prev-sibling (treesit-node-prev-sibling |
| 337 | (treesit-node-parent prev-sibling) t))) | 338 | (treesit-node-parent prev-sibling) t))) |
| 338 | ;; If the start of the previous sibling isn't at the | 339 | ;; If the start of the previous sibling isn't at the beginning |
| 339 | ;; beginning of a line, something's probably not quite | 340 | ;; of a line, something's probably not quite right, go a step |
| 340 | ;; right, go a step further. (E.g., comment after a | 341 | ;; further. (E.g., comment after a statement.) If the |
| 341 | ;; statement.) If the previous sibling is the first named | 342 | ;; previous sibling is the first named node, then anchor to |
| 342 | ;; node then anchor to that, e.g. when returning an aggregate | 343 | ;; that, e.g. when returning an aggregate and starting the |
| 343 | ;; and starting the items on the same line as {. | 344 | ;; items on the same line as {. |
| 344 | (_ (goto-char (treesit-node-start prev-sibling)) | 345 | (_ (goto-char (treesit-node-start prev-sibling)) |
| 345 | (if (or (looking-back (rx bol (* whitespace)) | 346 | (if (or (looking-back (rx bol (* whitespace)) |
| 346 | (line-beginning-position))) | 347 | (line-beginning-position)) |
| 347 | (null (treesit-node-prev-sibling prev-sibling t)) | 348 | (treesit-node-eq (treesit-node-child parent 0 t) |
| 349 | prev-sibling)) | ||
| 348 | (setq continue nil) | 350 | (setq continue nil) |
| 349 | (setq prev-sibling | 351 | (setq prev-sibling |
| 350 | (treesit-node-prev-sibling prev-sibling))))))) | 352 | (treesit-node-prev-sibling prev-sibling))))))) |
diff --git a/src/fileio.c b/src/fileio.c index 291c316102f..94bb496f22c 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -3787,8 +3787,8 @@ DEFUN ("unix-sync", Funix_sync, Sunix_sync, 0, 0, "", | |||
| 3787 | 3787 | ||
| 3788 | DEFUN ("file-newer-than-file-p", Ffile_newer_than_file_p, Sfile_newer_than_file_p, 2, 2, 0, | 3788 | DEFUN ("file-newer-than-file-p", Ffile_newer_than_file_p, Sfile_newer_than_file_p, 2, 2, 0, |
| 3789 | doc: /* Return t if file FILE1 is newer than file FILE2. | 3789 | doc: /* Return t if file FILE1 is newer than file FILE2. |
| 3790 | If FILE1 does not exist, the answer is nil; | 3790 | If FILE1 does not exist, the return value is nil; |
| 3791 | otherwise, if FILE2 does not exist, the answer is t. | 3791 | if FILE2 does not exist, the return value is t. |
| 3792 | For existing files, this compares their last-modified times. */) | 3792 | For existing files, this compares their last-modified times. */) |
| 3793 | (Lisp_Object file1, Lisp_Object file2) | 3793 | (Lisp_Object file1, Lisp_Object file2) |
| 3794 | { | 3794 | { |
diff --git a/test/lisp/progmodes/c-ts-mode-resources/indent.erts b/test/lisp/progmodes/c-ts-mode-resources/indent.erts index a13a74cf8b3..f97ceac61f5 100644 --- a/test/lisp/progmodes/c-ts-mode-resources/indent.erts +++ b/test/lisp/progmodes/c-ts-mode-resources/indent.erts | |||
| @@ -214,7 +214,7 @@ Name: Return Compund Literal | |||
| 214 | struct pair { int fst, snd; }; | 214 | struct pair { int fst, snd; }; |
| 215 | struct pair | 215 | struct pair |
| 216 | make_pair(int long_identifier_a[], int long_identifier_b[], | 216 | make_pair(int long_identifier_a[], int long_identifier_b[], |
| 217 | int offset_a, int offset_b) | 217 | int offset_a, int offset_b) |
| 218 | { | 218 | { |
| 219 | int base_offset = 10; | 219 | int base_offset = 10; |
| 220 | return (struct pair) { long_identifier_a[base_offset + offset_b], | 220 | return (struct pair) { long_identifier_a[base_offset + offset_b], |