From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: pietru@caramail.com Newsgroups: gmane.emacs.help Subject: Re: Prettify keywords Date: Wed, 3 Feb 2021 23:12:21 +0100 Message-ID: References: Mime-Version: 1.0 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="5339"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Gregory Heytings Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 03 23:13:22 2021 Return-path: Envelope-to: geh-help-gnu-emacs@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 1l7QOn-0001Ht-V5 for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 03 Feb 2021 23:13:21 +0100 Original-Received: from localhost ([::1]:45158 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l7QOm-000389-W7 for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 03 Feb 2021 17:13:21 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56054) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l7QNv-000364-UP for help-gnu-emacs@gnu.org; Wed, 03 Feb 2021 17:12:28 -0500 Original-Received: from mout.gmx.net ([212.227.15.15]:57143) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l7QNr-0006QC-GA for help-gnu-emacs@gnu.org; Wed, 03 Feb 2021 17:12:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1612390341; bh=wVeH06zxeYJn5f83J3g79VVnlOQWuADxBXfMP52eWMo=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=iOkBQg+cmtkZvYwDW2/VQAD1CfxMtR/CmsiICbXARH6pjqJi5iV6i93EIytfyt3yG 9aHymKr56ks1wD3UnD2YZ9qYJApb2WbR5eVNIkwVZrwlDEDio5pgeVQo1kFJF1nu4b 2pp2oaIiZZjXiI7aIANMqTSZh7azodBgeFrF1gfE= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net (3c-app-mailcom-bs06.server.lan [172.19.170.174]) (via HTTP); Wed, 3 Feb 2021 23:12:21 +0100 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:1FnfTfU81fvSTEvQk51ZQbltAuj71iFym5oSgVNtxPEXgOp26aWzfzMEqrKCKQwzCX9wl KBIF5p0BCFW/8hQd07a2MAFmEnlTsd+27btCSwQu0xzTYneQE4rjtTql+G+bN9RIZBv+cHMMQAaG rYkAnrtlfhqTaPJylNVFzFN+kTA2Gg68JInuHQuHYfkhDHqFJ5ePuX+Qi3S/BvC+mZaMVHau/xQ7 ASKAP8hiIidOV+0AjcBzX5ujIP/exid/b6FZy8z9Uix7GU2tT0AVE/2XDYilwaGcAifDXUQFPdXk B4= X-UI-Out-Filterresults: notjunk:1;V03:K0:llBLTLMzUU8=:h8lC/GDYZD8s6xXUpwV+o/ YgdRjFPDVA7PX9gjybOrbJANEAw8ivk6f0ViZS+AevVl8bdr+0H62E+Fq2P6IFpXvoSKnheW1 mSfBucVPmES/gTKNCZbvF7VCIY0bOhEjZnzX7isTW7iCk3XspYjF+T3hYNNtpt+AGtGHncICd pYjaj2jxMMW3blsV4YCVWOuqurtI7QbxJ8c1Ru4l/4zg3s7vY73t4e/YOtAF3srMCYzW8UGDH OtPmC1yvOricnLzRKvUpNqeOkDcJEajQ/fySSXLOEZMui5MYiRcnrlZp0lCmaH8SCetlHLhVT lcYPNO5lLBxHjyfHjd48B8m/M+nU4DODo3Jobg3IdtnLZ28dy/v/SmFE/Q4sBP3QmesY0j7F2 jmGhibxLOSMVx2GxXzaYP4volEVQW2w8ivKS7LElo47YDF1YPaSoZpa7/mqo8SVKzp27tEdpo /JgynHB4MeA5mqZRvNNMikmGaOcC0zI6cd4wXLttFb4l+GYsXZ+8pGdeTGGTVg3rpQ92VarYB 5Bds+a5Ph3ph3+vF8b71zHyQwxuwTTgyXIbzJG8zpz6qb52lBe89lmLcDRBoyW147DXuxRud5 ecZA+TqOHsp/E= Received-SPF: pass client-ip=212.227.15.15; envelope-from=pietru@caramail.com; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:127608 Archived-At: > Sent: Thursday, February 04, 2021 at 10:05 AM > From: "Gregory Heytings" > To: pietru@caramail.com > Cc: help-gnu-emacs@gnu.org > Subject: Re: Prettify keywords > > > > > > Would it be possible to include the code in a minor mode that I am > > writing for texinfo? The minor mode is called crucible. > > > > I don't understand why you want to create another minor mode I still have to include the tex symbols to the list. But I also have a minor mode for tex commands that prettifies mathematical expressions that use superscripts and subscripts. I might include the prettify keywords for tex in the minor mode itself rather than having the code separate. , but in > principle yes, you can include such code in a minor mode. As you see in > the documentation of "define-minor-mode", the last argument "BODY" is > executed each time the mode is enabled or disabled. And as you see in t= he > "prettify-symbols-mode" minor mode example, you should embed the code in= a > conditional to turn it on and off alternately. >