* 21.3: emacs -q -l cause-error.el file.txt does not load file
@ 2004-09-03 5:54 Jari Aalto+mail.linux
0 siblings, 0 replies; 2+ messages in thread
From: Jari Aalto+mail.linux @ 2004-09-03 5:54 UTC (permalink / raw)
In GNU Emacs 21.3.1 (i386-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
of 2004-08-03 on raven, modified by Debian
Test case:
$ cd ~/tmp
$ echo error > cause-error.el
$ echo edit > file.txt
$ emacs --no-site-file -nw -q -l cause-error.el file.txt
Symbol's value as variable is void: error
Emacs terminates after option "-l" and the file.txt is not loaded
for editing.
I think Emacs should process all non-option command line arguments and
display files for editing in spite of "-l" load errors in lisp packages.
Being able to edit files is the key feature.
Jari
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: 21.3: emacs -q -l cause-error.el file.txt does not load file
[not found] <mailman.1338.1094191184.1998.bug-gnu-emacs@gnu.org>
@ 2004-09-03 17:35 ` Kevin Rodgers
0 siblings, 0 replies; 2+ messages in thread
From: Kevin Rodgers @ 2004-09-03 17:35 UTC (permalink / raw)
Jari Aalto+mail.linux wrote:
> Test case:
>
> $ cd ~/tmp
> $ echo error > cause-error.el
> $ echo edit > file.txt
> $ emacs --no-site-file -nw -q -l cause-error.el file.txt
> Symbol's value as variable is void: error
>
> Emacs terminates after option "-l" and the file.txt is not loaded
> for editing.
>
> I think Emacs should process all non-option command line arguments and
> display files for editing in spite of "-l" load errors in lisp packages.
I disagree. Emacs is not like most Unix applications, in that it
doesn't really make a distinction between options and arguments and
processes them in order left-to-right. In fact, the above command
line is exactly equivalent to:
emacs --no-site-file -nw -q -l cause-error.el --visit=file.txt
In particular, what if after visiting a file the user specifies that a
function defined in the library should be called?
emacs ... file.txt --funcall=foo --eval='(write-file "/important_file")'
> Being able to edit files is the key feature.
Predictability is a key feature as well.
--
Kevin Rodgers
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-09-03 17:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.1338.1094191184.1998.bug-gnu-emacs@gnu.org>
2004-09-03 17:35 ` 21.3: emacs -q -l cause-error.el file.txt does not load file Kevin Rodgers
2004-09-03 5:54 Jari Aalto+mail.linux
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).