all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kevin Montuori <montuori@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: About HOME in OS X
Date: Tue, 11 Jun 2013 07:30:20 -0400	[thread overview]
Message-ID: <1370950220.8148.140661242522405.081B85FA@webmail.messagingengine.com> (raw)
In-Reply-To: <CAAF+z6EszkKYP5oUtjbFCV9tK+wTTgc+h=sTRYYggVXzkedeiA@mail.gmail.com>



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



  parent reply	other threads:[~2013-06-11 11:30 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-11 11:22 About HOME in OS X Xue Fuqiao
2013-06-11 11:27 ` Xue Fuqiao
2013-06-11 15:53   ` Eli Zaretskii
     [not found]   ` <mailman.1403.1370966034.22516.help-gnu-emacs@gnu.org>
2013-06-11 16:45     ` Barry Margolin
2013-06-11 17:05       ` Peter Dyballa
     [not found]       ` <mailman.1410.1370970844.22516.help-gnu-emacs@gnu.org>
2013-06-11 17:20         ` Barry Margolin
2013-06-11 21:38           ` Peter Dyballa
2013-06-11 20:25       ` Thien-Thi Nguyen
2013-06-11 11:30 ` Kevin Montuori [this message]
2013-06-11 15:13 ` Peter Dyballa

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=1370950220.8148.140661242522405.081B85FA@webmail.messagingengine.com \
    --to=montuori@gmail.com \
    --cc=help-gnu-emacs@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.