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.help Subject: Re: Rainbow-delimiters highlighting { and } for tex and latex Date: Fri, 9 Sep 2022 14:33:52 +0200 Message-ID: References: <87wnae5aj4.fsf@gmail.com> <87k06e55im.fsf@gmail.com> <86sfl1vt1m.fsf@gnu.org> 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="27818"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Alessandro Bertulli , Stefan Monnier , wilnerthomas@tutanota.com, help-gnu-emacs@gnu.org To: Arash Esbati Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 09 14:34:38 2022 Return-path: Envelope-to: geh-help-gnu-emacs@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 1oWdDR-0006vc-5S for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 09 Sep 2022 14:34:37 +0200 Original-Received: from localhost ([::1]:58894 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oWdDQ-0000zZ-64 for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 09 Sep 2022 08:34:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42532) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oWdCv-0000yu-Af for help-gnu-emacs@gnu.org; Fri, 09 Sep 2022 08:34:05 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:50697) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oWdCs-0006pt-KR; Fri, 09 Sep 2022 08:34:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1662726832; bh=ZqDcOBuDNG6B5t2+CsGgeEzVOBxf8EQp1NLLju6DAIo=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=gie6rNhd/+Pix7MA5Zc22+FtNha+LaF11+YjQ3pYra0izX2KrSghaIo1mEL/0t3pV 5/WWad7Wf4jGxlJXgzZYqUcAdasdsDnL7YwBle6hUwpdXYSLrqBVS99fb3KAlmfCXF rbUZmvGAZtyETVXk+oh1m7EI6NfHVtHp6SttLz1Y= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [92.251.127.164] ([92.251.127.164]) by web-mail.gmx.net (3c-app-mailcom-bs02.server.lan [172.19.170.129]) (via HTTP); Fri, 9 Sep 2022 14:33:52 +0200 Importance: normal Sensitivity: Normal In-Reply-To: <86sfl1vt1m.fsf@gnu.org> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:VusEwYZk1BEXCR2CK3hBjAVfrCljs9kzDBRyU5/fwl0W6oVu7iLBP5Fl9HjYhvovoJ6Tg tIfY+Vgh26OoPepTVhb5l5gs0MavVuZjAPJScFmRC2pEPWMQ0QKYV6UHAYQozXnlB7zOsBEFTcBx 85aqkLsdW4QVp75FrTmUaQAui85OapYFsCepU54Mh9nBrcBxfvummi8zaTgXGPruBjiigQZFRSYR 3srrT1R8trNXpBjrofNvGeXLqbuC7ymQu0JSOq7eBcxLG1OhHYQ/omRezo8+oGx8VSs8AnISFYXF sk= X-UI-Out-Filterresults: notjunk:1;V03:K0:srbQrqkiIEU=:5Vx9qX7sXVETcW76lkTj/G Y339PgOOGld4+i7lOPqGkVsKNJVekjcxrAaI+mcYnZ2jKZOejEtYmZU6eW6ZTwGdq9VSjmZtE xNbtCVPpgHYDzJd6WvXlSjew8CZsgAaRNQCs/p+EDPKeIsH/1grFqRpcjF/WxdLhdFVZTD2pg qhQMNVMhrcTsb6zUDKE55E0PuBB0RgHXuRt9xRPxC/mdKTnzsM3tZ/mHDvUyIDRW7WUAxdFFh pXW7+/NYNGv1nxOnFKbmfWuvixmfjzBR+GgoAsZczbPtGveGMuUTkGjDsboIv3JvYO5Zh6OLw gcqAjxhpoNjo/9wwcnqZGUeJJNtUzZqnhH8/GQulf0fMTI2h0zHWqlNkxkmE3L6zWPx1EqUFv 0twFVC0Ix2UXrcbRGifP2Y5pJC6yUDiw3y9yfilZBgaUhoxi4MFQfOt1YyBgrhplGWzfN7kok dmTViWuV3y0fQ777pSc1MXuRhontlXwbKMQpk4yGw/SXBc4QfSfuZvbB6rsjG07zUFWw5sFJ+ W7cpjmFddUzzXWfLngyQ4QS9MLIk+4a5S34uregQH4n7vWHvpDiLq9kmYLhOJOFssoNAWISfL zghCbZ+6+IsE21CvtvV22PjX26hrcq9FRODznnxuPJvsF0j057waU8nWAqG0dgySwxoYF8lwT QrovRPxiOJMzDYC1C8UCWTjyVezngaJ5clx5+r5XS+lcWJXuW3GAwnQhMjg/LerC3ELf6AdLV 1/zC2VXAGcW6PcV98fP8ZYVzzxThQM9Z9szBwtOnpvRXU+rl3tMdba9aOGTNuCSADehTI5Uv Received-SPF: pass client-ip=212.227.17.20; 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_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:139343 Archived-At: > Sent: Friday, September 09, 2022 at 8:41 PM > From: "Arash Esbati" > To: "Christopher Dimech" > Cc: "Alessandro Bertulli" , "Stefan Mon= nier" , wilnerthomas@tutanota.com, help-gnu-emac= s@gnu.org > Subject: Re: Rainbow-delimiters highlighting { and } for tex and latex > > Christopher Dimech writes: > > > As all these tools are part of Gnu, it would be more suitable to > > integrate all the tex and latex functionality in simple way within > > emacs. [...] There is good functionality in the auctex and cdlatex > > modes for emacs that a least the core should be put in just a single > > mode. > > Does it mean you want to create a One-Stop-Shop for (La)TeX writing > within Emacs, i.e., merging AUCTeX, cdlatex etc. into a core library? > Or just put part of AUCTeX/cdlatex in core? If the latter, how do you > pull the rest? A One-Stop-Shop. Not at all. Just to have some of the essential function= ality as a built-in core at emacs release. Currently, tex-mode and latex-mode a= lready includes some functionality that has been considered valuable for some tim= e by users. For instance, tex-mode and latex-mode do provide a preview tool that uses "prettify-symbols". Being able to introduce keywords rapidly (more effici= ently than can be achieved with text completion) is also valuable for users, cur= rently provided by cdlatex. The problem with cdlatex is that it also depends upo= n texmathp which currently forces users to either pick the file and add it t= o their emacs configuration or install auctex. Which immediately makes the variou= s CamelCase version of modes and hooks come up. cdlatex functionality is great but the design has been found to be fragile= . For instance, even though the following commands share the same structure, hitting "fr", the fr does not expand to \frac{}{}, even though `a exp= ands to \alpha and equ expands to an equation environment as expected. The cdlatex functionality can be introduced into tex-mode and latex-mode. Getting the community to improve it would be highly beneficial if the poss= ibilities are included as emacs built-in. Auctex and Cdlatex could continue seperately, for more exotic features lik= e as today. For auctex, the recommendation is to reject TeX-mode and LaTeX-mode (and r= elated hooks), using instead auctex-tex-mode and auctex-latex-mode (and corresponding hoo= ks). In summary, the focus is on these things 1. Improve design of tex-mode and latex-mode such that common structures are separated into a "core-file" applicable to both, with some minor tweaks in tex-mode and latex-mode if requires. 2. Reevaluate the preview tool that uses prettify-symbols, to see whether there exists possibility of improvement by looking how auctex does thin= gs. 3. Introduce rapid insertion of tex and latex keywords and environments by studying the cdlatex functionality. > > Other major modes do not work in confusing ways like tex and latex. > > Does python also fit the bill above? There is the builtin python.el and > external packages like python-mode.el which have their pros and cons. Am not the best person to decide on python, but if users face the same nomenclature problem, it would be valuable to rethink the design. But, one needs the people using the many aspects of python to tell us what is n= ot working for them. I can scrutinise only things within my experience, and have others lead on the implementation details of things like python.