From unknown Mon Jun 23 02:21:13 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#6731 <6731@debbugs.gnu.org> To: bug#6731 <6731@debbugs.gnu.org> Subject: Status: 23.2; remote .dir-locals.el Reply-To: bug#6731 <6731@debbugs.gnu.org> Date: Mon, 23 Jun 2025 09:21:13 +0000 retitle 6731 23.2; remote .dir-locals.el reassign 6731 emacs submitter 6731 Leo severity 6731 normal tag 6731 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 26 10:29:53 2010 Received: (at submit) by debbugs.gnu.org; 26 Jul 2010 14:29: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 1OdOgi-0003wv-0c for submit@debbugs.gnu.org; Mon, 26 Jul 2010 10:29:52 -0400 Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OdOgg-0003wp-LS for submit@debbugs.gnu.org; Mon, 26 Jul 2010 10:29:51 -0400 Received: from lists.gnu.org ([199.232.76.165]:52518) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1OdOgl-0006qR-RB for submit@debbugs.gnu.org; Mon, 26 Jul 2010 10:29:55 -0400 Received: from [140.186.70.92] (port=32982 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OdOgg-0002mE-DG for bug-gnu-emacs@gnu.org; Mon, 26 Jul 2010 10:29:55 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_MED,T_RP_MATCHES_RCVD,T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OdOgb-00011R-Di for bug-gnu-emacs@gnu.org; Mon, 26 Jul 2010 10:29:50 -0400 Received: from ppsw-30.csi.cam.ac.uk ([131.111.8.130]:55593) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OdOgb-00011D-8I for bug-gnu-emacs@gnu.org; Mon, 26 Jul 2010 10:29:45 -0400 X-Cam-AntiVirus: no malware found X-Cam-SpamDetails: not scanned X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/ Received: from cpc1-cmbg13-0-0-cust596.cmbg.cable.ntl.com ([86.9.122.85]:54359 helo=Victoria.local) by ppsw-30.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.156]:587) with esmtpsa (PLAIN:sl392) (TLSv1:DHE-RSA-AES128-SHA:128) id 1OdOgZ-0007gT-ec (Exim 4.72) for bug-gnu-emacs@gnu.org (return-path ); Mon, 26 Jul 2010 15:29:43 +0100 From: Leo To: bug-gnu-emacs@gnu.org Subject: 23.2; remote .dir-locals.el Date: Mon, 26 Jul 2010 15:29:42 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -5.4 (-----) X-Debbugs-Envelope-To: submit 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 (------) It looks like hack-dir-local-variables ignores .dir-locals.el for remote files. I think if a project depends on .dir-locals.el it will not be remotely editable without loading .dir-locals.el. I wonder if this could be improved. Thanks. In GNU Emacs 23.2.11 (x86_64-apple-darwin10.4.0, Carbon Version 1.6.0 AppKit 1038.32) of 2010-07-23 on Victoria.local Windowing system distributor `Apple Inc.', version 10.6.4 From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 02 10:36:08 2010 Received: (at 6731) by debbugs.gnu.org; 2 Aug 2010 14:36:08 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ofw7b-0005bv-Mr for submit@debbugs.gnu.org; Mon, 02 Aug 2010 10:36:08 -0400 Received: from mailrelay2.alcatel.de ([194.113.59.96]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ofw7Z-0005bZ-I7 for 6731@debbugs.gnu.org; Mon, 02 Aug 2010 10:36:06 -0400 Received: from destgsu0048.de.alcatel-lucent.com (destgsu0048.de.alcatel-lucent.com [149.204.242.4]) by mailrelay2.alcatel.de (8.14.3/8.14.3/ICT) with ESMTP id o72EaRFb001897; Mon, 2 Aug 2010 16:36:27 +0200 Received: from slbhn1.alcatel.de (slbhn1.de.alcatel-lucent.com [149.204.90.35]) by destgsu0048.de.alcatel-lucent.com (8.12.3/8.12.3) with ESMTP id o72EaRRZ013459; Mon, 2 Aug 2010 16:36:27 +0200 (MEST) From: Michael Albinus To: Leo Subject: Re: Can tramp load .dir-locals.el in a project? References: Date: Mon, 02 Aug 2010 16:36:27 +0200 In-Reply-To: (Leo's message of "Sun, 1 Aug 2010 13:25:50 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Alcanet-virus-scanned: o72EaRRZ013459 at destgsu0048.de.alcatel-lucent.com X-Scanned-By: MIMEDefang 2.64 on 149.204.45.73 X-Spam-Score: -5.3 (-----) X-Debbugs-Envelope-To: 6731 Cc: tramp-devel@gnu.org, 6731@debbugs.gnu.org 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.6 (------) Leo writes: > On 2010-05-20 17:04 +0100, Michael Albinus wrote: >> | If you put a file with a special name `.dir-locals.el'(1) in a >> | directory, Emacs will read it when it visits any file in that directory >> | or any of its subdirectories, and apply the settings it specifies to >> | the file's buffer. Emacs searches for `.dir-locals.el' starting in the >> | directory of the visited file, and moving up the directory tree. (To >> | avoid slowdown, this search is skipped for remote files.) >> >> I wouldn't like to overrule this on my own. If you believe it is >> important, you might ask on the emacs-devel mailing list for this. Maybe >> one could enable this by a custom variable. > > I have reported this as a bug.=C2=B9 I think it is important enough for t= he > .dir-locals.el to be loaded, otherwise, users end up editing files in a > way non-conforming to the requirement of a project and editing is the > most important reason to use tramp for the comfort of Emacs. > > Would be interesting to hear your thought and input. Thanks. Loading .dir-locals.el is a non-trivial operation, because several directories must be traversed for existence check of such a file, starting at the current directory, and navigating up to "/". This might be time-consuming. I suspect, this is the reason it has been disabled for remote directories. One could improve the checks by adding a new file name handler for searching and loading of .dir-locals.el. This would allow to apply all checks at once on the remote side, with a better performance. A similar file name handler was introduced for `vc-registered', which was improved by a special implementation for remote files. > Kind regards, > Leo Best regards, Michael. 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:56 2012 Received: (at 6731-done) by debbugs.gnu.org; 6 Jun 2012 14:06:56 +0000 Received: from localhost ([127.0.0.1]:60506 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1ScGsy-0005c9-BX for submit@debbugs.gnu.org; Wed, 06 Jun 2012 10:06:56 -0400 Received: from mailout-de.gmx.net ([213.165.64.22]:41864) by debbugs.gnu.org with smtp (Exim 4.72) (envelope-from ) id 1ScGsd-0005bQ-29 for 6731-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: 6731-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 02:21:13 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