[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: |
Andreas Schwab |
Subject: |
Re: With /sudo::/etc instead of /etc, files are not conf mode by default |
Date: |
Sun, 05 Aug 2007 11:27:00 +0200 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.1 (gnu/linux) |
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. And tramp does not even return a string,
so it won't help here anyway.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."