aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/executable.el
diff options
context:
space:
mode:
authorZhengyi Fu2025-08-14 17:08:36 +0200
committerMichael Albinus2025-08-14 17:08:36 +0200
commitf8a206937c9f548bd810153bf29f4f4a32d84c95 (patch)
treee63d7c21ef7f2a124cc6d702003c6fa587ac7250 /lisp/progmodes/executable.el
parentc17168ebed9b0ace53235aa34fff4e53ca8543d3 (diff)
downloademacs-f8a206937c9f548bd810153bf29f4f4a32d84c95.tar.gz
emacs-f8a206937c9f548bd810153bf29f4f4a32d84c95.zip
executable-interpret: Handle remote file names
* lisp/progmodes/executable.el (executable-interpret): Use `file-local-name' to get the local file name component from `buffer-file-name'. (Bug#79233) Copyright-paperwork-exempt: yes
Diffstat (limited to 'lisp/progmodes/executable.el')
-rw-r--r--lisp/progmodes/executable.el2
1 files changed, 1 insertions, 1 deletions
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)