[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why sh-set-shell insert a space after #!

From: Leo
Subject: Re: Why sh-set-shell insert a space after #!
Date: Fri, 17 Aug 2012 15:06:56 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (OS X 10.8)

On 2012-08-17 14:54 +0800, Leo wrote:
>> Seems that this is wrong:
>> http://en.wikipedia.org/wiki/Shebang_%28Unix%29#Magic_number
>> http://www.in-ulm.de/~mascheck/various/shebang/#details
> Have I just discovered one of the oldest bugs? ;)

Hello Yidong,

Any objection to installing this tiny patch in emacs-24?

diff --git a/lisp/progmodes/executable.el b/lisp/progmodes/executable.el
index c44f1d73..201b4797 100644
--- a/lisp/progmodes/executable.el
+++ b/lisp/progmodes/executable.el
@@ -84,8 +84,9 @@ (defcustom executable-magicless-file-regexp 
   :group 'executable)
-(defcustom executable-prefix "#! "
+(defcustom executable-prefix "#!"
   "*Interpreter magic number prefix inserted when there was no magic number."
+  :version "24.2"
   :type 'string
   :group 'executable)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]