Subject: bug#79233: closed (Re: bug#79233: [PATCH] executable-interpret: Handle remote file names)

From: [email-masked] (GNU bug Tracking System)
Date: Thu, 14 Aug 2025 15:12:02 +0000

Your bug report

#79233: [PATCH] executable-interpret: Handle remote file names

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
79233: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=79233
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#79233: [PATCH] executable-interpret: Handle remote file names
From: Michael Albinus <[email-masked]>
To: Zhengyi Fu <[email-masked]>
Cc: [email-masked]
Date: Thu, 14 Aug 2025 17:11:18 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Verdsion: 30.3

Zhengyi Fu <[email-masked]> writes:

Hi,

> * lisp/progmodes/executable.el (executable-interpret): Use
> `file-local-name' to get the local file name component from
> `buffer-file-name'.

Thanks for the patch. I've pushed it to the emacs-30 branch, will
appear with Emacs 30.3 (or 31.1, whatever comes next).

Best regards, Michael.

Subject: [PATCH] executable-interpret: Handle remote file names
From: Zhengyi Fu <[email-masked]>
To: [email-masked]
Cc: Zhengyi Fu <[email-masked]>
Date: Thu, 14 Aug 2025 14:18:55 +0800
List-Id: <debbugs-submit.debbugs.gnu.org>

* lisp/progmodes/executable.el (executable-interpret): Use
`file-local-name' to get the local file name component from
`buffer-file-name'.
---
 lisp/progmodes/executable.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 @@ executable-interpret
 `compilation-shell-minor-mode', so that you can answer any prompts."
   (interactive (list (read-string "Run script: "
 				  (or executable-command
-				      buffer-file-name))))
+				      (file-local-name buffer-file-name)))))
   (require 'compile)
   (save-some-buffers (not compilation-ask-about-save))
   (setq-local executable-command command)