GNU bug report logs - #13782
improved #! shebang support in elisp/emacs

Previous Next

Packages: ns, emacs;

Reported by: Andrew Pennebaker <andrew.pennebaker <at> gmail.com>

Date: Fri, 22 Feb 2013 02:02:02 UTC

Severity: normal

Tags: moreinfo, unreproducible

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 13782 in the body.
You can then email your comments to 13782 AT debbugs.gnu.org in the normal way.

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#13782; Package emacs. (Fri, 22 Feb 2013 02:02:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Andrew Pennebaker <andrew.pennebaker <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 22 Feb 2013 02:02:02 GMT) Full text and rfc822 format available.

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

From: Andrew Pennebaker <andrew.pennebaker <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: improved #! shebang support in elisp/emacs
Date: Thu, 21 Feb 2013 20:44:00 -0500
[Message part 1 (text/plain, inline)]
Emacs doesn't like evaluating elisp code that starts with a shebang line.
Could we treat them as comments?
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13782; Package emacs. (Fri, 22 Feb 2013 02:23:01 GMT) Full text and rfc822 format available.

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

From: Glenn Morris <rgm <at> gnu.org>
To: Andrew Pennebaker <andrew.pennebaker <at> gmail.com>
Cc: 13782 <at> debbugs.gnu.org
Subject: Re: bug#13782: improved #! shebang support in elisp/emacs
Date: Thu, 21 Feb 2013 21:21:02 -0500
Andrew Pennebaker wrote:

> Emacs doesn't like evaluating elisp code that starts with a shebang line.

What do you mean by "doesn't like", exactly?

cat foo.el:

#!/foo
(message "hi")

emacs -Q -l ./foo.el

works fine.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13782; Package emacs. (Fri, 22 Feb 2013 13:32:02 GMT) Full text and rfc822 format available.

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

From: Andrew Pennebaker <andrew.pennebaker <at> gmail.com>
Cc: 13782 <at> debbugs.gnu.org
Subject: Re: bug#13782: improved #! shebang support in elisp/emacs
Date: Fri, 22 Feb 2013 08:29:56 -0500
[Message part 1 (text/plain, inline)]
Calling emacs script mode works fine on the command line, but the various
hotkeys for evaluating the same code from a buffer result in errors when
they encounter shebangs.
On Feb 21, 2013 9:21 PM, "Glenn Morris" <rgm <at> gnu.org> wrote:

> Andrew Pennebaker wrote:
>
> > Emacs doesn't like evaluating elisp code that starts with a shebang line.
>
> What do you mean by "doesn't like", exactly?
>
> cat foo.el:
>
> #!/foo
> (message "hi")
>
> emacs -Q -l ./foo.el
>
> works fine.
>
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13782; Package emacs. (Fri, 22 Feb 2013 17:20:01 GMT) Full text and rfc822 format available.

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

From: Glenn Morris <rgm <at> gnu.org>
To: Andrew Pennebaker <andrew.pennebaker <at> gmail.com>
Cc: 13782 <at> debbugs.gnu.org
Subject: Re: bug#13782: improved #! shebang support in elisp/emacs
Date: Fri, 22 Feb 2013 12:17:37 -0500
Andrew Pennebaker wrote:

> Calling emacs script mode works fine on the command line, but the various
> hotkeys for evaluating the same code from a buffer result in errors when
> they encounter shebangs.

Please give a complete recipe starting from emacs -Q.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13782; Package emacs. (Fri, 22 Feb 2013 17:53:02 GMT) Full text and rfc822 format available.

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

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Glenn Morris <rgm <at> gnu.org>
Cc: Andrew Pennebaker <andrew.pennebaker <at> gmail.com>, 13782 <at> debbugs.gnu.org
Subject: Re: bug#13782: improved #! shebang support in elisp/emacs
Date: Fri, 22 Feb 2013 12:51:24 -0500
>> Calling emacs script mode works fine on the command line, but the various
>> hotkeys for evaluating the same code from a buffer result in errors when
>> they encounter shebangs.
> Please give a complete recipe starting from emacs -Q.

