From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Thibaut Verron Newsgroups: gmane.emacs.help Subject: Re: cdlatex-mode in emacs Date: Thu, 25 Aug 2022 13:39:50 +0200 Message-ID: <936d788e-120e-86a3-0f39-9e57ae242731@gmail.com> References: <83edx45070.fsf@gnu.org> <838rnc4ytn.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38528"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Cc: wilnerthomas@tutanota.com, Eli Zaretskii , help-gnu-emacs@gnu.org To: uzibalqa Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 25 13:49:49 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 1oRBMr-0009qq-Cd for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 25 Aug 2022 13:49:49 +0200 Original-Received: from localhost ([::1]:36922 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oRBMq-0006gt-A1 for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 25 Aug 2022 07:49:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51350) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oRBDI-0000wh-Nz for help-gnu-emacs@gnu.org; Thu, 25 Aug 2022 07:39:59 -0400 Original-Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]:44568) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oRBDG-0006Oz-Pf; Thu, 25 Aug 2022 07:39:56 -0400 Original-Received: by mail-wm1-x330.google.com with SMTP id k18-20020a05600c0b5200b003a5dab49d0bso2360287wmr.3; Thu, 25 Aug 2022 04:39:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc; bh=LC15/jj+Btjm4JhAnWRHNiNaiucndSRFoVcUt2afJ1I=; b=n/z5pyJQJBtS8yYFzdwqIZZ5azAnYEFTJKqVSGroTkfaxV6N9cd5WGOElr22H5Qg1B Mvp62LQBNJgkUOnaxlzdUr9x3qvtbHlA5l49zq3mlEf1U7/YYY+kFT/+RdJ0sEQOPEQD Uo0D9l3EwmAmGEr17Qh5u8phPuM/hfgEpt3xi39JeJQu1KpybVIkIikyzrqriad6mBvX Uxq6AQqbbmShVRaOV6iv10QXCGbYWFrDycCGTb2/Qpbpqs0JSTigTPzUvWyIuyAhFw5V Ikyuyoi9I3iOKMCANGBsVbhxDzWboC91DhBiJGeTSteVVaTYiZthM6brcF3k4A1P/0vD TXVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc; bh=LC15/jj+Btjm4JhAnWRHNiNaiucndSRFoVcUt2afJ1I=; b=hfH+TMjSvthyDIXRGzmN+ZouoHJe+yhlvwIGX6lMd1TbGt2EmmmWU7OiBLEN348Z66 6YysGLFnXH3hhYxCqvnDSe2W9qWVIXYwVuwTocvraNkTeaGfYO2xAfgvPL4nupQs2nss zmts/k21f3tyhUYmzPzZEAH2miPtepvSkiTF1WV3NtxKrOuZwL6Bzu1rp7t+4Ec69UQM RQoVZ1/850GBPRtK3Qe1yuWSUmcg0KNbkC+BNB1RWiVxsNPEeNYIKae6VZGUlXY7QNev sghR2dNBe+vKmskmAjDcryAZCslxxtJdQ+s/0yiWvQ5+Mq1VmJR+vFMfjsFlJEcQ+qdo X3ng== X-Gm-Message-State: ACgBeo2xqYNjFbv1aVykk/Q5xbfF4tlBhk6S2FoI8iHvYARoTsW3Jk3l SOHybnOgLva/OlWEcNGbh8g= X-Google-Smtp-Source: AA6agR6EMf2jMHM+fZVCuTJmVmHCtNd68dSRUCmdmD8po13xdLSRrGyGQJIHHEqj/ojeAyOh46WgMg== X-Received: by 2002:a05:600c:19d0:b0:3a6:2eb1:cfa5 with SMTP id u16-20020a05600c19d000b003a62eb1cfa5mr7910972wmq.37.1661427592953; Thu, 25 Aug 2022 04:39:52 -0700 (PDT) Original-Received: from ?IPV6:2001:628:2010:4094:1f4a:a42b:7a2e:722f? ([2001:628:2010:4094:1f4a:a42b:7a2e:722f]) by smtp.gmail.com with ESMTPSA id j18-20020a05600c191200b003a5c2abc412sm5830635wmq.44.2022.08.25.04.39.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 25 Aug 2022 04:39:52 -0700 (PDT) Content-Language: en-US In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::330; envelope-from=thibaut.verron@gmail.com; helo=mail-wm1-x330.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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:139085 Archived-At: On 25/08/2022 12:41, uzibalqa wrote: > ------- Original Message ------- > On Thursday, August 25th, 2022 at 8:08 AM, Thibaut Verron wrote: > > >> On 25/08/2022 08:53, wilnerthomas--- via Users list for the GNU Emacs >> text editor wrote: >> >>> Aug 25, 2022, 06:33 by eliz@gnu.org: >>> >>>>> Date: Thu, 25 Aug 2022 06:20:09 +0000 >>>>> From: uzibalqa uzibalqa@proton.me >>>>> Cc: help-gnu-emacs@gnu.org >>>>> >>>>>>> Date: Thu, 25 Aug 2022 03:20:04 +0000 >>>>>>> From: uzibalqa uzibalqa@proton.me >>>>>>> >>>>>>> Does anybody know when cdlatex-mode was introduced into Emacs? I am using Emacs 27.2 >>>>>> There's no cdlatex-mode in Emacs, only org-cdlatex-mode. >>>>>> Is there texmathp.el in emacs, which is a Gnu Package. >>>> No, not in Emacs. >>> It is part of AUCTeX which is a Gnu Package. It comes with Emacs Support for writing >>> Latex Files. Could the functionality be included in Emacs. cdlatex-mode is useful for >>> rapid writing latex templates and symbols rapidly. >>> >>> Could improve using tex-mode and latex-mode immensely in Emacs. >> >> AUCTeX is on GNU Elpa, and cdlatex is on NonGNU Elpa, so both can be >> directly installed with the package manager. In my opinion, it is the >> right place for such packages, rather than emacs core: this way they can >> release new versions without having to wait for the emacs release cycle. >> (See: org-mode) >> >> tex-mode and latex-mode are extremely basic modes in comparison, I don't >> know anybody using them. And it's unfortunate that they preempted the >> tex- and latex- namespaces, forcing AUCTeX to capitalize its mode names >> and variables -- but I digress. > > I agree with your last evaluation Thibaut. tex-mode and latex-mode are > extremely basic modes. Because (as you state) almost nobody using them, > they should be beefed up using ideas from texmathp.el and cdlatex. With > the useful functionalities incorporated, emacs would not need to always > pick up on every release of those packages. But users can get them seperately > for added functionality if they wish. But what would be the advantage of doing that? Both packages are available on the "official" repository for emacs packages, and can be installed in a matter of seconds. Right now the purpose of each package is clear: built-in basic support, auctex for advanced IDE-like features, cdlatex for quick math insertion. (Note that cdlatex is a minor mode, and can be used to insert maths in any emacs buffer.) > I encourage that tex-mode and latex-mode stop being intertwined together, but > developed seperately. The syntax is so different that they produce choas when > all functionality is put in a single file. The file tex-mode.el which implements basic support for both tex, latex and doctex is less than 4000 lines long. The syntax may be superficially different, but a lot of concepts are common between the different languages of the family. Plus, one gets support for tex syntax in latex documents for free. AUCTeX, too, builds support for latex on top of the support for tex. Best wishes, Thibaut