Merge from origin/emacs-29

bf50aa38f9 Improve documentation of case-conversion commands
225b426f25 ; Fix typos
This commit is contained in:
Eli Zaretskii 2024-06-01 08:34:43 -04:00
commit 22d9bbe284
13 changed files with 50 additions and 42 deletions

View file

@ -6427,7 +6427,7 @@
* lisp/net/tramp-fuse.el (tramp-fuse-mount-timeout): New defconst. * lisp/net/tramp-fuse.el (tramp-fuse-mount-timeout): New defconst.
(tramp-fuse-mounted-p): Use it. Check for a file property instead (tramp-fuse-mounted-p): Use it. Check for a file property instead
of a connection property. of a connection property.
(tramp-fuse-unmount): Dito. (tramp-fuse-unmount): Ditto.
* lisp/net/tramp-sshfs.el (tramp-sshfs-maybe-open-connection): * lisp/net/tramp-sshfs.el (tramp-sshfs-maybe-open-connection):
Do not trust existence of a process, whether the volume is mounted. Do not trust existence of a process, whether the volume is mounted.
@ -11209,7 +11209,7 @@
(flymake--publish-diagnostics): Helper for flymake--handle-report. (flymake--publish-diagnostics): Helper for flymake--handle-report.
(flymake--mode-line-counter, flymake-show-diagnostic) (flymake--mode-line-counter, flymake-show-diagnostic)
(flymake--diagnostics-buffer-entries): Use (flymake--diagnostics-buffer-entries): Use
flymake-diagnostic-buffer, flymake-diagonstic-type, flymake-diagnostic-buffer, flymake-diagnostic-type,
flymake-diagnostic-beg. flymake-diagnostic-beg.
2021-09-14 João Távora <joaotavora@gmail.com> 2021-09-14 João Távora <joaotavora@gmail.com>

View file

