Issue62

classification
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
explanation
process
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.

Messages
msg483 [hidden] ([hidden]) Date: 2008-01-23.10:05:32
Supersedes issue130.
msg74 [hidden] ([hidden]) Date: 2008-01-19.04:58:02
  Message-ID: <87ir4w6u6d.fsf@uwakimon.sk.tsukuba.ac.jp>
Aidan Kehoe writes:
 > 
 >  Ar an ceathrú lá is fiche de mí Deireadh Fómhair, scríobh skip@pobox.com: 
 > 
 >  > 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
XEmacs-Beta@xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta
History
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