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

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

Re: With /sudo::/etc instead of /etc, files are not conf mode by default


From: Michael Albinus
Subject: Re: With /sudo::/etc instead of /etc, files are not conf mode by default
Date: Sun, 05 Aug 2007 14:30:46 +0200
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux)

Andreas Schwab <address@hidden> writes:

> Michael Albinus <address@hidden> writes:
>
>> -         (let ((name buffer-file-name))
>> +         (let ((name buffer-file-name)
>> +               (remote-id (file-remote-p buffer-file-name)))
>> +           ;; Remove remote file name identification.
>> +           (when (and (stringp remote-id)
>> +                      (string-match remote-id name))
>
> The remote-id is not a regex.

Right. It shall be (regexp-quote (file-remote-p buffer-file-name))

> And tramp does not even return a string, so it won't help here anyway.

Grr, that's a change in Tramp 2.1, which has been put in the Emacs
trunk.

Because it doesn't harm, I'll change the return value format of
tramp-handle-file-remote-p in EMACS_22_BASE as well.

> Andreas.

Best regards, Michael (who should be more careful on a sunny Sunday afternoon).




reply via email to

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