@ -1319,7 +1319,7 @@
Fix c-ts-mode indentation (bug#67357) Fix c-ts-mode indentation (bug#67357)
1. In a compund_statement, we indent the first sibling against the 1. In a compound_statement, we indent the first sibling against the
parent, and the rest siblings against their previous sibling. But parent, and the rest siblings against their previous sibling. But
this strategy falls apart when the first sibling is not on its own this strategy falls apart when the first sibling is not on its own
line. We should regard the first sibling that is on its own line as line. We should regard the first sibling that is on its own line as
@ -11284,7 +11284,7 @@
Add array_initializer to java-ts-mode Add array_initializer to java-ts-mode
Indent strings inside arrray_initializer one step: Indent strings inside array_initializer one step:
public class Java { public class Java {
void foo() { void foo() {
@ -16406,7 +16406,7 @@
config-format[1] through a new major-mode: toml-ts-mode. config-format[1] through a new major-mode: toml-ts-mode.
I've read through the full spec[2], and from what I can see this I've read through the full spec[2], and from what I can see this
major-mode should provide correct syntax-highligting for every sort of major-mode should provide correct syntax highlighting for every sort of
config-declaration which adheres to the specification. config-declaration which adheres to the specification.
Besides that it also adds support for imenu and basic tree-sitter Besides that it also adds support for imenu and basic tree-sitter
@ -26568,7 +26568,7 @@
option. option.
(package-vc-archive-spec-alist): Add new variable to store the (package-vc-archive-spec-alist): Add new variable to store the
contents of 'elpa-packages' for each archive. contents of 'elpa-packages' for each archive.
(pacakge-vc-desc->spec): Add function to query package specifications. (package-vc-desc->spec): Add function to query package specifications.
(package-vc--read-archive-data): Add a 'package-read-archive-hook' (package-vc--read-archive-data): Add a 'package-read-archive-hook'
implementation. implementation.
(package-vc--download-and-read-archives): Add a (package-vc--download-and-read-archives): Add a
@ -34210,7 +34210,7 @@
2022-09-15 Mattias Engdegård <mattiase@acm.org> 2022-09-15 Mattias Engdegård <mattiase@acm.org>
Include nil as valid wallpaper-commmand Include nil as valid wallpaper-command
* lisp/image/wallpaper.el (wallpaper-command): * lisp/image/wallpaper.el (wallpaper-command):
Include nil in the type since that is a valid value for the variable, Include nil in the type since that is a valid value for the variable,
@ -44103,7 +44103,7 @@
* src/bytecode.c (exec_byte_code): * src/bytecode.c (exec_byte_code):
* lisp/emacs-lisp/comp.el (comp-limplify-lap-inst): * lisp/emacs-lisp/comp.el (comp-limplify-lap-inst):
* lisp/emacs-lisp/bytecomp.el: Restore the statu quo ante. * lisp/emacs-lisp/bytecomp.el: Restore the status quo ante.
* etc/NEWS: Remove the entry about the new optional argument. * etc/NEWS: Remove the entry about the new optional argument.
@ -52809,7 +52809,7 @@
/emacs/configure: line 18002: syntax error near unexpected token `;;' /emacs/configure: line 18002: syntax error near unexpected token `;;'
/emacs/configure: line 18002: ` ;;' /emacs/configure: line 18002: ` ;;'
That is due to under-quoting of AC_CHECK_LIB's second argument, which led to That is due to under-quoting of AC_CHECK_LIB's second argument, which led to
the comma in an embedded string being interpreted as paramater-delimiting. the comma in an embedded string being interpreted as parameter-delimiting.
* configure.ac: Quote the second arg of each AC_CHECK_LIB invocation. * configure.ac: Quote the second arg of each AC_CHECK_LIB invocation.
(Bug#56272) (Bug#56272)
@ -62459,7 +62459,7 @@
up-to-date) until the next invocation of 'eglot-flymake-backend'. up-to-date) until the next invocation of 'eglot-flymake-backend'.
For now, this doesn't affect Flymake "list-only" diagnostics. Those For now, this doesn't affect Flymake "list-only" diagnostics. Those
are reported via the 'flymake-list-only-diagonstics' variable and are reported via the 'flymake-list-only-diagnostics' variable and
are always communicated immediately to it. are always communicated immediately to it.
* eglot.el: (eglot-handle-notification * eglot.el: (eglot-handle-notification
@ -66876,7 +66876,7 @@
(eshell-get-delimited-modifier-argument): New functions... (eshell-get-delimited-modifier-argument): New functions...
(eshell-pred-user-or-group, eshell-pred-file-time) (eshell-pred-user-or-group, eshell-pred-file-time)
(eshell-pred-file-links, eshell-pred-file-size) (eshell-pred-file-links, eshell-pred-file-size)
(eshell-pred-substitute, eshell-join-memebers, eshell-split-members): (eshell-pred-substitute, eshell-join-members, eshell-split-members):
... and use them here. ... and use them here.
(eshell-include-members): Pass 'mod-char' and use (eshell-include-members): Pass 'mod-char' and use
'eshell-get-delimited-modifier-argument'. 'eshell-get-delimited-modifier-argument'.
@ -74587,7 +74587,7 @@
2022-03-24 Jimmy Aguilar Mena <spacibba@aol.com> 2022-03-24 Jimmy Aguilar Mena <spacibba@aol.com>
Merge 'completion-auto-select new value secont-tab' Merge 'completion-auto-select new value second-tab'
This includes the second-tab value for completion-auto-select and This includes the second-tab value for completion-auto-select and
documentation related. documentation related.
@ -82366,7 +82366,7 @@
2022-02-06 Wang Chunye <chunywan@xilinx.com> (tiny change) 2022-02-06 Wang Chunye <chunywan@xilinx.com> (tiny change)
optimization: constand folding for read-kbd-macro optimization: constant folding for read-kbd-macro
to boost startup performance, it is better to avoid invoking to boost startup performance, it is better to avoid invoking
`read-kbd-macro` at run time which requires 'cl-lib. `read-kbd-macro` at run time which requires 'cl-lib.
@ -83611,7 +83611,7 @@
symbols since the rest is now available from `function-history`. symbols since the rest is now available from `function-history`.
* src/eval.c (un_autoload): Adjust accordingly. * src/eval.c (un_autoload): Adjust accordingly.
* src/lread.c (load-history): Udate docstring. * src/lread.c (load-history): Update docstring.
* lisp/loadhist.el (loadhist-unload-filename): New var. * lisp/loadhist.el (loadhist-unload-filename): New var.
(unload-feature): Bind it. (unload-feature): Bind it.
@ -102240,7 +102240,7 @@
2021-11-06 Lars Ingebrigtsen <larsi@gnus.org> 2021-11-06 Lars Ingebrigtsen <larsi@gnus.org>
Remove too-agressive window refresh in the hourglass code Remove too aggressive window refresh in the hourglass code
* src/xterm.c (x_show_hourglass): Don't force a spurious refresh * src/xterm.c (x_show_hourglass): Don't force a spurious refresh
(bug#51649). (bug#51649).
@ -110715,7 +110715,7 @@
2020-11-21 Yuuki Harano <masm+github@masm11.me> 2020-11-21 Yuuki Harano <masm+github@masm11.me>
Implement Scroll-bar-forground and scroll-bar-background Implement scroll-bar-foreground and scroll-bar-background
* src/pgtkterm.h (struct pgtk_output): * src/pgtkterm.h (struct pgtk_output):
@ -112654,7 +112654,7 @@
Rework and correct major part of xref glue code Rework and correct major part of xref glue code
See comments of https://github.com/joaotavora/eglot/pull/314. Up to See comments of https://github.com/joaotavora/eglot/pull/314. Up to
now, xref-backend-indentifier-completion-table was a gross hack that now, xref-backend-identifier-completion-table was a gross hack that
only worked sometimes. It relied on some fugly gymnastics to cache a only worked sometimes. It relied on some fugly gymnastics to cache a
response from :textDocument/documentSymbol and somehow used that response from :textDocument/documentSymbol and somehow used that
information to build a completion table. But it doesn't work well. information to build a completion table. But it doesn't work well.
@ -113087,12 +113087,12 @@
Merge pull request from stribb/master Merge pull request from stribb/master
Add a line of documentation for (use-pacakage ... :hook). Add a line of documentation for (use-package ... :hook).
GitHub-reference: https://github.com/jwiegley/use-package/issues/759 GitHub-reference: https://github.com/jwiegley/use-package/issues/759
2019-04-04 Andrew Stribblehill <stribb@gmail.com> (tiny change) 2019-04-04 Andrew Stribblehill <stribb@gmail.com> (tiny change)
Add a line of documentation for (use-pacakage ... :hook) Add a line of documentation for (use-package ... :hook)
2019-02-13 João Távora <joaotavora@gmail.com> 2019-02-13 João Távora <joaotavora@gmail.com>
@ -113770,7 +113770,7 @@
Fix potential security issue fontifying lsp doc Fix potential security issue fontifying lsp doc
Previously, a server could mistankely or maliciously call *-mode Previously, a server could mistakenly or maliciously call *-mode
functions by in the response to a completion or hover request, functions by in the response to a completion or hover request,
specifically in the :documentation field of the response. specifically in the :documentation field of the response.
@ -115537,7 +115537,7 @@
Also cquery sometimes send 0-length ranges upon which we now fallback Also cquery sometimes send 0-length ranges upon which we now fallback
to flymake-diag-region. to flymake-diag-region.
Finally, in eglot-eldoc-funciton, the previous hack of calling the Finally, in eglot-eldoc-function, the previous hack of calling the
eglot--hover-info outside of the when-buffer-window macrolet contained eglot--hover-info outside of the when-buffer-window macrolet contained
a bug. It must be called in the correct buffer. Revert the hack and do a bug. It must be called in the correct buffer. Revert the hack and do
it by querying from eglot.el if ert is running tests. it by querying from eglot.el if ert is running tests.
@ -119347,7 +119347,7 @@
(use-package foopkg :bind "<some-key>") (use-package foopkg :bind "<some-key>")
intendes to bind <some-key> to 'foopkg command. intends to bind <some-key> to 'foopkg command.
2016-10-31 Noam Postavsky <npostavs@gmail.com> 2016-10-31 Noam Postavsky <npostavs@gmail.com>

View file

@ -85,7 +85,7 @@ permanent redirects, and changes go live more-or-less straight away.
This method is useful for making cross-references to non-Emacs manuals This method is useful for making cross-references to non-Emacs manuals
work; see manual/.htaccess in the repository. You only have to add a work; see manual/.htaccess in the repository. You only have to add a
single redirect for every given external manual, you can redirect single redirect for every given external manual, you can redirect
html_node to hmtl_node and html_mono to html_mono. html_node to html_node and html_mono to html_mono.
* Why CVS? * Why CVS?

View file

@ -843,10 +843,17 @@ range of text to upper case or to lower case.
@table @kbd @table @kbd
@item M-l @item M-l
Convert following word to lower case (@code{downcase-word}). Convert following word to lower case (@code{downcase-word}).
@item M-- M-l
Convert previous/last word to lower case. Note: @kbd{Meta--} is
Meta-minus.
@item M-u @item M-u
Convert following word to upper case (@code{upcase-word}). Convert following word to upper case (@code{upcase-word}).
@item M-- M-u
Convert previous/last last word to all upper case.
@item M-c @item M-c
Capitalize the following word (@code{capitalize-word}). Capitalize the following word (@code{capitalize-word}).
@item M-- M-c
Convert previous/last last word to lower case with capital initial.
@item C-x C-l @item C-x C-l
Convert region to lower case (@code{downcase-region}). Convert region to lower case (@code{downcase-region}).
@item C-x C-u @item C-x C-u
@ -873,10 +880,11 @@ from all upper case to mixed case, because you can move through the
text using @kbd{M-l}, @kbd{M-u} or @kbd{M-c} on each word as text using @kbd{M-l}, @kbd{M-u} or @kbd{M-c} on each word as
appropriate, occasionally using @kbd{M-f} instead to skip a word. appropriate, occasionally using @kbd{M-f} instead to skip a word.
When given a negative argument, the word case conversion commands apply When given a negative argument, as in @w{@kbd{C-u - 5 M-c}}, the
to the appropriate number of words before point, but do not move point. word case-conversion commands apply to the appropriate number of words
This is convenient when you have just typed a word in the wrong case: you before point, but do not move point. This is convenient when you have
can give the case conversion command and continue typing. just typed a word in the wrong case: you can give the case conversion
command, like @kbd{M-- M-u}, and continue typing.
If a word case conversion command is given in the middle of a word, If a word case conversion command is given in the middle of a word,
it applies only to the part of the word which follows point. (This is it applies only to the part of the word which follows point. (This is

View file

@ -337,7 +337,7 @@ doubling it up."
(defun eshell-convertible-to-number-p (string) (defun eshell-convertible-to-number-p (string)
"Return non-nil if STRING can be converted to a number. "Return non-nil if STRING can be converted to a number.
If `eshell-convert-numeric-aguments', always return nil." If `eshell-convert-numeric-arguments', always return nil."
(and eshell-convert-numeric-arguments (and eshell-convert-numeric-arguments
(string-match (string-match
(concat "\\`\\s-*" eshell-number-regexp "\\s-*\\'") (concat "\\`\\s-*" eshell-number-regexp "\\s-*\\'")
@ -346,7 +346,7 @@ If `eshell-convert-numeric-aguments', always return nil."
(defun eshell-convert-to-number (string) (defun eshell-convert-to-number (string)
"Try to convert STRING to a number. "Try to convert STRING to a number.
If STRING doesn't look like a number (or If STRING doesn't look like a number (or
`eshell-convert-numeric-aguments' is nil), just return STRING `eshell-convert-numeric-arguments' is nil), just return STRING
unchanged." unchanged."
(if (eshell-convertible-to-number-p string) (if (eshell-convertible-to-number-p string)
(string-to-number string) (string-to-number string)
@ -361,7 +361,7 @@ trailing newlines removed. Otherwise, this behaves as follows:
* Split multiline strings by line. * Split multiline strings by line.
* If `eshell-convert-numeric-aguments' is non-nil and every line * If `eshell-convert-numeric-arguments' is non-nil and every line
of output looks like a number, convert them to numbers." of output looks like a number, convert them to numbers."
(cond (cond
((not (stringp string)) ((not (stringp string))

View file

@ -1627,7 +1627,7 @@ Assume MODE (see `filesets-entry-mode'), if provided."
(cons entry (filesets-ingroup-cache-get entry)))) (cons entry (filesets-ingroup-cache-get entry))))
(:tree (:tree
;; Warning: ENTRY here could be of at least two ;; Warning: ENTRY here could be of at least two
;; differente forms, either ;; different forms, either
;; (NAME (:tree DIRECTORY PATTERN)) ;; (NAME (:tree DIRECTORY PATTERN))
;; or ;; or
;; (DIRECTORY PATTERN) ;; (DIRECTORY PATTERN)

View file

@ -37,7 +37,7 @@
;; the hooks available for customizing it, see the file comint.el. ;; the hooks available for customizing it, see the file comint.el.
;; For further information on shell mode, see the comments below. ;; For further information on shell mode, see the comments below.
;; Needs fixin: ;; Needs fixing:
;; When sending text from a source file to a subprocess, the process-mark can ;; When sending text from a source file to a subprocess, the process-mark can
;; move off the window, so you can lose sight of the process interactions. ;; move off the window, so you can lose sight of the process interactions.
;; Maybe I should ensure the process mark is in the window when I send ;; Maybe I should ensure the process mark is in the window when I send

View file

@ -4523,7 +4523,7 @@ a shell (with its need to quote arguments)."
(dired-get-filename nil t))))) (dired-get-filename nil t)))))
(and filename (file-relative-name filename)))) (and filename (file-relative-name filename))))
nil nil
;; FIXME: the following argument is always ignored by 'shell-commnd', ;; FIXME: the following argument is always ignored by 'shell-command',
;; when the command is invoked asynchronously, except, perhaps, when ;; when the command is invoked asynchronously, except, perhaps, when
;; 'default-directory' is remote. ;; 'default-directory' is remote.
shell-command-default-error-buffer)) shell-command-default-error-buffer))

View file

@ -4134,7 +4134,7 @@ cache buffer into the designated cell in the table buffer."
(currentp (equal cell-coord current-cell-coordinate))) (currentp (equal cell-coord current-cell-coordinate)))
(if currentp (table--goto-coordinate current-coordinate) (if currentp (table--goto-coordinate current-coordinate)
(table--goto-coordinate (car cell-coord))) (table--goto-coordinate (car cell-coord)))
(table-recognize-cell 'froce) (table-recognize-cell 'force)
(let ((table-inhibit-update t)) (let ((table-inhibit-update t))
(table-with-cache-buffer (table-with-cache-buffer
(let ((sticky (and currentp (let ((sticky (and currentp
@ -4147,7 +4147,7 @@ cache buffer into the designated cell in the table buffer."
(table--update-cell 'now) (table--update-cell 'now)
)) ))
(table--goto-coordinate current-coordinate) (table--goto-coordinate current-coordinate)
(table-recognize-cell 'froce))))) (table-recognize-cell 'force)))))
(defun table--update-cell-heightened (&optional now) (defun table--update-cell-heightened (&optional now)
"Update the contents of the cells that are affected by heightening operation." "Update the contents of the cells that are affected by heightening operation."
@ -4176,7 +4176,7 @@ cache buffer into the designated cell in the table buffer."
(currentp (equal cell-coord current-cell-coordinate))) (currentp (equal cell-coord current-cell-coordinate)))
(if currentp (table--goto-coordinate current-coordinate) (if currentp (table--goto-coordinate current-coordinate)
(table--goto-coordinate (car cell-coord))) (table--goto-coordinate (car cell-coord)))
(table-recognize-cell 'froce) (table-recognize-cell 'force)
(let ((table-inhibit-update t)) (let ((table-inhibit-update t))
(table-with-cache-buffer (table-with-cache-buffer
(let ((sticky (and currentp (let ((sticky (and currentp
@ -4189,7 +4189,7 @@ cache buffer into the designated cell in the table buffer."
(table--update-cell 'now) (table--update-cell 'now)
)) ))
(table--goto-coordinate current-coordinate) (table--goto-coordinate current-coordinate)
(table-recognize-cell 'froce))))) (table-recognize-cell 'force)))))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; ;;

View file

@ -2738,7 +2738,7 @@ fixed, visit it in a buffer."
(?- . (left-fringe diff-fringe-del diff-indicator-removed)) (?- . (left-fringe diff-fringe-del diff-indicator-removed))
(?! . (left-fringe diff-fringe-rep diff-indicator-changed)) (?! . (left-fringe diff-fringe-rep diff-indicator-changed))
(?\s . (left-fringe diff-fringe-nul fringe))))))))) (?\s . (left-fringe diff-fringe-nul fringe)))))))))
;; Mimicks the output of Magit's diff. ;; Mimics the output of Magit's diff.
;; FIXME: This has only been tested with Git's diff output. ;; FIXME: This has only been tested with Git's diff output.
;; FIXME: Add support for Git's "rename from/to"? ;; FIXME: Add support for Git's "rename from/to"?
(while (re-search-forward "^diff " limit t) (while (re-search-forward "^diff " limit t)

View file

@ -430,7 +430,7 @@ w32font_encode_char (struct font *font, int c)
} }
/* w32 implementation of text_extents for font backend. /* w32 implementation of text_extents for font backend.
Perform the size computation of glyphs of FONT and fillin members Perform the size computation of glyphs of FONT and fill in members
of METRICS. The glyphs are specified by their glyph codes in of METRICS. The glyphs are specified by their glyph codes in
CODE (length NGLYPHS). Apparently metrics can be NULL, in this CODE (length NGLYPHS). Apparently metrics can be NULL, in this
case just return the overall width. */ case just return the overall width. */

View file

@ -54,7 +54,7 @@
(enable-theme 'test-icons-theme) (enable-theme 'test-icons-theme)
(should (equal (icon-string 'icon-test1) "<")))) (should (equal (icon-string 'icon-test1) "<"))))
(ert-deftest test-icon-inheretance () (ert-deftest test-icon-inheritance ()
(let ((icon-preference '(image emoji symbol text))) (let ((icon-preference '(image emoji symbol text)))
(should (equal (icon-string 'icon-test2) ">"))) (should (equal (icon-string 'icon-test2) ">")))
(let ((icon-preference '(text))) (let ((icon-preference '(text)))

View file

@ -7570,12 +7570,12 @@ always located at the beginning of buffer."
(forward-to-word 1) (forward-to-word 1)
(should (eq (face-at-point) font-lock-keyword-face))))) (should (eq (face-at-point) font-lock-keyword-face)))))
(ert-deftest python-ts-mode-named-assignement-face-1 () (ert-deftest python-ts-mode-named-assignment-face-1 ()
(python-ts-tests-with-temp-buffer (python-ts-tests-with-temp-buffer
"var := 3" "var := 3"
(should (eq (face-at-point) font-lock-variable-name-face)))) (should (eq (face-at-point) font-lock-variable-name-face))))
(ert-deftest python-ts-mode-assignement-face-2 () (ert-deftest python-ts-mode-assignment-face-2 ()
(python-ts-tests-with-temp-buffer (python-ts-tests-with-temp-buffer
"var, *rest = call()" "var, *rest = call()"
(dolist (test '("var" "rest")) (dolist (test '("var" "rest"))