[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: files.el: Patch to make project-settings optional/customizable

From: Dan Nicolaescu
Subject: Re: files.el: Patch to make project-settings optional/customizable
Date: Sat, 22 Nov 2008 12:20:11 -0800 (PST)

Juri Linkov <address@hidden> writes:

  > > Since dir-locals-file is used in exactly one function, it would be
  > > better to just let bind it there.
  > > And defconsts are not exactly constants in elisp, so if someone does a
  > > (setq dir-locals-file BLAH), the problem that started this whole
  > > discussion still happens.  More, we don't have defconsts for
  > > "Local Variables"  or "-*-" which serve a similar purpose but at file
  > > level.
  > I don't care how constant constants are.  Function definitions are not
  > constant either, so everyone can redefine the function with own file name
  > and have the same problem ;-)  IOW, defconst says the user should not 
  > when the user changes its value, so I see no problems with defconst.

How about the more important fact that this particular constant has
exactly one user (and just two instances in that single user), the
common practice for that is to just let bind it in the function that
uses it.
Sorry, but this feels like trying to sneak in something that has been
explicitly rejected...

reply via email to

[Prev in Thread] Current Thread [Next in Thread]