[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: file-name-shadow-mode

From: David Kastrup
Subject: Re: file-name-shadow-mode
Date: Sun, 20 Mar 2005 19:47:30 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Luc Teirlinck <address@hidden> 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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]