From: Juri Linkov <juri@jurta.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: rms@gnu.org, emacs-devel@gnu.org
Subject: Re: Directory-local variables?
Date: Sat, 03 Jan 2009 02:46:20 +0200 [thread overview]
Message-ID: <874p0h6wtf.fsf@jurta.org> (raw)
In-Reply-To: <87ljtwle9d.fsf@jurta.org> (Juri Linkov's message of "Wed, 31 Dec 2008 14:29:02 +0200")
>> PS: it now occurs to me that the name ".dir-locals.el" is redundant.
>> It could just say ".locals.el" or ".local-variables.el" since it's
>> placed in a directory. Just like file variables are enclosed in
>> a "Local Variables" section rather than a "File Local
>> Variables" section.
>
> ".locals.el" is a reasonably short file name, and it looks nicer than
> ".dir-locals.el" without redundant "dir-" part. So perhaps we should
> finally settle on this name.
One thing that still disturbs me is that this file is not in the same
format as in a Local Variables: section.
1. File local variables
;; Local Variables:
;; mode: change-log
;; add-log-time-zone-rule: t
;; fill-column: 74
;; End:
2. Directory-wide file local variables
(change-log-mode .
((add-log-time-zone-rule . t)
(fill-column . 74)))
Two different formats for the same feature is a bad thing. It requires
complete rewriting of these settings when moving file local variables
to the directory-wide file and back. This is very inconvenient.
While it is not too late, I think we should use the same easy to write
format as in a Local Variables: section with keeping already implemented
features of directory-wide file variables (specifying multiply mode
settings in the same file).
Another thing that needs to be fixed is caching data from the
directory-wide file. Currently after changing the settings in this file
they don't become effective. We should check the file timestamp and
reread them.
--
Juri Linkov
http://www.jurta.org/emacs/
next prev parent reply other threads:[~2009-01-03 0:46 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-28 17:29 Directory-local variables? Richard M Stallman
2008-12-28 19:35 ` Eli Zaretskii
2008-12-29 0:30 ` Juri Linkov
2008-12-29 4:06 ` Eli Zaretskii
2008-12-29 22:09 ` Richard M Stallman
2008-12-29 22:19 ` Lennart Borgman
2008-12-30 0:05 ` Juri Linkov
2008-12-29 22:09 ` Richard M Stallman
2008-12-30 20:19 ` Stefan Monnier
2008-12-31 12:29 ` Juri Linkov
2009-01-03 0:46 ` Juri Linkov [this message]
2009-01-07 0:45 ` Juri Linkov
2009-01-12 18:21 ` Stefan Monnier
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=874p0h6wtf.fsf@jurta.org \
--to=juri@jurta.org \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
--cc=rms@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.