From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: prettify-symbols-mode to handle "\alpha-\beta" ... Date: Thu, 04 Feb 2021 13:21:17 -0500 Message-ID: References: <87v9b8mvpb.fsf@telefonica.net> <87r1lwmrgc.fsf@telefonica.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28604"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: =?windows-1252?Q?=D3scar?= Fuentes , emacs-devel@gnu.org To: Christopher Dimech Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Feb 04 19:56:56 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 1l7joG-0007JQ-8Z for ged-emacs-devel@m.gmane-mx.org; Thu, 04 Feb 2021 19:56:56 +0100 Original-Received: from localhost ([::1]:44284 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l7joF-0003pL-7g for ged-emacs-devel@m.gmane-mx.org; Thu, 04 Feb 2021 13:56:55 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36346) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l7jFs-0001Of-Uu for emacs-devel@gnu.org; Thu, 04 Feb 2021 13:21:24 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:22542) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l7jFp-0006yD-F1 for emacs-devel@gnu.org; Thu, 04 Feb 2021 13:21:24 -0500 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 27D2D44095A; Thu, 4 Feb 2021 13:21:20 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id C91734408D3; Thu, 4 Feb 2021 13:21:18 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1612462878; bh=RoJEyX3JSNgeiMYfmIcagRPRmFqGP0ONrvVi3A15d2o=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=OF+XCy46lvtR7LRhqBgFL0JoOktkvXZseaB+Sh7qcOxiMFTTADwivAnPMQD521kRK AeNBR+uC6Yl0QuDeExAmQMEXBeGxGnIP3fPY1b3ADAwBNbtJxY8MChs7ev2ezMtNiU FehPmVK2DizJ0N1CwSDxdLLCWF0sp1i99kD+Gxv5dlIQ7q9Qtu+KXUSWgiq9l4y7Nb n3XYPSUTew1ohnps9wNOGu50I84mWB03ecaXN/5jd4sIfe+TiOEe33pWTCxLRtOmXB U4jgsnZ9rAH/T2+zWEBroy4F7kPR+r+nWxyn5zJQfWZUEeF9k4a0QOL5T3mfSGX1hK 3RBT7qMy9h4ew== Original-Received: from alfajor (76-10-182-85.dsl.teksavvy.com [76.10.182.85]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 93616120147; Thu, 4 Feb 2021 13:21:18 -0500 (EST) In-Reply-To: (Christopher Dimech's message of "Thu, 4 Feb 2021 19:09:31 +0100") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, 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:263898 Archived-At: >> I don't know what hack you're referring to. > 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.=20 It's still a bit vague. >> > Whilst texinfo.el takes care of texinfo commands, it completely >> > disregards the use of tex constructs and the focus on displaying >> > mathematical expressions within texinfo. >> `texinfo.el` deserves some extra love, yes. >> I don't think anyone has contributed to it in the last several years :-( > =D3scar 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. > As you recognise that it deserves additional work, my reason should be > solid enough.=20=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. 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`. 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). Stefan