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: globalized minor modes - priority over mode hook? Date: Mon, 26 Apr 2010 13:56:41 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1272304646 25830 80.91.229.12 (26 Apr 2010 17:57:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 26 Apr 2010 17:57:26 +0000 (UTC) Cc: "emacs-devel@gnu.org devel" To: David Reitter Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 26 19:57:25 2010 connect(): No such file or directory 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.69) (envelope-from ) id 1O6SYd-00057a-QN for ged-emacs-devel@m.gmane.org; Mon, 26 Apr 2010 19:57:25 +0200 Original-Received: from localhost ([127.0.0.1]:53275 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O6SYc-00022H-Mf for ged-emacs-devel@m.gmane.org; Mon, 26 Apr 2010 13:57:22 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O6SY2-0001Ok-L9 for emacs-devel@gnu.org; Mon, 26 Apr 2010 13:56:46 -0400 Original-Received: from [140.186.70.92] (port=47666 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O6SY1-0001Lw-14 for emacs-devel@gnu.org; Mon, 26 Apr 2010 13:56:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O6SXz-0006Nz-Mb for emacs-devel@gnu.org; Mon, 26 Apr 2010 13:56:44 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183]:38931 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O6SXz-0006Nr-JB for emacs-devel@gnu.org; Mon, 26 Apr 2010 13:56:43 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAE1x1UvO+KoL/2dsb2JhbACcPnLEA4ULBIwN X-IronPort-AV: E=Sophos;i="4.52,274,1270440000"; d="scan'208";a="62527193" Original-Received: from 206-248-170-11.dsl.teksavvy.com (HELO pastel.home) ([206.248.170.11]) by ironport2-out.pppoe.ca with ESMTP; 26 Apr 2010 13:56:42 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id F0C607F22; Mon, 26 Apr 2010 13:56:41 -0400 (EDT) In-Reply-To: (David Reitter's message of "Mon, 26 Apr 2010 11:41:06 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.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:124229 Archived-At: >>> `run-mode-hooks' runs the mode hooks first, then >>> after-change-major-mode-hooks. >> That would be a bug. Do you have a recipe to reproduce it? > Yes, below. Oops, sorry, I misunderstood. Yes, indeed, it will be run last. And it will also be run first if the mode is written "properly" (by inheriting from some other mode). We should maybe split this into two parts: fundamental-mode-hook and after-change-major-mode-hook, the first is the one run before any other mode hook and the second is run after all other mode hooks. Stefan