[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 <schwab@suse.de> writes:
> Michael Albinus <michael.albinus@gmx.de> 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).