all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Tom Tromey <tromey@redhat.com>,
	"T.V. Raman" <tv.raman.tv@gmail.com>,
	emacs-devel@gnu.org
Subject: Re: files.el: Patch to make project-settings optional/customizable
Date: Thu, 20 Nov 2008 00:45:05 +0200	[thread overview]
Message-ID: <87iqqjcp3j.fsf@jurta.org> (raw)
In-Reply-To: <jwv4p24tr5q.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Tue, 18 Nov 2008 21:01:37 -0500")

> As for its name: we're not wedded to it, AFAIK.  It was the result of
> a pretty long thread, so it's not going to be easy to find something
> else that's more or less consensual.  But for starters, if people could
> argue about why it's "ugly", maybe we can tweak it.

Looking at the current documentation and function names we can see
a wide diversity of used terms:

  directory local variables
  dir-settings
  variable settings
  project-bindings
  project settings
  directory-project
  project classes (that have nothing to do with OOP!)

All this is very confusing.

In http://thread.gmane.org/gmane.emacs.devel/78366/focus=78378
Richard said that the term "project" is misleading and asked to
rename "project" in the documentation and the function names.
But for unknown reasons that was not really done for the function names.

Also in http://thread.gmane.org/gmane.emacs.devel/78366/focus=78404
Stefan asked to rename "project" to "directory variables" or
"directory-local variables" that was eventually renamed in the manual but
not in code.  And even Tom tended to think that "project" is a misnomer ;)
http://thread.gmane.org/gmane.emacs.devel/77852/focus=78054

So let's get rid of "project" in the function names and use the common
prefix dir-local-variables by analogy with file-local-variables.
This also suggest renaming "bindings" and "settings" to "variables".

Since the only term the user have to remember will be "directory-local
variables" this suggests using a file name derived from it.  Since
the file name should be short a good candidate is ".dir-locals.el".

It is similar to the file name used by the good package
http://www.loveshack.ukfsn.org/emacs/dir-locals.el that is now
obsoleted after the same functionality is implemented now in files.el.
But dir-locals.el uses a different file name, so ".dir-locals.el" has no
conflict with this package and can be considered as inheriting a good
file name from it.

I've also checked in long threads
http://thread.gmane.org/gmane.emacs.devel/74257
http://thread.gmane.org/gmane.emacs.devel/77852
http://thread.gmane.org/gmane.emacs.devel/78366
http://thread.gmane.org/gmane.emacs.devel/97396
that the file name ".dir-locals.el" doesn't contradict
the reached consensus, because

1. it is still a dotfile with a leading . in its name,
2. the file name ends with `.el',
3. there is no `emacs' in the name.

-- 
Juri Linkov
http://www.jurta.org/emacs/




  parent reply	other threads:[~2008-11-19 22:45 UTC|newest]

Thread overview: 60+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-13 14:29 files.el: Patch to make project-settings optional/customizable T.V. Raman
2008-11-13 15:20 ` Chong Yidong
2008-11-13 16:07   ` Dan Nicolaescu
2008-11-13 16:19     ` Dan Nicolaescu
2008-11-13 16:45       ` Tom Tromey
2008-11-13 17:14         ` Chong Yidong
2008-11-13 17:28           ` Dan Nicolaescu
2008-11-13 17:55             ` Juanma Barranquero
2008-11-13 17:59               ` Dan Nicolaescu
2008-11-13 19:13                 ` Juanma Barranquero
2008-11-13 19:00               ` Tom Tromey
2008-11-13 19:15                 ` Juanma Barranquero
2008-11-13 18:26             ` Chong Yidong
2008-11-13 18:48               ` Dan Nicolaescu
2008-11-18 16:36                 ` Dan Nicolaescu
2008-11-18 22:04                   ` Juri Linkov
2008-11-18 22:15                     ` Dan Nicolaescu
2008-11-18 22:42                       ` Juanma Barranquero
2008-11-18 23:18                         ` Dan Nicolaescu
2008-11-18 23:41                           ` Juanma Barranquero
2008-11-18 22:59                     ` Stefan Monnier
2008-11-18 23:31                       ` Juri Linkov
2008-11-18 23:33                       ` Chong Yidong
2008-11-18 23:41                         ` Dan Nicolaescu
2008-11-18 23:50                           ` Juanma Barranquero
2008-11-19  0:14                             ` Dan Nicolaescu
2008-11-19  1:48                               ` Chong Yidong
2008-11-19  8:26                                 ` Juanma Barranquero
2008-11-19 12:52                               ` Richard M. Stallman
2008-11-18 23:37                       ` Juanma Barranquero
2008-11-19  2:01                         ` Stefan Monnier
2008-11-19  8:39                           ` Juanma Barranquero
2008-11-19 13:27                           ` Dan Nicolaescu
2008-11-19 22:45                           ` Juri Linkov [this message]
2008-11-19 22:58                             ` Tom Tromey
2008-11-20  2:18                             ` Stefan Monnier
2008-11-22 19:08                               ` Juri Linkov
2008-11-22 19:40                                 ` Dan Nicolaescu
2008-11-22 19:51                                   ` Juri Linkov
2008-11-22 20:20                                     ` Dan Nicolaescu
2008-11-22 22:03                                       ` Juanma Barranquero
2008-11-23  3:34                                       ` Miles Bader
2008-11-23  5:27                                         ` Stefan Monnier
2008-11-23  5:36                                           ` Juanma Barranquero
2008-11-23  5:58                                             ` Stefan Monnier
2008-11-23  8:10                                           ` Dan Nicolaescu
2008-11-23 10:45                                             ` Juri Linkov
2008-11-23 12:10                                               ` Dan Nicolaescu
2008-11-23 12:41                                                 ` Juanma Barranquero
2008-11-23 17:16                                                   ` Dan Nicolaescu
2008-11-23 17:45                                                     ` Juanma Barranquero
2008-11-23 21:21                                                       ` Dan Nicolaescu
2008-11-24  2:14                                                         ` Stephen J. Turnbull
2008-11-24  3:06                                               ` Dan Nicolaescu
2008-11-24  5:35                                                 ` Chong Yidong
2008-11-22  4:03                             ` Kevin Rodgers
2008-11-19  4:07                         ` Stephen J. Turnbull
2008-11-13 19:04               ` Tom Tromey
2008-11-13 19:23           ` Tom Tromey
2008-11-13 19:55             ` Juanma Barranquero

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=87iqqjcp3j.fsf@jurta.org \
    --to=juri@jurta.org \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=tromey@redhat.com \
    --cc=tv.raman.tv@gmail.com \
    /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.