unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* elisp: isn't default-directory always the dir of current file??
@ 2009-03-02  6:54 Xah Lee
  2009-03-02  7:27 ` Xah Lee
  2009-03-02 13:12 ` Alan Mackenzie
  0 siblings, 2 replies; 10+ messages in thread
From: Xah Lee @ 2009-03-02  6:54 UTC (permalink / raw)
  To: help-gnu-emacs

elisp question.

it seems to me, that the var default-directory is not updated when
using load-file.

For example, i have in my .emacs this line and nothing else:

(load-file "web/emacs/xah_emacs_init.el")

Then, in the file xah_emacs_init.el
has this line

(load-file "emacs2/init.el")

and nothing else.

However, it is a error because it cannot find init.el.

When adding (message default-directory) to the xah_emacs_init.el, it
still thinks that the dir is "~/".

The elisp doc on default-directory and load-file indicates that this
should work.

 Xah



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2009-03-03 22:49 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-02  6:54 elisp: isn't default-directory always the dir of current file?? Xah Lee
2009-03-02  7:27 ` Xah Lee
2009-03-02  7:46   ` Xah Lee
2009-03-02 10:32     ` Lennart Borgman
     [not found]     ` <mailman.2198.1235989932.31690.help-gnu-emacs@gnu.org>
2009-03-02 20:32       ` Xah Lee
2009-03-03 16:45         ` Mike Mattie
     [not found]         ` <mailman.2298.1236115585.31690.help-gnu-emacs@gnu.org>
2009-03-03 22:49           ` Xah Lee
2009-03-02 13:12 ` Alan Mackenzie
2009-03-02 20:38   ` Xah Lee
2009-03-03  4:06     ` Kevin Rodgers

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).