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: Fri, 5 Feb 2021 22:05:36 +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="558"; 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 Fri Feb 05 22:07: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 1l88K2-000AaD-C5 for ged-emacs-devel@m.gmane-mx.org; Fri, 05 Feb 2021 22:07:22 +0100 Original-Received: from localhost ([::1]:42270 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l88K1-0004v6-Do for ged-emacs-devel@m.gmane-mx.org; Fri, 05 Feb 2021 16:07:21 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39218) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l88IU-0003VA-T6 for emacs-devel@gnu.org; Fri, 05 Feb 2021 16:05:48 -0500 Original-Received: from mout.gmx.net ([212.227.17.21]:60171) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l88IS-0001Uj-W2 for emacs-devel@gnu.org; Fri, 05 Feb 2021 16:05:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1612559137; bh=XLGuRAJnHuHoLRDeHO2M190r9Uys/sty2L948ZfavV8=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=J/gO3WbbnK1eETRtM28+AxbB7YnfnkH6kU72niN5/vVqzU4OjlYqPcEW2yklU8UyL /fCHJDce1bg49cC4cBSNaLuXnDHETTWnPuGI15K02pyQW0Z2nfBBcDz93OT6pJ15aD RaQZXFz/3JCzPPH8BZ4t1burQ5DUgRKri1VFYkrc= 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-bs10.server.lan [172.19.170.178]) (via HTTP); Fri, 5 Feb 2021 22:05:36 +0100 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:2MosQmN5btEc+Bf6lGfPXy6yQEcmLSUxoDy5HTF6IN2rceoPo7K13R/5I8yAaMwEc5DPs HqNFUicjOMqiwM1s8XEX3rl8ms4xQTiExCbThPmKm2N8IhHLRX+E2PBFkeDz/YXHce6UXKJ3v8gV e6XJCkYxdmrcKkZUbNGZkaJqan3HZ2EHenLRCDwYLliRpwAcffuk9NfgcuUMAtNO+dtzPfdLJMJG VWi7tsIOAJSZloZBXu3H3tCEp5StAV5vCzdq4mILePpfFAQYKDvcM6NNev2nMy1edK7sEQawwpWQ FA= X-UI-Out-Filterresults: notjunk:1;V03:K0:WG7emgw0JSI=:SVs8UqktkZQs15SLvXXUYD V/0gKEkAuVoYS3TFLFRHcQfL3tZzlIeN2/t9NpqXJPxW/pa6y/cRL3prLo2mK6MEH/atFY581 qHg6KzZeIOOXLZ6VZtLXk+unaGKPuRv8mB1U0LFA1hbee6fs+JW0vct0C+2tMmt99mKqqONRf wkbGb+aOY6yvDadfYGjnUIqOp2Y9GwlB9IFUwiKr6KhF0A8zAyKJ/fIy6wZgQxtywUFZ3r4fN q1r5A2qRYp+EazHSCzOAGw8/IV6uu3Hac8HKVC42NoBtd1u5pq0Hsrr4QFdbFvv0NDT731VWg IILZHBylttNaiYGpbV1WKOO5ZxrqSTLwjf4M7OcD7w39KmRQ6k+2ONsTpfCIJBG7/6mPQFJ3z zhupOqwzut+kmoItQeKX7m1uJH4VhxEz9moXq+EAlvOdELZzy6FmcprX2mbU8pLwxSBNjcrNa XTxBpN8F5aPp4wcSx38W+eD3KvP6FUsGastK2iFaoRErQsd5c1jR1f9TcBRYydPHnomrCfu89 yhAHCaUai0urRu6pEFkErS22Ctwj3vNLpJTjo/zMQNpbrC3U3N86MbMrE6fdE5iYfA+c2gdGK 48TTlC5V/VmCs= Received-SPF: pass client-ip=212.227.17.21; envelope-from=dimech@gmx.com; helo=mout.gmx.net X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, FREEMAIL_REPLY=1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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:264014 Archived-At: > Sent: Saturday, February 06, 2021 at 9:01 AM > From: "Stefan Monnier" > To: pietru@caramail=2Ecom > Cc: "=C3=93scar Fuentes" , emacs-devel@gnu=2Eorg > Subject: Re: prettify-symbols-mode to handle "\alpha-\beta" =2E=2E=2E > > > Would allowing a regexp solve the expression \alpha-\beta, > > \alpha+\beta, \alpha/\beta, so that \alpha and \beta are > > prettified seperately? >=20 > I don't see how a regexp would help in those cases=2E =20 We could somehow employ 'split-string', which will target hyphens (or whatever regexp of separators) and split every occurence of a composite as two separate strings which can then be checked separately for equality against alist=2E =20 > Stefan >=20 >=20 >=20 --------------------- Christopher Dimech General Administrator - Naiad Informatics - GNU Project (Geocomputation) - Geophysical Simulation - Geological Subsurface Mapping - Disaster Preparedness and Mitigation - Natural Resource Exploration and Production - Free Software Advocacy