[Top][All Lists]

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

Re: Patch: Blunderbuss ".dir-locals.el" raises everything in its path!!

From: Stefan Monnier
Subject: Re: Patch: Blunderbuss ".dir-locals.el" raises everything in its path!!
Date: Wed, 15 Jul 2009 16:20:15 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.94 (gnu/linux)

> Yidong, hack-local-variables desperately needs refactoring.

A refactoring would not be unwelcome.

> It was sort of tolerable when only file local variables were involved,
> but now it's all but unreadable and ununderstandable

I'd agree.

> (should this just be derstandable?)

Depends if you're constructivist or classicist.

> In particular, there's no great care taken about how the local variable
> settings from the two sources get combined.  How about the following
> idea: when a setting from the Local Variables: section is to be pushed
> onto file-local-variables-alist, any exisiting element for the same
> variable is first removed?

That would make a lot of sense, since it reflects what happens to the
variable's value in the end.  Also it does correspond to the behavior we
want that file-local should take precedence over dir-local.


reply via email to

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