From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: globalized minor modes - priority over mode hook? Date: Tue, 27 Apr 2010 00:45:20 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1272321956 27361 80.91.229.12 (26 Apr 2010 22:45:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 26 Apr 2010 22:45:56 +0000 (UTC) Cc: David Reitter , "emacs-devel@gnu.org devel" To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 27 00:45:55 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 1O6X3r-0008A5-0l for ged-emacs-devel@m.gmane.org; Tue, 27 Apr 2010 00:45:55 +0200 Original-Received: from localhost ([127.0.0.1]:39811 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O6X3p-00012h-UZ for ged-emacs-devel@m.gmane.org; Mon, 26 Apr 2010 18:45:53 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O6X3i-0000xY-6H for emacs-devel@gnu.org; Mon, 26 Apr 2010 18:45:46 -0400 Original-Received: from [140.186.70.92] (port=45279 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O6X3g-0000uI-TT for emacs-devel@gnu.org; Mon, 26 Apr 2010 18:45:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O6X3e-0000JR-KP for emacs-devel@gnu.org; Mon, 26 Apr 2010 18:45:44 -0400 Original-Received: from mail-fx0-f41.google.com ([209.85.161.41]:42652) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O6X3e-0000JN-Fw for emacs-devel@gnu.org; Mon, 26 Apr 2010 18:45:42 -0400 Original-Received: by fxm1 with SMTP id 1so172593fxm.0 for ; Mon, 26 Apr 2010 15:45:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=Dk9ve1lJsMpK1tKG3wXLljpJyTTZVvifUnI68D44OhM=; b=UkM2BERq+N/Joorc7fJ2JfO0TuCNa36NC6Q0q6veaExiCPv92kB88Dc3CEUw0DD1zN WM1+BF+H/xWxWL7Tb/Eyi8LXJxvtnSp1fY+KkdD4/nxBbHpl3b+KLQDq3bNFR3V8Zd1V 6mz6e9eU3DsnP/vZhggKL/j0Le0zfDBSz/AjY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=MS1G5IcBUlJCH9aSoD4yMmZbI2D9jS24pTOeXilA9zoKRyUi3yNoxFoE5SG3jBktpN tNTHSP8F7yQAHB4+LKPPNvN+z5PAhXS/190civKIeziWjhoxJxBcy5j3OSQAW+eSKYs9 gDiQ2mC9VCi4OfGN5a9dg+F3zR7lMksVSQYuM= Original-Received: by 10.239.137.197 with SMTP id m5mr427942hbm.62.1272321940169; Mon, 26 Apr 2010 15:45:40 -0700 (PDT) Original-Received: by 10.239.164.81 with HTTP; Mon, 26 Apr 2010 15:45:20 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:124233 Archived-At: On Mon, Apr 26, 2010 at 7:56 PM, Stefan Monnier wrote: >>>> `run-mode-hooks' runs the mode hooks first, then >>>> after-change-major-mode-hooks. >>> That would be a bug. =C2=A0Do you have a recipe to reproduce it? >> Yes, below. > > Oops, sorry, I misunderstood. > Yes, indeed, it will be run last. =C2=A0And 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. Sounds great.