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: Specifying mode in file variables trouble Date: Tue, 23 Sep 2008 16:33:37 -0400 Message-ID: References: <48D44761.6000809@gmail.com> <87ljxny6n8.fsf@catnip.gol.com> <48D44C79.9020004@gmail.com> <48D63F30.8060102@gmail.com> <48D6E8FB.4070108@gmail.com> <48D79A25.7050000@gmail.com> <48D8BD92.5080403@gmail.com> <48D925EA.3030703@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1222202077 20961 80.91.229.12 (23 Sep 2008 20:34:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 23 Sep 2008 20:34:37 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org To: "Lennart Borgman \(gmail\)" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 23 22:35:33 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 1KiEbT-00065m-9l for ged-emacs-devel@m.gmane.org; Tue, 23 Sep 2008 22:35:23 +0200 Original-Received: from localhost ([127.0.0.1]:45582 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KiEaR-00031d-DD for ged-emacs-devel@m.gmane.org; Tue, 23 Sep 2008 16:34:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KiEZv-0002pY-9c for emacs-devel@gnu.org; Tue, 23 Sep 2008 16:33:47 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KiEZu-0002ok-7N for emacs-devel@gnu.org; Tue, 23 Sep 2008 16:33:46 -0400 Original-Received: from [199.232.76.173] (port=51794 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KiEZt-0002oe-Sy for emacs-devel@gnu.org; Tue, 23 Sep 2008 16:33:46 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:43300) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KiEZq-0003We-Lb; Tue, 23 Sep 2008 16:33:42 -0400 Original-Received: from alfajor.home (vpn-132-204-232-64.acd.umontreal.ca [132.204.232.64]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id m8NKXctF000951; Tue, 23 Sep 2008 16:33:38 -0400 Original-Received: by alfajor.home (Postfix, from userid 20848) id 01A9B1C138; Tue, 23 Sep 2008 16:33:37 -0400 (EDT) In-Reply-To: <48D925EA.3030703@gmail.com> (Lennart Borgman's message of "Tue, 23 Sep 2008 19:22:50 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3110=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:104078 Archived-At: > So the order of running the hooks is > childs local mode hook > which also include running childs global hook (at the `t') > parents' mode hooks No. Without the delay-mode-hooks thingy, the way it works is: ; ; ; ; while the delay-mode-hooks trick changes it to: ; ; ; ; > If this is correct then I think that adding the call to > mumamo-restore-most-buffer-locals first in the childs local mode hook > would be the best. It sounds like you want it first in the parent's mode hook. Stefan