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>

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#79233: closed ([PATCH] executable-interpret: Handle remote
 file names)
Date: Thu, 14 Aug 2025 15:12:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Thu, 14 Aug 2025 17:11:18 +0200
with message-id <87o6siey5l.fsf <at> gmx.de>
and subject line Re: bug#79233: [PATCH] executable-interpret: Handle remote file names
has caused the debbugs.gnu.org bug report #79233,
regarding [PATCH] executable-interpret: Handle remote file names
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
79233: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=79233
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
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)


[Message part 3 (message/rfc822, inline)]
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.