> 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.
Stefan
_______________________________________________
Emacs-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-devel