aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorEli Zaretskii2025-08-16 14:41:41 +0300
committerEli Zaretskii2025-08-16 14:41:41 +0300
commiteb8d0d7afe39c827cd4e35e97cd2c8bf4dbdf73e (patch)
tree7e24056fdc430174e98fc5c498829c6dad52deb4 /lisp
parent4983985b80e853c4b85543478d1bb0eac248768f (diff)
parent3516479b58d9678def0310d951f0e3ed2acb68c6 (diff)
downloademacs-eb8d0d7afe39c827cd4e35e97cd2c8bf4dbdf73e.tar.gz
emacs-eb8d0d7afe39c827cd4e35e97cd2c8bf4dbdf73e.zip
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
Diffstat (limited to 'lisp')
-rw-r--r--lisp/emacs-lisp/cl-generic.el8
-rw-r--r--lisp/net/tramp-sh.el26
-rw-r--r--lisp/progmodes/executable.el2
3 files changed, 23 insertions, 13 deletions
diff --git a/lisp/emacs-lisp/cl-generic.el b/lisp/emacs-lisp/cl-generic.el
index d02d0d6c2a4..e821b15378b 100644
--- a/lisp/emacs-lisp/cl-generic.el
+++ b/lisp/emacs-lisp/cl-generic.el
@@ -230,9 +230,11 @@ SPECIALIZERS-FUNCTION takes as first argument a tag value TAG
230(defmacro cl-defgeneric (name args &rest options-and-methods) 230(defmacro cl-defgeneric (name args &rest options-and-methods)
231 "Create a generic function NAME. 231 "Create a generic function NAME.
232DOC-STRING is the base documentation for this class. A generic 232DOC-STRING is the base documentation for this class. A generic
233function has no body, as its purpose is to decide which method body 233function usually has no body, as its purpose is to decide which
234is appropriate to use. Specific methods are defined with `cl-defmethod'. 234method body is appropriate to use; ARGS are currently ignored if
235With this implementation the ARGS are currently ignored. 235there's no body. If BODY is present, it provides the default
236implementation.
237Specific implementation methods are defined with `cl-defmethod'.
236OPTIONS-AND-METHODS currently understands: 238OPTIONS-AND-METHODS currently understands:
237- (:documentation DOCSTRING) 239- (:documentation DOCSTRING)
238- (declare DECLARATIONS) 240- (declare DECLARATIONS)
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el
index 51633f686eb..3c1f36fa8de 100644
--- a/lisp/net/tramp-sh.el
+++ b/lisp/net/tramp-sh.el
@@ -1633,7 +1633,10 @@ of."
1633 "-t %s" 1633 "-t %s"
1634 (format-time-string "%Y%m%d%H%M.%S" (tramp-defined-time time) t)) 1634 (format-time-string "%Y%m%d%H%M.%S" (tramp-defined-time time) t))
1635 "") 1635 "")
1636 (if (eq flag 'nofollow) "-h" "") 1636 (if (and (eq flag 'nofollow)
1637 (tramp-get-connection-property v "touch-h"))
1638 "-h"
1639 "")
1637 (tramp-shell-quote-argument localname)))))) 1640 (tramp-shell-quote-argument localname))))))
1638 1641
1639(defun tramp-sh-handle-get-home-directory (vec &optional user) 1642(defun tramp-sh-handle-get-home-directory (vec &optional user)
@@ -5889,12 +5892,12 @@ Nonexistent directories are removed from spec."
5889 "Determine remote `touch' command." 5892 "Determine remote `touch' command."
5890 (with-tramp-connection-property vec "touch" 5893 (with-tramp-connection-property vec "touch"
5891 (tramp-message vec 5 "Finding a suitable `touch' command") 5894 (tramp-message vec 5 "Finding a suitable `touch' command")
5892 (let ((result (tramp-find-executable 5895 (when-let* ((result (tramp-find-executable
5893 vec "touch" (tramp-get-remote-path vec))) 5896 vec "touch" (tramp-get-remote-path vec)))
5894 (tmpfile (tramp-make-tramp-temp-name vec))) 5897 (tmpfile (tramp-make-tramp-temp-name vec)))
5895 ;; Busyboxes do support the "-t" option only when they have been 5898 (prog1 result
5896 ;; built with the DESKTOP config option. Let's check it. 5899 ;; Busyboxes do support the "-t" option only when they have
5897 (when result 5900 ;; been built with the DESKTOP config option. Let's check it.
5898 (tramp-set-connection-property 5901 (tramp-set-connection-property
5899 vec "touch-t" 5902 vec "touch-t"
5900 (tramp-send-command-and-check 5903 (tramp-send-command-and-check
@@ -5904,8 +5907,13 @@ Nonexistent directories are removed from spec."
5904 result 5907 result
5905 (format-time-string "%Y%m%d%H%M.%S") 5908 (format-time-string "%Y%m%d%H%M.%S")
5906 (tramp-file-local-name tmpfile)))) 5909 (tramp-file-local-name tmpfile))))
5907 (delete-file tmpfile)) 5910 ;; The touch command included in busybox (version 1.30.1-6) on
5908 result))) 5911 ;; OpenWrt does not have the option "-h".
5912 (tramp-set-connection-property
5913 vec "touch-h"
5914 (tramp-send-command-and-check
5915 vec (format "%s -h %s" result (tramp-file-local-name tmpfile))))
5916 (delete-file tmpfile)))))
5909 5917
5910(defun tramp-get-remote-df (vec) 5918(defun tramp-get-remote-df (vec)
5911 "Determine remote `df' command." 5919 "Determine remote `df' command."
diff --git a/lisp/progmodes/executable.el b/lisp/progmodes/executable.el
index b003b75b0e4..aa3a74d30fa 100644
--- a/lisp/progmodes/executable.el
+++ b/lisp/progmodes/executable.el
@@ -180,7 +180,7 @@ command to find the next error. The buffer is also in `comint-mode' and
180`compilation-shell-minor-mode', so that you can answer any prompts." 180`compilation-shell-minor-mode', so that you can answer any prompts."
181 (interactive (list (read-string "Run script: " 181 (interactive (list (read-string "Run script: "
182 (or executable-command 182 (or executable-command
183 buffer-file-name)))) 183 (file-local-name buffer-file-name)))))
184 (require 'compile) 184 (require 'compile)
185 (save-some-buffers (not compilation-ask-about-save)) 185 (save-some-buffers (not compilation-ask-about-save))
186 (setq-local executable-command command) 186 (setq-local executable-command command)