help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: elisp: isn't default-directory always the dir of current file??


From: Kevin Rodgers
Subject: Re: elisp: isn't default-directory always the dir of current file??
Date: Mon, 02 Mar 2009 21:06:15 -0700
User-agent: Thunderbird 2.0.0.19 (Macintosh/20081209)

Xah Lee wrote:
What i sought is load-file-name or buffer-file-name.
(file-name-directory (if load-file-name load-file-name buffer-file-
name))

(file-name-directory (or load-file-name buffer-file-name))

is the idiomatic way to express that.

--
Kevin Rodgers
Denver, Colorado, USA





reply via email to

[Prev in Thread] Current Thread [Next in Thread]