From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Montuori Newsgroups: gmane.emacs.help Subject: Re: About HOME in OS X Date: Tue, 11 Jun 2013 07:30:20 -0400 Message-ID: <1370950220.8148.140661242522405.081B85FA@webmail.messagingengine.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1370965776 31038 80.91.229.3 (11 Jun 2013 15:49:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Jun 2013 15:49:36 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 11 17:49:37 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UmQpE-0008Fb-Ha for geh-help-gnu-emacs@m.gmane.org; Tue, 11 Jun 2013 17:49:36 +0200 Original-Received: from localhost ([::1]:45476 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UmQpE-0000yq-5y for geh-help-gnu-emacs@m.gmane.org; Tue, 11 Jun 2013 11:49:36 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52670) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UmMmR-00045M-DV for help-gnu-emacs@gnu.org; Tue, 11 Jun 2013 07:30:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UmMmO-0000jH-MM for help-gnu-emacs@gnu.org; Tue, 11 Jun 2013 07:30:27 -0400 Original-Received: from out3-smtp.messagingengine.com ([66.111.4.27]:57039) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UmMmO-0000jA-Ec for help-gnu-emacs@gnu.org; Tue, 11 Jun 2013 07:30:24 -0400 Original-Received: from compute4.internal (compute4.nyi.mail.srv.osa [10.202.2.44]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 2EA9821150 for ; Tue, 11 Jun 2013 07:30:21 -0400 (EDT) Original-Received: from web4.nyi.mail.srv.osa ([10.202.2.214]) by compute4.internal (MEProxy); Tue, 11 Jun 2013 07:30:23 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:from:to:mime-version :content-transfer-encoding:content-type:in-reply-to:references :subject:date; s=smtpout; bh=WLwYWDa937cOJ3zcnGfFlSe6v4E=; b=l98 hLGPRQU4+2giJevmELXH+Ema8DXXebTros6n53n2MIrkZ7FDD12McpJZhRh4XZC6 dKcn6TVq6slvpe7iE+KLrQ/tlSeHRb6b6uAHCxYzD71foBaNFE4m2QUWG3pmkFum PsYB2RO40ZYHq1Z9twTxa+p4KaD3YpX07AGTFt8w= Original-Received: by web4.nyi.mail.srv.osa (Postfix, from userid 99) id 613E41140E3; Tue, 11 Jun 2013 07:30:20 -0400 (EDT) X-Sasl-Enc: wC1f4gMa7fPqw/u8jCZbemC6hLzxSzJJTCMa/ksjMScT 1370950220 X-Mailer: MessagingEngine.com Webmail Interface - ajax-25df3f14 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 66.111.4.27 X-Mailman-Approved-At: Tue, 11 Jun 2013 11:49:25 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:91458 Archived-At: 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