He's talking about the fact that emacs-lisp-mode does not know about the
#! magic, so M-x eval-buffer RET will throw errors when trying to
evaluate "#!/usr/bin/emacs --script".


        Stefan




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13782; Package emacs. (Fri, 22 Feb 2013 18:15:01 GMT) Full text and rfc822 format available.

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

From: Glenn Morris <rgm <at> gnu.org>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: Andrew Pennebaker <andrew.pennebaker <at> gmail.com>, 13782 <at> debbugs.gnu.org
Subject: Re: bug#13782: improved #! shebang support in elisp/emacs
Date: Fri, 22 Feb 2013 13:13:01 -0500
Stefan Monnier wrote:

> M-x eval-buffer RET will throw errors when trying to evaluate
> "#!/usr/bin/emacs --script".

Not for me, it doesn't.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13782; Package emacs. (Fri, 22 Feb 2013 20:54:02 GMT) Full text and rfc822 format available.

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

From: Glenn Morris <rgm <at> gnu.org>
To: Andrew Pennebaker <andrew.pennebaker <at> gmail.com>
Cc: 13782 <at> debbugs.gnu.org
Subject: Re: bug#13782: improved #! shebang support in elisp/emacs
Date: Fri, 22 Feb 2013 15:51:53 -0500
Please keep the debbugs address cc'd. Resending your comments so that
they are more visible.

    Date: Fri, 22 Feb 2013 15:47:50 -0500
    From: Andrew Pennebaker <andrew.pennebaker <at> gmail.com>

    Stefan describes the error I experience. I use an assortment of computers
    and OS's, some throw this error and some do not.

    Emacs 24.2 for Windows does not throw an error (yay!)

    Emacs 24.x.y via Homebrew may throw this error (boo!)

Where x = ?
Where "may throw" means what? It sometimes does and sometimes doesn't?

Please give the full details, otherwise this is going to go nowhere.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13782; Package emacs,ns. (Tue, 05 Mar 2013 20:13:01 GMT) Full text and rfc822 format available.

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

From: Glenn Morris <rgm <at> gnu.org>
To: 13782 <at> debbugs.gnu.org
Subject: Re: bug#13782: improved #! shebang support in elisp/emacs
Date: Tue, 05 Mar 2013 15:12:04 -0500
Glenn Morris wrote:

> Please give the full details, otherwise this is going to go nowhere.

If someone with Mac OS X could check that in 24.3, M-x eval-buffer on a
buffer with contents:

-------------
#!/bin/foo

(message "hi")
-------------

works fine like it does on GNU/Linux, I'll close this.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13782; Package emacs,ns. (Tue, 05 Mar 2013 21:41:03 GMT) Full text and rfc822 format available.

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

From: Jan Djärv <jan.h.d <at> swipnet.se>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 13782 <at> debbugs.gnu.org
Subject: Re: bug#13782: improved #! shebang support in elisp/emacs
Date: Tue, 5 Mar 2013 22:39:46 +0100
Hello.

It works fine on OSX, with 24.3.

	Jan D.

5 mar 2013 kl. 21:12 skrev Glenn Morris <rgm <at> gnu.org>:

> Glenn Morris wrote:
> 
>> Please give the full details, otherwise this is going to go nowhere.
> 
> If someone with Mac OS X could check that in 24.3, M-x eval-buffer on a
> buffer with contents:
> 
> -------------
> #!/bin/foo
> 
> (message "hi")
> -------------
> 
> works fine like it does on GNU/Linux, I'll close this.
> 
> 





Reply sent to Glenn Morris <rgm <at> gnu.org>:
You have taken responsibility. (Thu, 04 Apr 2013 17:09:02 GMT) Full text and rfc822 format available.

Notification sent to Andrew Pennebaker <andrew.pennebaker <at> gmail.com>:
bug acknowledged by developer. (Thu, 04 Apr 2013 17:09:02 GMT) Full text and rfc822 format available.

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

From: Glenn Morris <rgm <at> gnu.org>
To: 13782-done <at> debbugs.gnu.org
Subject: Re: bug#13782: improved #! shebang support in elisp/emacs
Date: Thu, 04 Apr 2013 13:05:28 -0400
No details, not reproducible.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 03 May 2013 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 12 years and 54 days ago.

Previous Next


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