From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xue Fuqiao Newsgroups: gmane.emacs.help Subject: Re: About HOME in OS X Date: Tue, 11 Jun 2013 19:27:46 +0800 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1370950086 10339 80.91.229.3 (11 Jun 2013 11:28:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Jun 2013 11:28:06 +0000 (UTC) To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 11 13:28:08 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 1UmMkB-00089k-Sc for geh-help-gnu-emacs@m.gmane.org; Tue, 11 Jun 2013 13:28:07 +0200 Original-Received: from localhost ([::1]:36906 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UmMkB-0003EI-FP for geh-help-gnu-emacs@m.gmane.org; Tue, 11 Jun 2013 07:28:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52051) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UmMjw-0003Ci-4F for help-gnu-emacs@gnu.org; Tue, 11 Jun 2013 07:27:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UmMjr-0008L6-BV for help-gnu-emacs@gnu.org; Tue, 11 Jun 2013 07:27:52 -0400 Original-Received: from mail-ie0-x22e.google.com ([2607:f8b0:4001:c03::22e]:57262) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UmMjr-0008L0-6o for help-gnu-emacs@gnu.org; Tue, 11 Jun 2013 07:27:47 -0400 Original-Received: by mail-ie0-f174.google.com with SMTP id 9so3804496iec.5 for ; Tue, 11 Jun 2013 04:27:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=fXd10GHtUmSnK3L7hcFAuktLn59bjHDMUnjKu/DzXjc=; b=I54vSSvFQ9BuMT+sDhQPElI6lZKAKhxXgymS1q7oJxVfEe/q0Gpj5eidsS9f0XIbww npgBHqocWKeSeYuaD03vxtNFy9yr9qBaNX40ia/qQKv2QJ7xNIu9Xs4kCx5gDORqe27T xppQvjXhlODgBFSH5OlvIxHb9i+ssJgfZ4ohGwxTLwbKinf7oPyD9BOrLEy61fl2Z5aU JZ4J74ibG6wYV0mPgqaZ5R2Oel5CMC9O3XWayy0RfL27Ck8nCArXR89A2TyV6XLCi5Es CwmPC8tT7vOkjKQ8Ajks23B52JW+mYTaG746hb1olKT1QLcntwuqjhf6uGZ9dZrRUjMb RaTA== X-Received: by 10.50.102.101 with SMTP id fn5mr680837igb.3.1370950066663; Tue, 11 Jun 2013 04:27:46 -0700 (PDT) Original-Received: by 10.42.121.138 with HTTP; Tue, 11 Jun 2013 04:27:46 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4001:c03::22e 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:91455 Archived-At: On Tue, Jun 11, 2013 at 7:22 PM, Xue Fuqiao wrote: > Hi list, > > On my system (OS X 10.8.4): > > 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? Hmm... The following expression works properly: (expand-file-name (substitute-in-file-name "$HOME/foo")) -- Best regards, Xue Fuqiao.