diff options
| author | Zhengyi Fu | 2025-08-14 17:08:36 +0200 |
|---|---|---|
| committer | Michael Albinus | 2025-08-14 17:08:36 +0200 |
| commit | f8a206937c9f548bd810153bf29f4f4a32d84c95 (patch) | |
| tree | e63d7c21ef7f2a124cc6d702003c6fa587ac7250 /lisp/progmodes/executable.el | |
| parent | c17168ebed9b0ace53235aa34fff4e53ca8543d3 (diff) | |
| download | emacs-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.el | 2 |
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) |