From: Leo <sdl.web@gmail.com>
To: Chong Yidong <cyd@stupidchicken.com>
Cc: Thierry Volpiatto <thierry.volpiatto@gmail.com>, emacs-devel@gnu.org
Subject: Re: Why sh-set-shell insert a space after #!
Date: Fri, 17 Aug 2012 15:06:56 +0800 [thread overview]
Message-ID: <m2ehn6xai7.fsf@gmail.com> (raw)
In-Reply-To: <m2ipcixb29.fsf@gmail.com> (Leo's message of "Fri, 17 Aug 2012 14:54:54 +0800")
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 "/[Mm]akefile$\\|/\\.\\(z?profile\\|
: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)
next prev parent reply other threads:[~2012-08-17 7:06 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-17 4:05 Why sh-set-shell insert a space after #! Leo
2012-08-17 5:22 ` Thierry Volpiatto
2012-08-17 6:54 ` Leo
2012-08-17 7:06 ` Leo [this message]
2012-08-22 17:17 ` Bastien
2012-08-23 0:53 ` Leo
2012-08-23 9:54 ` Bastien
2012-08-24 17:08 ` Aurélien Aptel
2012-08-17 7:18 ` Stephen J. Turnbull
2012-08-17 8:05 ` Andreas Schwab
2012-08-17 15:50 ` Leo
2012-08-17 16:37 ` Thierry Volpiatto
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2ehn6xai7.fsf@gmail.com \
--to=sdl.web@gmail.com \
--cc=cyd@stupidchicken.com \
--cc=emacs-devel@gnu.org \
--cc=thierry.volpiatto@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).