unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* substitute-in-file-name and "$"
@ 2003-07-05 16:44 Michael Albinus
  2003-07-05 18:29 ` Luc Teirlinck
  2003-07-06 18:53 ` Richard Stallman
  0 siblings, 2 replies; 25+ messages in thread
From: Michael Albinus @ 2003-07-05 16:44 UTC (permalink / raw)


Hello,

In file name operations, the character "$" is masked by "$$" in order
to pass substitute-in-file-name handling. Unfortunately, this works
only onces, because after the first call of substitute-in-file-name,
"$$" reduces to "$".

There is no rule that substitute-in-file-name must be called only
once. For example, if you use partial-completion-mode, the filename in
the minibuffer will be passed through substitute-in-file-name by
PC-do-completion. Later file name operations which call internally
substitute-in-file-name will fail therefore.

This happens permanently in tramp-smb.el, where "$" is a part of file
names of default shares.

As workaround, I've written a defadvice for PC-do-completion which
requotes "$", but this is far from being perfect. Better would be a
general solution.

What I'ld like to know: Is it a general rule, that
substitute-in-file-name can be called only once for a given file name?
Then it should be documented in the Elisp manual, and it is a bug in
PC-do-completion. Or is it a more general design problem?

Best regards, Michael.

^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2003-07-09 23:47 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-07-05 16:44 substitute-in-file-name and "$" Michael Albinus
2003-07-05 18:29 ` Luc Teirlinck
2003-07-05 23:16   ` Michael Albinus
2003-07-05 23:58     ` Luc Teirlinck
2003-07-06 12:20       ` Kai Großjohann
2003-07-06 12:44         ` Miles Bader
2003-07-06 14:30       ` Michael Albinus
2003-07-06 16:24         ` Luc Teirlinck
2003-07-06 16:53           ` Kai Großjohann
2003-07-07 15:48           ` Michael Albinus
2003-07-06  0:07     ` Miles Bader
2003-07-06 12:07       ` Kim F. Storm
2003-07-06 14:37         ` Michael Albinus
2003-07-06 17:06           ` Stefan Monnier
2003-07-06 17:20         ` Stefan Monnier
2003-07-07 11:50           ` Michael Albinus
2003-07-07 14:34             ` Stefan Monnier
2003-07-07 16:10               ` Michael Albinus
2003-07-09 23:47                 ` Richard Stallman
2003-07-07  3:39         ` Richard Stallman
2003-07-07 21:33         ` Kevin Rodgers
2003-07-08 20:02           ` Richard Stallman
2003-07-06 18:53 ` Richard Stallman
2003-07-06 23:46   ` Kim F. Storm
2003-07-06 21:55     ` Stefan Monnier

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).