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

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

Re: About HOME in OS X


From: Kevin Montuori
Subject: Re: About HOME in OS X
Date: Tue, 11 Jun 2013 07:30:20 -0400


On Tue, Jun 11, 2013, at 7:22, Xue Fuqiao wrote:

>   ELISP> (getenv "HOME")
>   "/Users/xfq"
>   ELISP> (expand-file-name "$HOME/foo")
>   
> "/Users/xfq/emacs-repo/bzr/trunk/nextstep/Emacs.app/Contents/MacOS/$HOME/foo"
> 
> I'm confused here.  Why don't the result of two evaluations be the same?

Nothing in expand-file-name's documentation would lead me to expect it
to expand an environment variable (prefixed with $ or otherwise).  I
think what you probably want is (expand-file-name "~/foo").

k.

-- 
  Kevin Montuori
  montuori@gmail.com



reply via email to

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