From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Politz Newsgroups: gmane.emacs.help Subject: Re: open file listed in a text file Date: Wed, 10 Feb 2010 12:03:56 +0100 Message-ID: <876365qrmr.fsf@fh-trier.de> References: <800bd9a9-0a03-4fc9-b395-328fbd835c93@l26g2000yqd.googlegroups.com> <81f0a13d-d1b7-418e-95c4-51462b45fb69@f8g2000yqn.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1265799898 24749 80.91.229.12 (10 Feb 2010 11:04:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 10 Feb 2010 11:04:58 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 10 12:04:56 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NfANL-0004M9-7j for geh-help-gnu-emacs@m.gmane.org; Wed, 10 Feb 2010 12:04:55 +0100 Original-Received: from localhost ([127.0.0.1]:57504 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NfANK-0005Rj-AP for geh-help-gnu-emacs@m.gmane.org; Wed, 10 Feb 2010 06:04:54 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NfAMm-0005Qy-Hy for help-gnu-emacs@gnu.org; Wed, 10 Feb 2010 06:04:20 -0500 Original-Received: from [199.232.76.173] (port=45360 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NfAMm-0005Qn-3V for help-gnu-emacs@gnu.org; Wed, 10 Feb 2010 06:04:20 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NfAMk-0006vv-DK for help-gnu-emacs@gnu.org; Wed, 10 Feb 2010 06:04:19 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:38501) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NfAMk-0006vh-2A for help-gnu-emacs@gnu.org; Wed, 10 Feb 2010 06:04:18 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1NfAMi-0003uH-NG for help-gnu-emacs@gnu.org; Wed, 10 Feb 2010 12:04:16 +0100 Original-Received: from dslb-088-068-196-141.pools.arcor-ip.net ([88.68.196.141]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 10 Feb 2010 12:04:16 +0100 Original-Received: from politza by dslb-088-068-196-141.pools.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 10 Feb 2010 12:04:16 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 25 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: dslb-088-068-196-141.pools.arcor-ip.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:DVuzs6sQGVc6JoL56xe3buQWrcE= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:71777 Archived-At: Chitlesh Goorah writes: > On Feb 9, 2:37 am, William Xu wrote: >> It seems that his file path includes an environment variable: >> >>   $(SCRIPTS_HOME)/definitions.tcl >> >> Vim is smart...  An elisp function may be needed to achieve that.   > > > I have full control over the env variable. Imagine it is set with a > sort of cshrc file. > > I just learnt that even nedit can open that file with Ctrl-Y. Surely > emacs must have an equivalent. > > Chitlesh Maybe you could use an before advice on the function `substitute-in-file-name', that transforms the variables into a format which the function understands. %FOO%,$(FOO) -> ${FOO} -ap