unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* 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

* bug#13782: improved #! shebang support in elisp/emacs
  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>
  0 siblings, 1 reply; 10+ messages in thread
From: Glenn Morris @ 2013-02-22 18:13 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: 13782

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.





^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#13782: improved #! shebang support in elisp/emacs
       [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
  0 siblings, 1 reply; 10+ messages in thread
From: Glenn Morris @ 2013-02-22 20:51 UTC (permalink / raw)
  To: Andrew Pennebaker; +Cc: 13782


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@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.





^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#13782: improved #! shebang support in elisp/emacs
  2013-02-22 20:51             ` Glenn Morris
@ 2013-03-05 20:12               ` Glenn Morris
  2013-03-05 21:39                 ` Jan Djärv
  0 siblings, 1 reply; 10+ messages in thread
From: Glenn Morris @ 2013-03-05 20:12 UTC (permalink / raw)
  To: 13782

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.





^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#13782: improved #! shebang support in elisp/emacs
  2013-03-05 20:12               ` Glenn Morris
@ 2013-03-05 21:39                 ` Jan Djärv
  2013-04-04 17:05                   ` Glenn Morris
  0 siblings, 1 reply; 10+ messages in thread
From: Jan Djärv @ 2013-03-05 21:39 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 13782

Hello.

It works fine on OSX, with 24.3.

	Jan D.

5 mar 2013 kl. 21:12 skrev Glenn Morris <rgm@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.
> 
> 






^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#13782: improved #! shebang support in elisp/emacs
  2013-03-05 21:39                 ` Jan Djärv
@ 2013-04-04 17:05                   ` Glenn Morris
  0 siblings, 0 replies; 10+ messages in thread
From: Glenn Morris @ 2013-04-04 17:05 UTC (permalink / raw)
  To: 13782-done


No details, not reproducible.





^ 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).