emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: partial-completion-mode and tramp.


From: Stefan
Subject: Re: partial-completion-mode and tramp.
Date: Sun, 10 Oct 2004 13:20:18 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (darwin)

>> Actually, now that I think about it, I believe this is not a problem any
>> more in Emacs-CVS because `substitute-in-file-name' now ignores the $ which
>> do not correspond to a valid envvar.

> Well, but Tramps supports older Emacsen as well. So we should apply
> this defadvice for those versions only?

Yes, you can test:

     (condition-case nil
         (substitute-in-file-name "C$/")
       (error
         ...add the advice...))

writing it this way is also a good way to document why the advice is used.
Documentation in the form of code has the advantage over comments that it
doesn't have the same tendency to go stale.


        Stefan




reply via email to

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