From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: Re: With /sudo::/etc instead of /etc, files are not conf mode by default Date: Sun, 05 Aug 2007 14:30:46 +0200 Message-ID: <87vebu17ux.fsf@gmx.de> References: <87bqdmbox1.fsf@baal.twb.ath.cx> <87zm161h6x.fsf@gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1186317075 29115 80.91.229.12 (5 Aug 2007 12:31:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 5 Aug 2007 12:31:15 +0000 (UTC) Cc: trentbuck@gmail.com, bug-gnu-emacs@gnu.org To: Andreas Schwab Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Aug 05 14:31:12 2007 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IHfGJ-0007nt-Cl for geb-bug-gnu-emacs@m.gmane.org; Sun, 05 Aug 2007 14:31:11 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IHfGE-0001Fl-6i for geb-bug-gnu-emacs@m.gmane.org; Sun, 05 Aug 2007 08:31:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IHfGB-0001FS-I9 for bug-gnu-emacs@gnu.org; Sun, 05 Aug 2007 08:31:03 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IHfG8-0001Dd-3Z for bug-gnu-emacs@gnu.org; Sun, 05 Aug 2007 08:31:03 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IHfG8-0001Da-0F for bug-gnu-emacs@gnu.org; Sun, 05 Aug 2007 08:31:00 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1IHfG5-0005T1-Je for bug-gnu-emacs@gnu.org; Sun, 05 Aug 2007 08:30:58 -0400 Original-Received: (qmail invoked by alias); 05 Aug 2007 12:30:48 -0000 Original-Received: from p57A20FC8.dip0.t-ipconnect.de (EHLO localhost.local) [87.162.15.200] by mail.gmx.net (mp048) with SMTP; 05 Aug 2007 14:30:48 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1/Ni7IJNyHNU4TN2UmsYBNCQSPFhYFEy0vwELPgCY 9y7/5AltsXqiWN In-Reply-To: (Andreas Schwab's message of "Sun, 05 Aug 2007 11:27:00 +0200") User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:16284 Archived-At: Andreas Schwab writes: > Michael Albinus 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).