GNU bug report logs - #4616
23.1.50; empty script files

Previous Next

Package: emacs;

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


Message #12 received at 4616 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Markus Rost <rost <at> math.uni-bielefeld.de>
To: 4616 <at> debbugs.gnu.org
Subject: Follow-up: handling #!
Date: Sat,  3 Oct 2009 18:11:47 +0200 (CEST)
It appears that read1 in lread.c handles "#!" like a comment line
starting with ";".

Well, except if the "#!"-line is at the *end* of the buffer, then
eval-buffer or eval-region will yield an "End of file during parsing"
error, similarly as reported in the previous mail.

Besides this bug, is it intended to have "#!" as additional comment
syntax?

I would expect a special handling of "#!" only with --script (cf.
-scriptload in startup.el) and only if it appears at the beginning of
a file.

Normally eval-region should not handle "#!" specially, I guess.



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.