* bug#13782: improved #! shebang support in elisp/emacs
@ 2013-02-22 1:44 Andrew Pennebaker
2013-02-22 2:21 ` Glenn Morris
0 siblings, 1 reply; 10+ messages in thread
From: Andrew Pennebaker @ 2013-02-22 1:44 UTC (permalink / raw)
To: 13782
[-- Attachment #1: Type: text/plain, Size: 107 bytes --]
Emacs doesn't like evaluating elisp code that starts with a shebang line.
Could we treat them as comments?
[-- Attachment #2: Type: text/html, Size: 128 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#13782: improved #! shebang support in elisp/emacs
2013-02-22 1:44 bug#13782: improved #! shebang support in elisp/emacs Andrew Pennebaker
@ 2013-02-22 2:21 ` Glenn Morris
2013-02-22 13:29 ` Andrew Pennebaker
0 siblings, 1 reply; 10+ messages in thread
From: Glenn Morris @ 2013-02-22 2:21 UTC (permalink / raw)
To: Andrew Pennebaker; +Cc: 13782
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.
^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#13782: improved #! shebang support in elisp/emacs
2013-02-22 2:21 ` Glenn Morris
@ 2013-02-22 13:29 ` Andrew Pennebaker
2013-02-22 17:17 ` Glenn Morris
0 siblings, 1 reply; 10+ messages in thread
From: Andrew Pennebaker @ 2013-02-22 13:29 UTC (permalink / raw)
Cc: 13782
[-- Attachment #1: Type: text/plain, Size: 477 bytes --]
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@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.
>
[-- Attachment #2: Type: text/html, Size: 792 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#13782: improved #! shebang support in elisp/emacs
2013-02-22 13:29 ` Andrew Pennebaker
@ 2013-02-22 17:17 ` Glenn Morris
2013-02-22 17:51 ` Stefan Monnier
0 siblings, 1 reply; 10+ messages in thread
From: Glenn Morris @ 2013-02-22 17:17 UTC (permalink / raw)
To: Andrew Pennebaker; +Cc: 13782
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.
^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#13782: improved #! shebang support in elisp/emacs
2013-02-22 17:17 ` Glenn Morris
@ 2013-02-22 17:51 ` Stefan Monnier
2013-02-22 18:13 ` Glenn Morris
0 siblings, 1 reply; 10+ messages in thread
From: Stefan Monnier @ 2013-02-22 17:51 UTC (permalink / raw)
To: Glenn Morris; +Cc: 13782
>> 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
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2013-04-04 17:05 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-22 1:44 bug#13782: improved #! shebang support in elisp/emacs Andrew Pennebaker
2013-02-22 2:21 ` Glenn Morris
2013-02-22 13:29 ` Andrew Pennebaker
2013-02-22 17:17 ` Glenn Morris
2013-02-22 17:51 ` Stefan Monnier
2013-02-22 18:13 ` Glenn Morris
[not found] ` <CAHXt_SW2cauMuaZ3h3x7J_-a4Chy49-O8=jFk+xNi+HgF7c06A@mail.gmail.com>
2013-02-22 20:51 ` Glenn Morris
2013-03-05 20:12 ` Glenn Morris
2013-03-05 21:39 ` Jan Djärv
2013-04-04 17:05 ` Glenn Morris
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).