From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Calling another major mode in a major mode body Date: Mon, 05 Dec 2022 17:50:37 -0500 Message-ID: References: <1263D369-330F-4624-A376-ECC1E1A26A52@gmail.com> <3FDE8ADA-C67E-4047-816B-9259E8041ED2@gmail.com> <8EC7180D-C1A3-4171-889F-829C1B851EC3@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3189"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Yuan Fu , psainty@orcon.net.nz, emacs-devel@gnu.org To: Richard Stallman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Dec 05 23:52:25 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p2KK1-0000cN-5s for ged-emacs-devel@m.gmane-mx.org; Mon, 05 Dec 2022 23:52:25 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p2KIO-0007si-M3; Mon, 05 Dec 2022 17:50:44 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p2KIN-0007sM-7V for emacs-devel@gnu.org; Mon, 05 Dec 2022 17:50:43 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p2KIL-0000d3-Ki; Mon, 05 Dec 2022 17:50:42 -0500 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 8509A8067F; Mon, 5 Dec 2022 17:50:39 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 0AEB680436; Mon, 5 Dec 2022 17:50:38 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1670280638; bh=gKsTbngctOY2KtdNKcEDN4Em+MMm2wAUls6royVUqKk=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=cWTkAEj4TLF3EYhDt2e6QUFO+wUquSzOAldyviT4O55GbWolXkuuuCfip1ovzdhqG RAKKsmdKV1dro+bAF9u/y8FXvP4pEYSU1v9PezbJ7jpu6U2x8v0oRaLnibEN9CN3Ii /CK9CizHxjo3m69qFbOzpGnAA/1/PlEsC6ju39gDo8emL6D6rQMwpGTT7DPagNs0jE 2adnsY4nqLX9xR0REfZUfYq0BV6KqA8myBDgO3ffGOgIJvY9YyAw9S4sSnGgVQYO5n /7Fqx3o1pIszHwZfav5IEXyDbqVPUfNuNCAQxSKv2GQoYhVLXba3cVchMe0BJgQ2Sf iALIvqhp9yGSg== Original-Received: from alfajor (unknown [45.44.229.252]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id D87C3122535; Mon, 5 Dec 2022 17:50:37 -0500 (EST) In-Reply-To: (Richard Stallman's message of "Mon, 05 Dec 2022 17:37:07 -0500") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:300948 Archived-At: > > Yeah, in Emacs 30, probably :-) I used the advice technique/hack similar > > to tex-mode for bash-ts-mode. > Plsee fix that. To make one part of Emacs put advice on another part > is asking for future development trouble. Note that the above two uses of advice don't advise *other* code but advise their own code instead :-) Stef