From unknown Mon Jun 23 07:47:19 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#1933 <1933@debbugs.gnu.org> To: bug#1933 <1933@debbugs.gnu.org> Subject: Status: 23.0.60; [PATCH] dir-local variables don't work on remote files Reply-To: bug#1933 <1933@debbugs.gnu.org> Date: Mon, 23 Jun 2025 14:47:19 +0000 retitle 1933 23.0.60; [PATCH] dir-local variables don't work on remote files reassign 1933 emacs submitter 1933 Ian Eure severity 1933 normal tag 1933 patch thanks From ieure@mac.com Fri Jan 16 10:10:40 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 16 Jan 2009 18:10:40 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.1 required=4.0 tests=FOURLA,MURPHY_DRUGS_REL8 autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 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 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 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 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 MIME-version: 1.0 Content-type: text/plain; charset=WINDOWS-1252; format=flowed; delsp=yes 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) Message-id: From: Ian Eure To: emacs-pretest-bug@gnu.org Content-transfer-encoding: quoted-printable X-Mailer: Apple Mail (2.930.3) Subject: 23.0.60; [PATCH] dir-local variables don't work on remote files Date: Fri, 16 Jan 2009 10:08:27 -0800 X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (1203?) 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= From rgm@gnu.org Sun Jan 18 12:22:50 2009 Received: (at control) by emacsbugs.donarmstrong.com; 18 Jan 2009 20:22:50 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: ** X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=2.3 required=4.0 tests=MISSING_SUBJECT,NOSUBJECT, VALID_BTS_CONTROL autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 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 n0IKMlnA002448 for ; Sun, 18 Jan 2009 12:22:48 -0800 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1LOe92-0007Kz-TZ; Sun, 18 Jan 2009 15:21:20 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18803.36672.857032.427796@fencepost.gnu.org> Date: Sun, 18 Jan 2009 15:21:20 -0500 From: Glenn Morris To: control tags 1702 - moreinfo severity 1933 wishlist severity 1939 wishlist From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 20 10:58:12 2009 Received: (at control) by debbugs.gnu.org; 20 Dec 2009 15:58:12 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NMOAe-0006FH-7M for submit@debbugs.gnu.org; Sun, 20 Dec 2009 10:58:12 -0500 Received: from colin-baker-v0.ics.uci.edu ([128.195.1.153]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NMOAc-0006FB-OB for control@debbugs.gnu.org; Sun, 20 Dec 2009 10:58:11 -0500 Received: from godzilla.ics.uci.edu (godzilla.ics.uci.edu [128.195.10.101]) by colin-baker-v0.ics.uci.edu (8.13.8/8.13.8) with ESMTP id nBKFvug3004692 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 20 Dec 2009 07:57:56 -0800 Received: (from dann@localhost) by godzilla.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id nBKFvuig021746; Sun, 20 Dec 2009 07:57:56 -0800 (PST) Date: Sun, 20 Dec 2009 07:57:56 -0800 (PST) Message-Id: <200912201557.nBKFvuig021746@godzilla.ics.uci.edu> From: Dan Nicolaescu To: control@debbugs.gnu.org Subject: X-Debbugs-No-Ack: yes Lines: 16 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-ICS-MailScanner-Information: Please send mail to helpdesk@ics.uci.edu or more information X-ICS-MailScanner-ID: nBKFvug3004692 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-0.155, required 5, autolearn=disabled, ALL_TRUSTED -1.44, MISSING_SUBJECT 1.28) X-ICS-MailScanner-From: dann@godzilla.ics.uci.edu X-Spam-Status: No X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org tags 3597 + patch tags 3904 + patch tags 4142 + patch tags 4951 + patch tags 4448 + patch tags 4286 + patch tags 2159 + patch tags 2746 + patch tags 1643 + patch tags 1933 + patch tags 3175 + patch tags 3887 + patch tags 4310 + patch tags 4546 + patch quit From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 23 20:45:52 2011 Received: (at control) by debbugs.gnu.org; 24 Feb 2011 01:45:53 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PsQHA-0000b3-Nn for submit@debbugs.gnu.org; Wed, 23 Feb 2011 20:45:52 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PsQH9-0000as-7K for control@debbugs.gnu.org; Wed, 23 Feb 2011 20:45:51 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1PsQH3-0008PO-Px for control@debbugs.gnu.org; Wed, 23 Feb 2011 20:45:45 -0500 Date: Wed, 23 Feb 2011 20:45:45 -0500 Message-Id: Subject: control message for bug 1933 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -6.3 (------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.3 (------) forcemerge 6731 1933 From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 06 10:06:55 2012 Received: (at 1933-done) by debbugs.gnu.org; 6 Jun 2012 14:06:55 +0000 Received: from localhost ([127.0.0.1]:60504 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1ScGsx-0005c2-4F for submit@debbugs.gnu.org; Wed, 06 Jun 2012 10:06:55 -0400 Received: from mailout-de.gmx.net ([213.165.64.22]:41830) by debbugs.gnu.org with smtp (Exim 4.72) (envelope-from ) id 1ScGsd-0005bP-2A for 1933-done@debbugs.gnu.org; Wed, 06 Jun 2012 10:06:54 -0400 Received: (qmail invoked by alias); 06 Jun 2012 14:04:20 -0000 Received: from p57BB96BE.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.150.190] by mail.gmx.net (mp072) with SMTP; 06 Jun 2012 16:04:20 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX192+dtuk9126TrN5LyLogoRoRA80v5WYaW6L7JEJZ /o0WvtsIrinLvU From: Michael Albinus To: Ian Eure , Leo Subject: Re: bug#1933: 23.0.60; [PATCH] dir-local variables don't work on remote files References: Date: Wed, 06 Jun 2012 16:04:17 +0200 In-Reply-To: (Ian Eure's message of "Fri, 16 Jan 2009 10:08:27 -0800") Message-ID: <87lik0leou.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Y-GMX-Trusted: 0 X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 1933-done Cc: 6731-done@debbugs.gnu.org, 1933-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) Version: 24.2 Ian Eure writes: Hi Ian and Leo, > I guess for speed reasons, dir-local-variables don=E2=80=99t work when op= ening > remote fiales. Which is unfortunate for me, since I need them. Here=E2=80= =99s > a patch against HEA which implements a simple switch for it, defaulted > to the current behavior. It took a while, but finally I have applied the patch, modified. The customer option is called `enable-remote-dir-locals'. When set to `t', remote .dir-locals files are evaluated as well. And I've fixed an error of the patch in the logic of the condition. I hope it is still useful for you. Best regards, Michael. From unknown Mon Jun 23 07:47:19 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 05 Jul 2012 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator