From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#35351: 27.0.50; Enable derived modes to run their own very-early 'change-major-mode-hook' code Date: Mon, 22 Apr 2019 10:41:32 -0400 Message-ID: References: <85237c18-768d-089b-221a-fe70b0ba4379@orcon.net.nz> <7db75b50-1925-8c1e-acc5-c393b701e6a3@orcon.net.nz> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="172181"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 35351@debbugs.gnu.org To: Phil Sainty Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 22 16:42:16 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hIa99-000ifE-AM for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Apr 2019 16:42:15 +0200 Original-Received: from localhost ([127.0.0.1]:38249 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hIa98-0005Bq-BK for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Apr 2019 10:42:14 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:47979) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hIa8y-0005Be-Dy for bug-gnu-emacs@gnu.org; Mon, 22 Apr 2019 10:42:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hIa8w-000223-98 for bug-gnu-emacs@gnu.org; Mon, 22 Apr 2019 10:42:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37675) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hIa8w-00020j-3b for bug-gnu-emacs@gnu.org; Mon, 22 Apr 2019 10:42:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hIa8v-0000g9-Sh for bug-gnu-emacs@gnu.org; Mon, 22 Apr 2019 10:42:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 22 Apr 2019 14:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35351 X-GNU-PR-Package: emacs Original-Received: via spool by 35351-submit@debbugs.gnu.org id=B35351.15559440982578 (code B ref 35351); Mon, 22 Apr 2019 14:42:01 +0000 Original-Received: (at 35351) by debbugs.gnu.org; 22 Apr 2019 14:41:38 +0000 Original-Received: from localhost ([127.0.0.1]:51219 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hIa8Y-0000fW-3X for submit@debbugs.gnu.org; Mon, 22 Apr 2019 10:41:38 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:44602) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hIa8W-0000fM-03 for 35351@debbugs.gnu.org; Mon, 22 Apr 2019 10:41:36 -0400 Original-Received: from ceviche.home (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id x3MEfWGP007660; Mon, 22 Apr 2019 10:41:33 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id CF2586619A; Mon, 22 Apr 2019 10:41:32 -0400 (EDT) In-Reply-To: <7db75b50-1925-8c1e-acc5-c393b701e6a3@orcon.net.nz> (Phil Sainty's message of "Mon, 22 Apr 2019 20:16:33 +1200") X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0.1 X-NAI-Spam-Rules: 3 Rules triggered TRK_NCM1=0.1, EDT_SA_DN_PASS=0, RV6530=0 X-NAI-Spam-Version: 2.3.0.9418 : core <6530> : inlines <7058> : streams <1819406> : uri <2835738> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:158044 Archived-At: > I've pushed an implementation to branch origin/fix/bug-35351 as a > starter. > > https://git.savannah.gnu.org/cgit/emacs.git/log?h=fix/bug-35351 BTW, could you try and look around emacs/lisp/.../*.el to see which other existing major modes could benefit from such a thing (and maybe also if they almost could but in the end can't for some reason). Stefan