all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: Leo <sdl.web@gmail.com>
Cc: tramp-devel@gnu.org, 6731@debbugs.gnu.org
Subject: bug#6731: Can tramp load .dir-locals.el in a project?
Date: Mon, 02 Aug 2010 16:36:27 +0200	[thread overview]
Message-ID: <nq62ztrsic.fsf__47126.560068182$1280759906$gmane$org@alcatel-lucent.com> (raw)
In-Reply-To: <m1wrsavakh.fsf@cam.ac.uk> (Leo's message of "Sun, 1 Aug 2010 13:25:50 +0200")

Leo <sdl.web@gmail.com> 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.¹ I think it is important enough for the
> .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.





           reply	other threads:[~2010-08-02 14:36 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <m1wrsavakh.fsf@cam.ac.uk>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='nq62ztrsic.fsf__47126.560068182$1280759906$gmane$org@alcatel-lucent.com' \
    --to=michael.albinus@gmx.de \
    --cc=6731@debbugs.gnu.org \
    --cc=sdl.web@gmail.com \
    --cc=tramp-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.