From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ian Eure Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#1933: 23.0.60; [PATCH] dir-local variables don't work on remote files Date: Fri, 16 Jan 2009 10:08:27 -0800 Message-ID: Reply-To: Ian Eure , 1933@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=WINDOWS-1252; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1232130285 16515 80.91.229.12 (16 Jan 2009 18:24:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 16 Jan 2009 18:24:45 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jan 16 19:25:56 2009 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 1LNtO2-0002QD-Rs for geb-bug-gnu-emacs@m.gmane.org; Fri, 16 Jan 2009 19:25:43 +0100 Original-Received: from localhost ([127.0.0.1]:47396 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LNtMm-0006du-22 for geb-bug-gnu-emacs@m.gmane.org; Fri, 16 Jan 2009 13:24:24 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LNtLx-0005tH-GU for bug-gnu-emacs@gnu.org; Fri, 16 Jan 2009 13:23:33 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LNtLv-0005rp-KD for bug-gnu-emacs@gnu.org; Fri, 16 Jan 2009 13:23:32 -0500 Original-Received: from [199.232.76.173] (port=53710 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LNtLu-0005r8-S6 for bug-gnu-emacs@gnu.org; Fri, 16 Jan 2009 13:23:30 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:51289) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LNtLt-00020s-5O for bug-gnu-emacs@gnu.org; Fri, 16 Jan 2009 13:23:29 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0GINQDq030235; Fri, 16 Jan 2009 10:23:27 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n0GIF3j9027616; Fri, 16 Jan 2009 10:15:03 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Ian Eure Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 16 Jan 2009 18:15:02 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 1933 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.123212944027440 (code B ref -1); Fri, 16 Jan 2009 18:15:02 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 16 Jan 2009 18:10:40 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0GIAb5h027434 for ; Fri, 16 Jan 2009 10:10:38 -0800 Original-Received: from mx10.gnu.org ([199.232.76.166]:53629) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LNt85-0004Ax-B8 for emacs-pretest-bug@gnu.org; Fri, 16 Jan 2009 13:09:13 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LNt9P-0007jD-7L for emacs-pretest-bug@gnu.org; Fri, 16 Jan 2009 13:10:36 -0500 Original-Received: from asmtpout028.mac.com ([17.148.16.103]:33215) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LNt9O-0007iD-Cj for emacs-pretest-bug@gnu.org; Fri, 16 Jan 2009 13:10:34 -0500 Original-Received: from [192.168.1.198] (adsl-68-125-68-21.dsl.pltn13.pacbell.net [68.125.68.21]) by asmtp028.mac.com (Sun Java(tm) System Messaging Server 6.3-7.03 (built Aug 7 2008; 32bit)) with ESMTPSA id <0KDK000JBT5FR810@asmtp028.mac.com> for emacs-pretest-bug@gnu.org; Fri, 16 Jan 2009 10:10:29 -0800 (PST) X-Mailer: Apple Mail (2.930.3) X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (1203?) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Fri, 16 Jan 2009 13:23:32 -0500 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:24218 gmane.emacs.pretest.bugs:23702 Archived-At: I guess for speed reasons, dir-local-variables don=92t work when opening = =20 remote fiales. Which is unfortunate for me, since I need them. Here=92s =20= a patch against HEA which implements a simple switch for it, defaulted =20= to the current behavior. --- files.el.~1.1032.~ 2009-01-16 09:54:05.000000000 -0800 +++ files.el 2009-01-16 10:03:58.000000000 -0800 @@ -170,6 +170,11 @@ :type '(repeat regexp) :group 'find-file) +(defcustom dir-locals-apply-to-remote nil + "Non-nil means dir-local variables will be applied to remote files." + :type 'boolean + :group 'find-file) + (defvar buffer-file-number nil "The device number and file number of the file visited in the =20 current buffer. The value is a list of the form (FILENUM DEVNUM). @@ -3323,7 +3328,8 @@ without applying them." (when (and enable-local-variables (buffer-file-name) - (not (file-remote-p (buffer-file-name)))) + (and (file-remote-p (buffer-file-name)) + dir-locals-apply-to-remote)) ;; Find the variables file. (let ((variables-file (dir-locals-find-file (buffer-file-name))) (class nil) In GNU Emacs 23.0.60.1 (i386-apple-darwin9.6.0, NS apple-appkit-949.43) of 2009-01-16 on neutron.local Windowing system distributor `Apple', version 10.3.949 configured using `configure '--with-ns'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: nil value of $XMODIFIERS: nil locale-coding-system: nil default-enable-multibyte-characters: t Major mode: Emacs-Lisp Minor modes in effect: diff-auto-refine-mode: t erc-track-mode: t erc-track-minor-mode: t erc-spelling-mode: t erc-ring-mode: t erc-pcomplete-mode: t erc-netsplit-mode: t erc-match-mode: t erc-button-mode: t erc-fill-mode: t erc-autojoin-mode: t erc-irccontrols-mode: t erc-noncommands-mode: t erc-readonly-mode: t erc-scrolltobottom-mode: t light-symbol-mode: t hl-line-mode: t eldoc-mode: t which-function-mode: t twit-mode: t yas/minor-mode: t shell-dirtrack-mode: t ime-bindings: t show-paren-mode: t recentf-mode: t iswitchb-mode: t auto-insert-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t size-indication-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t abbrev-mode: t Recent input: C-h v p h p u p C-x o C-x k RET C-x o C-h v u s e r - m C-x o C-x k RET C-x o C-x b M-v M-v C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p M-f C-f C-M-@ M-w C-n C-n C-n C-e M-( s e t q SPC C-y SPC t C-e C-x C-e C-x o C-x b C a c C-x k RET y C-x k RET C-x b C-x v =3D C-v M-> M-< C-x o C-x C-v u C-g C-x o M-n M-> M-v M-v C-x C-g C-v C-x 4 0 C-x v u y C-h v b e f o r e - s a M-: M-( s e t q SPC b e f M-/ - M-/ SPC n i l C-x 1 C-x b s c r M-< C-x k RET C-x b l i M-< C-SPC C-n C-n C-n C-e M-w C-x b M-< C-s : f i n d - f i l e C-n C-p C-s C-s M-< C-s d e f c u s t o n C-v C-v C-v C-v C-n C-n C-n C-e C-y C-x b C-n C-p C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-p M-m C-M-k C-_ C-x b C-s h a s c k - d i r - l o C-s C-n C-n C-n C-n C-n C-e C-y C-M-k C-p C-e M-` M-` C-x =3D C-x o C-x 4 0 C-x C-s C-x v =3D C-v M-v C-x C-w ~ / C-g C-g C-x o Recent messages: Mark set Mark saved where search started Mark set Undo! Mark saved where search started Mark set Saving file /Users/ieure/Projects/emacs/lisp/files.el... Wrote /Users/ieure/Projects/emacs/lisp/files.el Finding changes in /Users/ieure/Projects/emacs/lisp/files.el...done Quit Quit=