From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Re: dir-locals.el take precedence over user's mode-hook changes Date: Wed, 31 Dec 2008 13:41:47 -0800 (PST) Message-ID: <200812312141.mBVLflDN005631@mothra.ics.uci.edu> 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 1230759729 14790 80.91.229.12 (31 Dec 2008 21:42:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 31 Dec 2008 21:42:09 +0000 (UTC) Cc: Juri Linkov , Tom Tromey , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 31 22:43:16 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 1LI8qR-0008QL-TZ for ged-emacs-devel@m.gmane.org; Wed, 31 Dec 2008 22:43:16 +0100 Original-Received: from localhost ([127.0.0.1]:43397 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LI8pD-0008Cl-Vz for ged-emacs-devel@m.gmane.org; Wed, 31 Dec 2008 16:42:00 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LI8p9-0008CW-Rb for emacs-devel@gnu.org; Wed, 31 Dec 2008 16:41:55 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LI8p8-0008CK-Fl for emacs-devel@gnu.org; Wed, 31 Dec 2008 16:41:54 -0500 Original-Received: from [199.232.76.173] (port=43321 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LI8p8-0008CH-AI for emacs-devel@gnu.org; Wed, 31 Dec 2008 16:41:54 -0500 Original-Received: from sallyv2.ics.uci.edu ([128.195.1.120]:52411) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1LI8p7-0007cf-PT for emacs-devel@gnu.org; Wed, 31 Dec 2008 16:41:54 -0500 Original-Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by sallyv2.ics.uci.edu (8.13.7+Sun/8.13.7) with ESMTP id mBVLflY9020948; Wed, 31 Dec 2008 13:41:47 -0800 (PST) Original-Received: (from dann@localhost) by mothra.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id mBVLflDN005631; Wed, 31 Dec 2008 13:41:47 -0800 (PST) In-Reply-To: (Stefan Monnier's message of "Wed, 31 Dec 2008 12:27:38 -0500") Original-Lines: 22 X-ICS-MailScanner-Information: Please contact the ISP for more information X-ICS-MailScanner-ID: mBVLflY9020948 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (beta) 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:107480 Archived-At: Stefan Monnier writes: > > 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. Please do that, this is a long standing issue...