aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYuan Fu2025-03-13 20:18:03 -0700
committerYuan Fu2025-03-13 20:18:03 -0700
commitf2f1fb7fe00d6d69fc081f423c1f9dff0f618e36 (patch)
treea34b67556422221faf26d24c95e0a93d8dfed961
parent89441e12e2a25d43d1d5567ac356a7ecb8193063 (diff)
parentdefc55bb6f954276a1cb9e3b5c50251ba5e5b40f (diff)
downloademacs-f2f1fb7fe00d6d69fc081f423c1f9dff0f618e36.tar.gz
emacs-f2f1fb7fe00d6d69fc081f423c1f9dff0f618e36.zip
Merge from origin/emacs-30
defc55bb6f9 Fix treesit-parser-create behavior regarding indirect buf... 20ac26e6751 ; Fix with-delayed-message docstring metavars. 04034cd9ce7 Fix 'dired-movement-style' in Dired when subdirs are shown f8443dffc1f ; * lisp/register.el (register-use-preview): Doc fix (bug... f729828bcfb ; Add texinfo reference to GNU Coding Standards. a6abb88fdcc ; * lisp/files.el (executable-find): Doc fix. # Conflicts: # src/treesit.c
-rw-r--r--doc/emacs/trouble.texi7
-rw-r--r--lisp/dired.el10
-rw-r--r--lisp/files.el6
-rw-r--r--lisp/register.el4
-rw-r--r--lisp/subr.el2
-rw-r--r--test/lisp/vc/diff-mode-resources/git.patch2
6 files changed, 18 insertions, 13 deletions
diff --git a/doc/emacs/trouble.texi b/doc/emacs/trouble.texi
index 2211369b121..45f15c7dd0d 100644
--- a/doc/emacs/trouble.texi
+++ b/doc/emacs/trouble.texi
@@ -1494,9 +1494,10 @@ the Emacs Lisp Reference Manual
1494@subsection Coding Standards 1494@subsection Coding Standards
1495@cindex coding standards for Emacs submissions 1495@cindex coding standards for Emacs submissions
1496 1496
1497Contributed code should follow the GNU Coding Standards 1497Contributed code should follow the GNU Coding Standards. This manual
1498@url{https://www.gnu.org/prep/standards/}. This may also be available 1498is available online at @url{https://www.gnu.org/prep/standards/}. It
1499in info on your system. 1499may also be available locally in Info on your system, see @pxref{Top,,,
1500standards, GNU Coding Standards}.
1500 1501
1501If it doesn't, we'll need to find someone to fix the code before we 1502If it doesn't, we'll need to find someone to fix the code before we
1502can use it. 1503can use it.
diff --git a/lisp/dired.el b/lisp/dired.el
index 24d76ae79be..68e1da13171 100644
--- a/lisp/dired.el
+++ b/lisp/dired.el
@@ -2935,15 +2935,19 @@ is controlled by `dired-movement-style'."
2935 (setq wrapped t)) 2935 (setq wrapped t))
2936 ;; `bounded': go back to the last non-empty line. 2936 ;; `bounded': go back to the last non-empty line.
2937 (dired-movement-style ; Either 'bounded or anything else non-nil. 2937 (dired-movement-style ; Either 'bounded or anything else non-nil.
2938 (while (and (dired-between-files) (not (zerop arg))) 2938 (while (and (dired-between-files)
2939 (not (dired-get-subdir))
2940 (not (zerop arg)))
2939 (funcall jumpfun (- moving-down)) 2941 (funcall jumpfun (- moving-down))
2940 ;; Point not moving means infinite loop. 2942 ;; Point not moving means infinite loop.
2941 (if (= old-position (point)) 2943 (if (= old-position (point))
2942 (setq arg 0) 2944 (setq arg 0)
2943 (setq old-position (point)))) 2945 (setq old-position (point))))
2944 ;; Encountered a boundary, so let's stop movement. 2946 ;; Encountered a boundary, so let's stop movement.
2945 (setq arg (if (dired-between-files) 0 moving-down))))) 2947 (setq arg (if (and (dired-between-files)
2946 (unless (dired-between-files) 2948 (not (dired-get-subdir)))
2949 0 moving-down)))))
2950 (unless (and (dired-between-files) (not (dired-get-subdir)))
2947 ;; Has moved to a non-empty line. This movement does 2951 ;; Has moved to a non-empty line. This movement does
2948 ;; make sense. 2952 ;; make sense.
2949 (decf arg moving-down)) 2953 (decf arg moving-down))
diff --git a/lisp/files.el b/lisp/files.el
index 6ae4d764f63..f85021f0d69 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -1310,9 +1310,9 @@ the value of the variable `exec-path'."
1310 1310
1311(defun executable-find (command &optional remote) 1311(defun executable-find (command &optional remote)
1312 "Search for COMMAND in `exec-path' and return the absolute file name. 1312 "Search for COMMAND in `exec-path' and return the absolute file name.
1313Return nil if COMMAND is not found anywhere in `exec-path'. If 1313Return nil if COMMAND is not found anywhere in `exec-path'.
1314REMOTE is non-nil, search on the remote host indicated by 1314If REMOTE is non-nil, search on a remote host if `default-directory' is
1315`default-directory' instead." 1315remote, otherwise search locally."
1316 (if (and remote (file-remote-p default-directory)) 1316 (if (and remote (file-remote-p default-directory))
1317 (let ((res (locate-file 1317 (let ((res (locate-file
1318 command 1318 command
diff --git a/lisp/register.el b/lisp/register.el
index 00f8caba67a..ad2abf7e4ea 100644
--- a/lisp/register.el
+++ b/lisp/register.el
@@ -130,11 +130,11 @@ description of the argument. The function to use is set according
130to the value of `register--read-with-preview-function'.") 130to the value of `register--read-with-preview-function'.")
131 131
132(defcustom register-use-preview 'traditional 132(defcustom register-use-preview 'traditional
133 "Whether to show register preview when modifying registers. 133 "Whether register commands show preview of registers with non-nil values.
134 134
135When set to t, show a preview buffer with navigation and highlighting. 135When set to t, show a preview buffer with navigation and highlighting.
136 136
137When set `insist', behave as with t, but allow exiting the minibuffer by 137When set to `insist', behave as with t, but allow exiting the minibuffer by
138pressing the register name a second time. For example, press \\`a' to 138pressing the register name a second time. For example, press \\`a' to
139select register \"a\", then press \\`a' again to exit the minibuffer. 139select register \"a\", then press \\`a' again to exit the minibuffer.
140 140
diff --git a/lisp/subr.el b/lisp/subr.el
index 689f6c362a9..10b7da3535b 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -7451,7 +7451,7 @@ not a list, return a one-element list containing OBJECT."
7451The MESSAGE form will be evaluated immediately, but the resulting 7451The MESSAGE form will be evaluated immediately, but the resulting
7452string will be displayed only if BODY takes longer than TIMEOUT seconds. 7452string will be displayed only if BODY takes longer than TIMEOUT seconds.
7453 7453
7454\(fn (timeout message) &rest body)" 7454\(fn (TIMEOUT MESSAGE) &rest BODY)"
7455 (declare (indent 1)) 7455 (declare (indent 1))
7456 `(funcall-with-delayed-message ,(car args) ,(cadr args) 7456 `(funcall-with-delayed-message ,(car args) ,(cadr args)
7457 (lambda () 7457 (lambda ()
diff --git a/test/lisp/vc/diff-mode-resources/git.patch b/test/lisp/vc/diff-mode-resources/git.patch
index 05ec90d105c..fdb586d37d3 100644
--- a/test/lisp/vc/diff-mode-resources/git.patch
+++ b/test/lisp/vc/diff-mode-resources/git.patch
@@ -47,5 +47,5 @@ index 9f6c5fe43e47eab441232e54456c5c2b06297b65..7b3f91a8b4ed923c8f43183276e3ab36
47 if __name__ == "__main__": 47 if __name__ == "__main__":
48 main() 48 main()
49 49
50-- 50--
512.40.0 512.40.0