GNU bug report logs -
#4616
23.1.50; empty script files
Previous Next
Reported by: Markus Rost <rost <at> math.uni-bielefeld.de>
Date: Fri, 2 Oct 2009 14:10:06 UTC
Severity: minor
Fixed in version 29.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> The Emacs Lisp reader always requires at least one sexp in the input.
> This is independent of the source of the input.
Oh yes. My patch would violate this. But the Emacs Lisp "loader"
doesn't require any input.
I think, somebody without knowledge of Emacs internals will be
surprised that
===File ~/x.el==============================================
#!/home/rost/build/cvs/emacs/src/emacs --script
;; (some-valid-elisp-expression)
============================================================
yields an "End of file during parsing" error and returns with positive
exit status.
And I think, somebody executing pure elisp will be surprised that
(read "#!\n(foo)")
does not yield an "Invalid read syntax" error.
It seems that the basic read function has a *general* feature in order
to get --script and the "#!"-syntax working.
What about my questions posted here:
<URL:http://lists.gnu.org/archive/html/bug-gnu-emacs/2009-10/msg00055.html>
This bug report was last modified 3 years and 160 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.