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
Message #66 received at 4616 <at> debbugs.gnu.org (full text, mbox):
Markus Rost <rost <at> math.uni-bielefeld.de> writes:
>> --script requires at least one readable form in the script, and that
>> seems OK to me.
>
> A script with no commands should be valid in any language, in my
> opinion. As a matter of principle, but also for practical reasons:
> You may want to comment by chance all code. I think this way the
> matter appeared to me. You may also want to write a template with all
> code commented initially.
Sure, that's true.
I think the way to fix this is to tell the reader that we're reading
from a script file and then do the appropriate thing instead of altering
the reader unconditionally. That is,
if (argmatch (argv, argc, "-script", "--script", 3, &junk, &skip_args))
{
noninteractive = 1; /* Set batch mode. */
in emacs.c should set some global variable, and then readevalloop (I
think?) shouldn't signal an error if it turns out that there are no
forms to read.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
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.