From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christopher Dimech Newsgroups: gmane.emacs.devel Subject: Re: prettify-symbols-mode to handle "\alpha-\beta" ... Date: Thu, 4 Feb 2021 21:54:42 +0100 Message-ID: References: <87v9b8mvpb.fsf@telefonica.net> <87r1lwmrgc.fsf@telefonica.net> 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="14355"; mail-complaints-to="usenet@ciao.gmane.io" Cc: =?UTF-8?Q?=C3=93scar_Fuentes?= , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Feb 04 21:55:28 2021 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 1l7lex-0003eE-Ut for ged-emacs-devel@m.gmane-mx.org; Thu, 04 Feb 2021 21:55:27 +0100 Original-Received: from localhost ([::1]:34200 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l7lew-0001X6-TL for ged-emacs-devel@m.gmane-mx.org; Thu, 04 Feb 2021 15:55:26 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46074) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l7leK-000127-TS for emacs-devel@gnu.org; Thu, 04 Feb 2021 15:54:48 -0500 Original-Received: from mout.gmx.net ([212.227.15.18]:57715) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l7leI-0005ai-WE for emacs-devel@gnu.org; Thu, 04 Feb 2021 15:54:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1612472082; bh=20B6dBFOlHNYDlSF+hax6TrN5+YXyIxbMyT9QOgbh4k=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=OqVWSTTEA4/q1FlNP7qWxxumqfl2sypna70KSiW66oiQaYDhhLakCTV865gV/LzNr 5dfg+qSOqKwm2YetK+dDwF21Zb1FSuFKKhy8jRu3sV2+0inXD1a2SaXS9gL+pkgeBs M9KYimgDdM4KI9Plw16joCpY4BedqfIEtlLWQRwk= 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-bs01.server.lan [172.19.170.58]) (via HTTP); Thu, 4 Feb 2021 21:54:42 +0100 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:hVqO2krhgF5IiEPmh/qKoHPm1+Mr7FNCfg3VhBQDXj/VASZ2tJpBgtdAPbnwYROPVieY+ Yru0YLdr+lIzWQQ4BwMtwE8CQH1rnBwA4QYqCtHCmtA39ZCh8C1mgWYQOBk7uC0C5LT+s1Xm058n Wlxxmj6wgxqsD9cr0GOdhvAlk+weFwFBOP+YoYuclmMnPyyfHBZk1zlkwzAD9AQrn06CHcnmAHGl VMQ6T/90l73YFLe2jGIA5gqVVi3TgVGcCCGOsleAD/oRW6PLxhWBLHYYyi1D6/SdTP/MTUjlSyKk jQ= X-UI-Out-Filterresults: notjunk:1;V03:K0:TA+0MI3vFZ4=:8dcgHiEKGtZ/j4njMnprKA 6D0Dxsm053BrYkjpCS7AftoWSAGI0RnYqM5duHkEVyRU7b50XADAYm/2TzTgnz7K/7D7hRrsU ewECCr5pTBskyveFG0bZTIVk1qSmS+ef8KEXfrcem9niIWwUwKTXJTPrGkgdz7aRwX6BhWUuQ 0t4f2yhk078/YGZlEHp8MGs0xB9hPzBoOahRCedDfvcZOnAKP4swnxN0TRFxujg1VK8QG44D/ 5sVf+AYV74Z1cXzXRhiBcoeUONLYkkB622puAop+rL+sBvqfIKQvKdFi/o1TnwAk/+Ej07iyp 7qO8pqjhhYxjYa/027icUfGUTKkylc53elHIBR6HmLh/EpdJVxUl9T1eBrkzp57Q/DdNubCxV gvSkTmOpWLHz4S93cGQlXGCp9hook5el0Ij9kmePxOOKSdC59Q1wPXMwbAqhuBbNCWE8lnV9X 9/rN5WI8v6qEzemU5868gGvYXcdJp/cTAPlfH/x9AdmdrwsWjN8EyFOnHgnq8JfIHH3zv8M9a cde/RzZgAJIuK4Us1Vf53ze5mpEMCXaJPPLmp8BIb2Qyo8Llv5+2ixYGYApTiBT7PcOKRaYP/ wPv1xDtMCKCKo= Received-SPF: pass client-ip=212.227.15.18; envelope-from=dimech@gmx.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: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.devel:263914 Archived-At: > Sent: Friday, February 05, 2021 at 8:38 AM > From: "Stefan Monnier" > To: "Christopher Dimech" > Cc: "=C3=93scar Fuentes" , emacs-devel@gnu=2Eorg > Subject: Re: prettify-symbols-mode to handle "\alpha-\beta" =2E=2E=2E > > >> What is "the" improvement you're referring to? > > Improvement for prog-mode=2Eel to be able to handle the prettifying > > the tex commands as well=2E Prettify greek letters and math symbols, > > Binary operations and other relations, and arrows=2E >=20 > prog-mode=2Eel shouldn't try to prettify TeX commands, but yes, it shoul= d > provide the means to do it=2E AFAICT what it provides is already > sufficient to prettify any of TeX's symbols=2E It might fall short when > you try to prettify other things like \frac, negative space, > superscript, =2E=2E=2E Correct, it should provide the framework to support the keyword operations and how they are prettified=2E But prettify can be made dependent on lang= uage=2E And pointed out, for tex, prettify falls short in some aspects=2E The imp= rovement would be for prettify to handle them=2E Superscript and subscripts can be= handled=2E Originally, TeX's symbols were considered the same way as programming lang= uage=2E But that assumption is not completely correct because the construction of mathematical expressions differs in important ways from standard progra= mming syntax=2E Could make a minor mode for texinfo to set things up using functionality from prog-mode=2Eel=2E The minor mode could also handle superscripts and= =20 subscripts=2E =20 > Stefan >=20 >=20 >