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:54:31 +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="12553"; mail-complaints-to="usenet@ciao.gmane.io" Cc: =?UTF-8?Q?=C3=93scar_Fuentes?= , Stefan Monnier , emacs-devel@gnu.org To: Christopher Dimech Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Feb 05 22:55:20 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 1l894S-00033I-BA for ged-emacs-devel@m.gmane-mx.org; Fri, 05 Feb 2021 22:55:20 +0100 Original-Received: from localhost ([::1]:37916 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l894R-0000oO-DV for ged-emacs-devel@m.gmane-mx.org; Fri, 05 Feb 2021 16:55:19 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47266) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l893p-0000Mk-MC for emacs-devel@gnu.org; Fri, 05 Feb 2021 16:54:41 -0500 Original-Received: from mout.gmx.net ([212.227.17.21]:46449) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l893k-0007NC-B0 for emacs-devel@gnu.org; Fri, 05 Feb 2021 16:54:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1612562071; bh=thNSVK5Uihv572TIi5tmm/Z4EJ6Cwp0+tBSIHZuIle4=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=Q0OLcMnziTDvoavdffD2UrKNOOCMUP2nULQjEwDswpxTcjbMAafPKIXjBbc90506b Z6/2afdhKtGKGL9bZELUUVxRpc4QvMnWsPWROOzgUvEl9Iyn9lM8Mo/2IJQDfgRobA dolDQG2Md0LLsSSRWt4bXgXXZ0Tc+c3I6NhITQN0= 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:54:31 +0100 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:7grUAEURSa9VX2wppzKm3ZMrTrJSKuAxHg8bZVFyPYvKAPYQUW6cJmZcAy6djgvYtRccb HAER3jIlESfc+Nv5khfjaZRk5SFkJ8WDSA1UmQn0GeoN2tvZDoi4QuXDdbBMtpiPnyUm1UitcBLS rXlbG7YPpBzlYNbuARlXo3DaETep/FieLvScbjpS8lXxU9fr3R84DZfqPhg5y8nc/wHSmyWC3vXl S99OTSEhSYWsjC3o0fjAbrjFWgU4p/cf5NmKBBiBPqLlmD4Fl5A+BZP5oNp3Hpubm7xS+5FboqdD 7Y= X-UI-Out-Filterresults: notjunk:1;V03:K0:opeCpfoHw3A=:ioruRnJW772FIbjH4wyl/6 JTLAkdCRn8zh8Xoxr7Z5qZFYvV7TBvrVkTd3l9xT6gQAag+gHh082eJj1lo7RvWfgkI78PLhJ oVQs6xKgRMVrmG/ZTZBgWHHbHavDeNJSVcHQ9t6sfAXpSnXNqYxHCoSmj0PiyCCThmE7VLLlN s6kdGro9okwXpDzFaqu2vYPFgJKftRErRCyLrzWOWI5/7AGBz913732Gk47tRyQs6Mf3PqOjc 88gEPNcUyhoMr+i/PxHBN7YmQWSKPLLRJ29TGrJMF00M5RWDHWfcp8u7NxPQqBTbjrWmgpJ1O +Y3wxSKHNLPZzb6dVPYgUREPcFEHZqmvB2sOFjSy2uKroGvA9wQhsPbzmxyEw51MrCjpTUxBh HWL4W29rVdb8IVQQhPi3xLkzJqNw0/KDMRwUvHIjJjzUKqqmeR3OZc/VvjkGqkIwOa5lB7sHU w9JJPNh8U6oOvFIolfHXrbijAYLpkbDcxLnqOJadMUISA6ARceUW2/zjXRn6UyaA1BLdHd2vs Trd4ANnUFjEeADppE7ghgITqbndex+raiDWApJjocm2nyfKj3fUMVEKg7wdqPK55KrOv66eVy wwHrPmNichEDA= 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:264018 Archived-At: > Sent: Saturday, February 06, 2021 at 9:05 AM > From: "Christopher Dimech" > To: "Stefan Monnier" > Cc: "=C3=93scar Fuentes" , emacs-devel@gnu=2Eorg > Subject: Re: prettify-symbols-mode to handle "\alpha-\beta" =2E=2E=2E > > > 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 Perhaps the predicate function could somehow employ 'split-string', which will target hyphens (or whatever regexp of separators) and split every=20 occurence of a composite as two separate strings which can then be checked separately for equality against the alist=2E (split-string "\\alpha-\\beta" "-") =3D> ("\\alpha" "\\beta") Still, do people think that that prog-mode should also work with regexp and what would the benefits be=2E