GNU bug report logs - #79233
[PATCH] executable-interpret: Handle remote file names

Previous Next

Package: emacs;

Reported by: Zhengyi Fu <i <at> fuzy.me>

Date: Thu, 14 Aug 2025 06:20:01 UTC

Severity: normal

Tags: patch

Done: Michael Albinus <michael.albinus <at> gmx.de>

To reply to this bug, email your comments to 79233 AT debbugs.gnu.org.
There is no need to reopen the bug first.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#79233; Package emacs. (Thu, 14 Aug 2025 06:20:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Zhengyi Fu <i <at> fuzy.me>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 14 Aug 2025 06:20:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Zhengyi Fu <i <at> fuzy.me>
To: bug-gnu-emacs <at> gnu.org
Cc: Zhengyi Fu <i <at> fuzy.me>
Subject: [PATCH] executable-interpret: Handle remote file names
Date: Thu, 14 Aug 2025 14:18:55 +0800
* 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)




Reply sent to Michael Albinus <michael.albinus <at> gmx.de>:
You have taken responsibility. (Thu, 14 Aug 2025 15:12:02 GMT) Full text and rfc822 format available.

Notification sent to Zhengyi Fu <i <at> fuzy.me>:
bug acknowledged by developer. (Thu, 14 Aug 2025 15:12:02 GMT) Full text and rfc822 format available.

Message #10 received at 79233-done <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Zhengyi Fu <i <at> fuzy.me>
Cc: 79233-done <at> debbugs.gnu.org
Subject: Re: bug#79233: [PATCH] executable-interpret: Handle remote file names
Date: Thu, 14 Aug 2025 17:11:18 +0200
Verdsion: 30.3

Zhengyi Fu <i <at> fuzy.me> 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.




This bug report was last modified 27 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.