From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.devel Subject: Re: Calling another major mode in a major mode body Date: Sat, 3 Dec 2022 23:54:22 -0800 Message-ID: <8EC7180D-C1A3-4171-889F-829C1B851EC3@gmail.com> References: <1263D369-330F-4624-A376-ECC1E1A26A52@gmail.com> <3FDE8ADA-C67E-4047-816B-9259E8041ED2@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25740"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Phil Sainty , emacs-devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Dec 04 08:55:19 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 1p1jqJ-0006TW-IM for ged-emacs-devel@m.gmane-mx.org; Sun, 04 Dec 2022 08:55:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p1jpX-0006mj-N4; Sun, 04 Dec 2022 02:54:31 -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 1p1jpT-0006mU-Qr for emacs-devel@gnu.org; Sun, 04 Dec 2022 02:54:29 -0500 Original-Received: from mail-pj1-x102e.google.com ([2607:f8b0:4864:20::102e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p1jpS-0000HK-Ca for emacs-devel@gnu.org; Sun, 04 Dec 2022 02:54:27 -0500 Original-Received: by mail-pj1-x102e.google.com with SMTP id w15-20020a17090a380f00b0021873113cb4so8730157pjb.0 for ; Sat, 03 Dec 2022 23:54:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=S9Sb66lhzWDprryxOqaS6d9Pj7LiK3v9XkTYD4qqxXY=; b=ezwid8O4k7Lcg5id2/ZZrv5LL1KpNgt0UBzZ+p5toRfOzYFY/pGbhsWopLFWtjzRP1 Xf6knCuRC7RYXwiX6GBdIcIGriRuN8tVMMPL3ASNu1o8c97li9DJr5XObOQttz7smTsH ua6dr34NYeiRGaEi/oe4o7dhUZq90UYNZGFpJghlZkVP6tE5HzlTOoBIZIKCAuUVzXel AEBDmWYY4K3Nuhz7/OMuH9bgoG44ZRy1wlWUqDB85JVflZrVGTgLSY4/YbA2z3T+Reij SDSW8MEV8wjWif9Y/pOCbhA+ot7h8j7lYNGRhpMAIVdEXCXlgVl0i01ZjzYG0iqSqi7u U4qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=S9Sb66lhzWDprryxOqaS6d9Pj7LiK3v9XkTYD4qqxXY=; b=ze/8D8d/s1RMFebEdJ2lvgAUaV7NZyYP2Jq6WNU5DORR6ManvCtXYx84OqT73O3Vpw 6I6ZS6YASwwwcK+5tFC7AzDK46XchaY8jhDdFrzMsZw+XeaoNsnhtG+jkT2jW2IgtA9/ fXu/RYXT2bj8li26YEvbllDdKH6aETgP5gbw/UeYz3mXHb1rDnDdOY+8utPaAUWzVfki OrXvTUwWmiyRGga66Y4X1sqRcC5hPZuIt8Sfwv4KxYyLFDkMNHsnQMzGLBtS4Zj5v8mH XG6OU8I4s55i7QhgPmnajKY3V67mLYcrwhsUPnRi0hzlK2DLiwR2CBQR4M78k5lPpU59 P3Lg== X-Gm-Message-State: ANoB5pk1I7jWKFvk7CaH0mRyQF+m0Ljq5Iiu6GTVVUvY296Z9LJ4ztMv AvoUt43h2zmO03qvH/BJDz4bNE+Rlf0= X-Google-Smtp-Source: AA0mqf7zNKK++7ZHwCUZSyKusWqCnC/iONmmWDHqfWiFNYjG5BS8RnfiwmbOPK6QTFWwuRuNeJjpQw== X-Received: by 2002:a17:90a:4283:b0:218:4953:58aa with SMTP id p3-20020a17090a428300b00218495358aamr89610127pjg.219.1670140464907; Sat, 03 Dec 2022 23:54:24 -0800 (PST) Original-Received: from smtpclient.apple (cpe-172-117-161-177.socal.res.rr.com. [172.117.161.177]) by smtp.gmail.com with ESMTPSA id j9-20020a170902da8900b00189c93ce5easm2205192plx.166.2022.12.03.23.54.23 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 03 Dec 2022 23:54:24 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.3696.120.41.1.1) Received-SPF: pass client-ip=2607:f8b0:4864:20::102e; envelope-from=casouri@gmail.com; helo=mail-pj1-x102e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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:300888 Archived-At: > On Nov 23, 2022, at 11:21 AM, Stefan Monnier = wrote: >=20 >> Yes, it=E2=80=99s much cleaner. If we don=E2=80=99t care too much = about using advice in our >> source. I=E2=80=99ll do that instead. >=20 > We really should change `define-derived-mode` to support this > directly, tho. >=20 >=20 > Stefan >=20 Yeah, in Emacs 30, probably :-) I used the advice technique/hack similar = to tex-mode for bash-ts-mode. Yuan=