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:14:29 +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="30595"; 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:15:23 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 1l7l2A-0007rO-V1 for ged-emacs-devel@m.gmane-mx.org; Thu, 04 Feb 2021 21:15:22 +0100 Original-Received: from localhost ([::1]:41164 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l7l29-0001PK-U5 for ged-emacs-devel@m.gmane-mx.org; Thu, 04 Feb 2021 15:15:21 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35904) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l7l1R-0000vI-50 for emacs-devel@gnu.org; Thu, 04 Feb 2021 15:14:37 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:53997) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l7l1P-0004Ph-4o for emacs-devel@gnu.org; Thu, 04 Feb 2021 15:14:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1612469670; bh=QG2Akb3VI5obA6PAhY8fpQmFs0ELRC14SnucUaBnHGQ=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=YUAT4aJKUW5lxD4Q/l7QCI27Hf/xuR6b6Eu8bj9K6j3JiOdKF7/NOF7M18PbtDYEI m2yxjPzUTRQNHIFdqX1gJ94jGyaPLsmfqwLVay0x4tuEMtJmPAT+lj4VQEEQmZvbVF twwsGZO+qkBvGO4lLJIQqjAnO/oXFR+NzH7Z/9ug= 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:14:29 +0100 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:vtV1mOTDy2/M9o1ydD6iB2KkF+d1tAgh56MzIoJ1qS5Mlp0I3i9SS/6c6LFZ3CAbBpTUc qqE49iKlWt7G3SoT7Dla99mH22B8goq/tbgb+KfWOSLe8zKn8Cv8+tLN2qPVo18ZOphf/F4D143y fDNjudkPiaPdbCzUTIU2OwW62QvRFeYx8ouhrz3CbHEE/3uA8keKNAOfxKuLnF0DCid4+rZctZPU RLf1qjeDKEa+Hm3qTiB0rImbDWkx1NrLQTmuFpnI1AieHDu1hW1dpEA6Rr+aYrVMAB5OGe3ezq42 yQ= X-UI-Out-Filterresults: notjunk:1;V03:K0:dvLxvlaS9Nc=:qxE2rlQlvp9R1hnkwjixwj +xc5z6rWzmlMvXBWcPTUVhA4WXCepwlPRTuWWMhAkpKTIxQ4YFpZtLdrgpzOBF5D8UoIy0Hkr VV6KzllmrdWkfu/MDGCpz032VAtKgjrE2E1rnkdduiX4rd4sEue3JGn29dqGGCXjJ44vXQeA1 9Xzbmrp/V4i/aZmrYq/G3bv39HmnJmhgpvtPpeunfjyQ0/ClVMsJoWbfd+dqviyKc3wdqUuOX 9Byf91hznAzT5NjlEVXB/gQttenz91TU29ThUCJSJa6m9pM7OpDE9uFkyLCw/kbsZGp4oazYT 7ebzq/UZqFAE21t76p1CeTSlXt4iE7lZRKMSj7X5tRuhYjVjPYu2mq6n7BscT2TqDoetAq3nz luC2OzFuT+qbjx6p+WmqyhMjPUmhj+1H6gFAt9DcpTxCFlA3CLy4tTMgEDft8k5KEWDVj3M9q 3XADoJ+csIIwmJF2wA2WgNyEij5HxxtBF1YKSlcDm+8ryogc8/Yt5KkctThI4Xb/2t/jcV40J aiydKox1tL7ucl7qaXpiR5m5ffekHzvYZxEoI6Kso9ngx5N+Sh3itoKtDJCzSMY9IKMLnWivD e9gWJw7E192RQ= Received-SPF: pass client-ip=212.227.15.19; 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:263904 Archived-At: > Sent: Friday, February 05, 2021 at 6:21 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 > > >> I don't know what hack you're referring to=2E > > Because I saw a few different implementations of prettify=20 > > in various files and packages all trying to do the same=20 > > kind of thing=2E=20 >=20 > It's still a bit vague=2E >=20 > >> > Whilst texinfo=2Eel takes care of texinfo commands, it completely > >> > disregards the use of tex constructs and the focus on displaying > >> > mathematical expressions within texinfo=2E > >> `texinfo=2Eel` deserves some extra love, yes=2E > >> I don't think anyone has contributed to it in the last several years = :-( > > =C3=93scar Fuentes, I think wrote that if I insist on changing texinfo= -mode > > itself would require me to to give a very solid reason for the change > > to be accepted=2E > > As you recognise that it deserves additional work, my reason should be > > solid enough=2E =20 >=20 > Changing the buffer's syntax table just for `prettify-symbols-mode` > would likely encounter resistance (since it's likely to introduce > regression in other parts of the code), but if it comes with > corresponding updates elsewhere to accommodate that change (and those > changes don't make the code worse), then it might be acceptable=2E >=20 > Of course, as I pointed out, it's not necessary to change the buffer's > syntax table just for the immediate needs of \alpha and \beta in > `prettify-symbols-mode`=2E But in order to accommodate more TeX-style > code it might indeed be a good idea (or not: I can't say without > spending more time investigating the issue)=2E Sure, it must support a generalised scheme that can tackle the variety of languages and what could be done with each=2E prog-mode=2Etex already seems to be intended as a general framework to support a variety of=20 languages=2E texinfo=2Eel can then call prog-mode=2Etex framework for=20 support with general prettify functionality=2E =20 > Stefan >=20 >=20 >