[Top][All Lists]

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

Re: substitute-in-file-name and "$"

From: Michael Albinus
Subject: Re: substitute-in-file-name and "$"
Date: Sun, 06 Jul 2003 16:37:06 +0200
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/20.7 (hpux)

address@hidden (Kim F. Storm) writes:

> Maybe substitute-in-file-name could put a `substitute-in-file-name'
> property on the return value and check for that property on its
> argument (and do nothing if it is present).
> A later call to substitute-in-file-name should then skip over parts of
> its argument string which has that property (and only substitute in
> parts which are not previously substituted.
> That is still not completely fool-proof if the result of
> substitute-in-file-name is manipulated in some way which removes the
> property and then later passed to substitute-in-file-name again.

A simpler approach would be: expand environment variables if
possible. Don't worry if you cannot expand.

The masquing with "$$" wouldn't be necessary this case. But I don't
know whether there are other drawbacks with this approach.

Best regards, Michael.

reply via email to

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