Title How to suppress environment variable expansion by find-file?
Type defect Module core code 21.5
Severity some work obstructed Platform N/A
Keywords Nosy List
These controls should only be changed by committers and tracker administrators.
Status chatting   Reason
Superseder   Submitted 2007-10-24.22:10:02
Priority normal   Assigned To

Created on 2008-01-19.04:58:02 by stephen, last changed 2008-01-23.10:05:32 by stephen.

msg483 [hidden] ([hidden]) Date: 2008-01-23.10:05:32
Supersedes issue130.
msg74 [hidden] ([hidden]) Date: 2008-01-19.04:58:02
  Message-ID: <>
Aidan Kehoe writes:
 >  Ar an ceathrú lá is fiche de mí Deireadh Fómhair, scríobh 
 >  > I have a file with a leading dollar sign in its name.
 > Evaluating something like this in *scratch* should work:
 > (flet ((substitute-in-file-name (filename)
 > 	 filename))
 >   (find-file "/home/aidan/$substitute-in-file"))

Good god, who is responsible for this horror?  On second thought, I
don't wanna know.

I think that the "right" thing to do here is to get all of the
"handler" (including coding-sniffing) stuff out of functions suffixed
with -internal, and not call "high-level" functions (such as
"find-file" or "insert-file-contents") from the implementations.  Eg,
in this case, `find-file-internal' should be calling
`insert-file-contents-internal', and both should take literal file
names (ie, neither should process them with handlers,
expand-file-name, etc.)

Mike, you've worked on this stuff recently (and been bitten by a
similar bug, I guess).  Comments?

Note that prefixing a filename with "/:" is supposed to override all
the handler and substitution stuff.

XEmacs-Beta mailing list
Date User Action Args
2008-01-23 10:05:32stephensetstatus: new -> chatting
severity: some work obstructed
messages: + msg483
module: + core code 21.5
priority: normal
platform: + N/A
type: defect
2008-01-23 10:04:51stephenlinkissue130 superseder
2008-01-19 04:58:02stephencreate