[Top][All Lists]

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

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

From: Kevin Rodgers
Subject: Re: substitute-in-file-name and "$"
Date: Mon, 07 Jul 2003 15:33:09 -0600
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv: Gecko/20020406 Netscape6/6.2.2

Kim F. Storm wrote:

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).

That is an excellent solution.

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.

But as long as file-name-directory, file-name-nondirectory, expand-file-name,

etc. preserved text properties, the programmer would have to intentionally

circumvent the feature.  Unfortunately, those functions seem to remove text
properties from their result (in the Emacs 21.3 release).

<a href="mailto:&lt;kevin.rodgers&#64;ihs.com&gt;";>Kevin Rodgers</a>

reply via email to

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