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: Wed, 31 Dec 2008 12:27:38 -0500 Message-ID: References: <200812241903.mBOJ3SjQ009445@mothra.ics.uci.edu> <87wsdpp9q8.fsf@jurta.org> <87sko5dxko.fsf@jurta.org> <200812310154.mBV1s5at001247@mothra.ics.uci.edu> <87hc4kmu4c.fsf@jurta.org> <200812311617.mBVGHAbt004745@mothra.ics.uci.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1230744481 2355 80.91.229.12 (31 Dec 2008 17:28:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 31 Dec 2008 17:28:01 +0000 (UTC) Cc: Juri Linkov , Tom Tromey , emacs-devel@gnu.org To: Dan Nicolaescu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 31 18:29:08 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 1LI4sT-0000h2-Qw for ged-emacs-devel@m.gmane.org; Wed, 31 Dec 2008 18:29:06 +0100 Original-Received: from localhost ([127.0.0.1]:52401 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LI4rD-0001al-9e for ged-emacs-devel@m.gmane.org; Wed, 31 Dec 2008 12:27:47 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LI4r7-0001Xz-Ke for emacs-devel@gnu.org; Wed, 31 Dec 2008 12:27:41 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LI4r6-0001VW-HF for emacs-devel@gnu.org; Wed, 31 Dec 2008 12:27:41 -0500 Original-Received: from [199.232.76.173] (port=52650 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LI4r6-0001VJ-Bi for emacs-devel@gnu.org; Wed, 31 Dec 2008 12:27:40 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:55234) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LI4r6-00005n-26 for emacs-devel@gnu.org; Wed, 31 Dec 2008 12:27:40 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqYEAG86W0lLd+aG/2dsb2JhbACBbMpohkSBaYJI X-IronPort-AV: E=Sophos;i="4.36,309,1228107600"; d="scan'208";a="31661637" Original-Received: from 75-119-230-134.dsl.teksavvy.com (HELO pastel.home) ([75.119.230.134]) by ironport2-out.teksavvy.com with ESMTP; 31 Dec 2008 12:27:39 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id E0BDD8CF4; Wed, 31 Dec 2008 12:27:38 -0500 (EST) In-Reply-To: <200812311617.mBVGHAbt004745@mothra.ics.uci.edu> (Dan Nicolaescu's message of "Wed, 31 Dec 2008 08:17:10 -0800 (PST)") 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:107469 Archived-At: > Unfortunately this does not work, it would turn the mode off if it's > already turned on. > If you have in your .emacs: > (add-hook 'emacs-lisp-mode-hook 'my-emacs-lisp-mode-hook) > (defun my-emacs-lisp-mode-hook () (auto-fill-mode 1)) > And add to an elisp file: > ;; Local Variables: > ;; mode: auto-fill > ;; End: > auto-fill-mode will not be turned on for that elisp file. Yes, that's a more general problem. I'd be inclined to change it so that the minor mode is unconditionally turned ON rather than toggled. Stefan