From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: dir-locals.el take precedence over user's mode-hook changes Date: Tue, 30 Dec 2008 20:43:19 -0500 Message-ID: References: <200812241903.mBOJ3SjQ009445@mothra.ics.uci.edu> <87wsdpp9q8.fsf@jurta.org> <87sko5dxko.fsf@jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1230687817 22992 80.91.229.12 (31 Dec 2008 01:43:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 31 Dec 2008 01:43:37 +0000 (UTC) Cc: Tom Tromey , Dan Nicolaescu , emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 31 02:44:44 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LHq8X-0001iV-Ni for ged-emacs-devel@m.gmane.org; Wed, 31 Dec 2008 02:44:41 +0100 Original-Received: from localhost ([127.0.0.1]:53734 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LHq7K-0006zv-2R for ged-emacs-devel@m.gmane.org; Tue, 30 Dec 2008 20:43:26 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LHq7G-0006zq-2p for emacs-devel@gnu.org; Tue, 30 Dec 2008 20:43:22 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LHq7E-0006ze-KW for emacs-devel@gnu.org; Tue, 30 Dec 2008 20:43:20 -0500 Original-Received: from [199.232.76.173] (port=60479 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LHq7E-0006zb-Fs for emacs-devel@gnu.org; Tue, 30 Dec 2008 20:43:20 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:46199) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LHq7E-00067x-4r for emacs-devel@gnu.org; Tue, 30 Dec 2008 20:43:20 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqYEALZcWklLd+aG/2dsb2JhbACBbMsThkSBZw X-IronPort-AV: E=Sophos;i="4.36,304,1228107600"; d="scan'208";a="31627862" Original-Received: from 75-119-230-134.dsl.teksavvy.com (HELO ceviche.home) ([75.119.230.134]) by ironport2-out.teksavvy.com with ESMTP; 30 Dec 2008 20:43:19 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id 5D660B41B5; Tue, 30 Dec 2008 20:43:19 -0500 (EST) In-Reply-To: <87sko5dxko.fsf@jurta.org> (Juri Linkov's message of "Wed, 31 Dec 2008 01:59:03 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:107438 Archived-At: >> So rather than "just" switch the order, we need to find a way for the >> user to be able to cleanly specify which behavior he wants on a case by >> case basis. > Maybe something like > ;; Pre-Local Variables: > ;; End: > for variables set before mode hook or > ;; Post-Local Variables: > ;; End: > after mode hook. Hmm... interesting. I was thinking of doing it in the .emacs instead, since often the preference depends also on what is placed on the mode-hook, and the mode-hook is under the control of the end user, whereas the dir-locals and file-variables may be under the control of someone else. >> Could you explain why you think it should be in dir-locals rather than >> in the file? > In the Emacs tree we have more than 50 ChangeLog files and counting. Indeed, makes sense. Sorry for not thinking. >> Please report this bug. > Done. (Bug#1744) Thank you, Stefan