How to suppress environment variable expansion by find-file?

Adrian Aichner adrian at xemacs.org
Sat Jan 5 06:32:35 EST 2008


Michael Sperber <sperber at deinprogramm.de> writes:

> "Adrian Aichner" <adrian at xemacs.org> writes:
>
>> Right, Skip!
>>
>> By sheer coincidence I have partially tracked down a variation on the
>> theme today.
>>
>> I access files on administrative shares under windows, or should I
>> say, I used to :-)
>>
>> Paths of the pattern
>> \\COMPUTER\DRIVE$\FILE
>> trigger the same problem.
>>
>> I can do dired, using
>> \\COMPUTER\DRIVE$$
>> which evaluates to
>> \\COMPUTER\DRIVE$
>> but opening FILE will evaluate C$ once more and fall over.
>>
>> The difference is that insert-file-contents in 21.5 epands the file
>> argument using substitute-in-file-name, which the 21.4 variant did not
>> use to.
>>
>> Michael Sperber should know more about this.
>>
>> Mike?
>
> Yo.  It was me.  Sorry.  I just copied the call to
> `substitute-in-file-name' from somewhere else, and I believe it's just
> as incorrect there.  So how about this?

The patch seems to work in initial testing.

Thanks Mike!

Adrian

>
> 2008-01-04  Michael Sperber  <mike at xemacs.org>
>
> 	* code-files.el (insert-file-contents):
> 	(load): Don't call `substitute-in-file-name' on the file name.

-- 
Adrian Aichner
 mailto:adrian at xemacs.org
 http://www.xemacs.org/



More information about the XEmacs-Beta mailing list