From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: file-name-shadow-mode Date: Sun, 20 Mar 2005 19:47:30 +0100 Message-ID: References: <200503180435.j2I4Z2R18621@raven.dms.auburn.edu> <87is3p5zp2.fsf-monnier+emacs@gnu.org> <200503191521.j2JFL8901509@raven.dms.auburn.edu> <87r7ibziw6.fsf-monnier+emacs@gnu.org> <200503200230.j2K2UvS03067@raven.dms.auburn.edu> <200503201824.j2KIOw005606@raven.dms.auburn.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1111345287 20425 80.91.229.2 (20 Mar 2005 19:01:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 20 Mar 2005 19:01:27 +0000 (UTC) Cc: miles@gnu.org, snogglethorpe@gmail.com, rms@gnu.org, monnier@iro.umontreal.ca, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 20 20:01:25 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DD5eg-00006S-Vu for ged-emacs-devel@m.gmane.org; Sun, 20 Mar 2005 20:00:07 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DD5vd-0005mj-L6 for ged-emacs-devel@m.gmane.org; Sun, 20 Mar 2005 14:17:37 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DD5u8-0005Ak-U4 for emacs-devel@gnu.org; Sun, 20 Mar 2005 14:16:05 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DD5u3-00058X-QA for emacs-devel@gnu.org; Sun, 20 Mar 2005 14:16:00 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DD5u2-00055k-Fs for emacs-devel@gnu.org; Sun, 20 Mar 2005 14:15:58 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DD5Sk-0007EE-O1 for emacs-devel@gnu.org; Sun, 20 Mar 2005 13:47:46 -0500 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1DD5Se-0007ZS-14; Sun, 20 Mar 2005 13:47:40 -0500 Original-To: Luc Teirlinck In-Reply-To: <200503201824.j2KIOw005606@raven.dms.auburn.edu> (Luc Teirlinck's message of "Sun, 20 Mar 2005 12:24:58 -0600 (CST)") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org X-MailScanner-To: ged-emacs-devel@m.gmane.org Xref: news.gmane.org gmane.emacs.devel:34839 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:34839 Luc Teirlinck writes: > Richard Stallman wrote: > > [I think it's probably possible to fix this -- e.g., by generating a > regexp of all non-absolute environment variables and glomming it onto > the rexexp used for filenames. But my basic point is that it scarcely > matters.] > > Could you try fixing it that way? > > It would probably be a lot better to do the complement: look for all > environment variables whose value starts with / or ~. Emacs > supports file names that start with $ if the $ is not followed by an > environment variable, or if the $ is doubled up. I may be > overlooking something obvious, but is therE a reason not to use > `getenv'? The more robust solution would probably be to see what happens when using substitute-in-file-name on the substring starting with $, and see whether the result is an absolute file name. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum