Subject: bug#4616: 23.1.50; empty script files

From: Andreas Schwab <[email-masked]>
Date: Sun, 04 Oct 2009 10:13:03 +0200

Markus Rost <[email-masked]> writes:

> Execute an Emacs script file with no actual lisp code in it, like this:
>
> ===File ~/x.el==============================================
> #!/home/rost/build/cvs/emacs/src/emacs --script
>
> ============================================================
>
> One gets an error:
>
> End of file during parsing: /home/rost/x.el
>
> Same problem if the file has some additional ";"-commented lines in it.

The Emacs Lisp reader always requires at least one sexp in the input.
This is independent of the source of the input.

Andreas.

-- 
Andreas Schwab, [email-masked]
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."