From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: setenv and find-file Date: Sat, 18 May 2013 10:34:21 +0300 Message-ID: <83sj1krbb6.fsf@gnu.org> References: <155DEC68569B714B86C2C7075F5EDA9828F794FC@DAKIYA1.pegasus.local> <8089B172-1D9F-4ACA-83B0-92FABA47BD5B@Web.DE> <155DEC68569B714B86C2C7075F5EDA9828F7A60D@DAKIYA1.pegasus.local> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1368862490 8501 80.91.229.3 (18 May 2013 07:34:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 18 May 2013 07:34:50 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat May 18 09:34:50 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 1UdbfF-0006bZ-Gz for geh-help-gnu-emacs@m.gmane.org; Sat, 18 May 2013 09:34:49 +0200 Original-Received: from localhost ([::1]:41729 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UdbfF-0006e9-1n for geh-help-gnu-emacs@m.gmane.org; Sat, 18 May 2013 03:34:49 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47994) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Udbf4-0006e4-Mf for help-gnu-emacs@gnu.org; Sat, 18 May 2013 03:34:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Udbf3-0004vW-Mz for help-gnu-emacs@gnu.org; Sat, 18 May 2013 03:34:38 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:36044) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Udbf3-0004vR-F7 for help-gnu-emacs@gnu.org; Sat, 18 May 2013 03:34:37 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MMZ00C00GUVS600@a-mtaout22.012.net.il> for help-gnu-emacs@gnu.org; Sat, 18 May 2013 10:34:36 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MMZ00C39H1NIJB0@a-mtaout22.012.net.il> for help-gnu-emacs@gnu.org; Sat, 18 May 2013 10:34:36 +0300 (IDT) In-reply-to: <155DEC68569B714B86C2C7075F5EDA9828F7A60D@DAKIYA1.pegasus.local> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.172 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:90888 Archived-At: > From: Doug Lewan > Date: Fri, 17 May 2013 21:07:51 +0000 > > In shell: > $ echo ${VARIABLE} > /a/very/long/path > $ emacs & > Inside emacs: > C-x C-f ${VARIABLE}/to/work <== Finds "/a/very/long/path/to/work". > (setenv "VARIABLE" "/shorter/path") > => "/shorter/path" > M-! echo ${VARIABLE} > "/shorter/path" > M-x shell > In shell inside emacs: > $ echo ${VARIABLE} > "/shorter/path" > Back in emacs: > C-x C-f ${VARIABLE}/to/Grandmothers/house > This finds the file "/a/very/long/path/to/Grandmothers/house", where I sort of expect it to find "/shorter/path/to/Grandmothers/house". I cannot reproduce this. What version of Emacs is this, and on what OS?