From: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: emacs.exe --load FILE and current directory on w32
Date: Sun, 05 Jun 2005 08:26:46 +0300 [thread overview]
Message-ID: <uslzx9xwp.fsf@gnu.org> (raw)
In-Reply-To: <42A22400.6090101@student.lu.se> (message from Lennart Borgman on Sat, 04 Jun 2005 23:58:24 +0200)
> Date: Sat, 04 Jun 2005 23:58:24 +0200
> From: Lennart Borgman <lennart.borgman.073@student.lu.se>
> Cc: emacs-devel@gnu.org
>
> Richard Stallman wrote:
>
> > Info says that the startup argujment load looks in the current directory
> > for the file to load. That does not seem to be correct, at least not on w32.
> >
> >Would you please provide a complete test case?
> >
> Yes, of course.
>
> *** If we have loadme.el:
> (message "I am loaded, thank you!")
> **********************
>
> This works:
>
> emacs.exe -batch -no-site-file -q somefile.txt -l loadme.el
> I am loaded, thank you!
>
> However when somefile.txt is in another directory then it fails:
>
> emacs.exe -batch -no-site-file -q ..\somefile.txt -l loadme.el
> Cannot open load file: loadme.el
I get the same behavior on GNU/Linux, both with the current CVS and
with Emacs 21.3.
I think Emacs always behaved like that. The manual is simplifying a
bit: you will see in startup.el that we try to find the file in the
_default_ directory; if we visited a file before processing -l, that
is no longer the current directory, but rather the directory of the
visited file. I'm not sure this subtlety needs to be documented,
except, perhaps in a footnote.
next prev parent reply other threads:[~2005-06-05 5:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-03 17:58 emacs.exe --load FILE and current directory on w32 Lennart Borgman
2005-06-04 17:59 ` Richard Stallman
2005-06-04 21:58 ` Lennart Borgman
2005-06-05 5:26 ` Eli Zaretskii [this message]
2005-06-05 8:06 ` Lennart Borgman
2005-06-05 20:25 ` Richard Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=uslzx9xwp.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.