[Top][All Lists]

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

Re: file-name-shadow-mode

From: Stefan Monnier
Subject: Re: file-name-shadow-mode
Date: Mon, 21 Mar 2005 18:00:57 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

>    BTW, while testing my code, I was actually surprised (although it makes
>    perfect sense) by the fact that "C-x C-f /:~//info" doesn't behave as
>    explained above.  You need to do "C-x C-f C-a C-k /:~//info".

> The "/:" needs to be at the very beginning of the minibuffer contents
> to work.

That was my point: this is surprising.

My intuitive understanding of the behavior of substitute-in-file-name is
that if <bar> is an absolute file name, then <foo>/<bar> is treated just
like <bar> (provided <foo> is a "normal" file name, not one that matches
/: or some other magic file name handler).

But /home//:~//info will *not* be treated like /:~//info.
Whether it's a bug or feature, I don't know, but I find it surprising.


reply via email to

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