From unknown Mon Jun 16 16:05:59 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#65717 <65717@debbugs.gnu.org> To: bug#65717 <65717@debbugs.gnu.org> Subject: Status: [PATCH] gnu: Add emacs-latex-extra. Reply-To: bug#65717 <65717@debbugs.gnu.org> Date: Mon, 16 Jun 2025 23:05:59 +0000 retitle 65717 [PATCH] gnu: Add emacs-latex-extra. reassign 65717 guix-patches submitter 65717 Sergiu Ivanov severity 65717 normal tag 65717 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 03 14:29:20 2023 Received: (at submit) by debbugs.gnu.org; 3 Sep 2023 18:29:20 +0000 Received: from localhost ([127.0.0.1]:46871 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qcrqa-0007c3-Bv for submit@debbugs.gnu.org; Sun, 03 Sep 2023 14:29:20 -0400 Received: from lists.gnu.org ([2001:470:142::17]:41206) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qcrqX-0007bW-OE for submit@debbugs.gnu.org; Sun, 03 Sep 2023 14:29:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qcrIL-00050z-7r for guix-patches@gnu.org; Sun, 03 Sep 2023 13:53:57 -0400 Received: from captaincourier.marvid.fr ([51.159.66.78]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qcrII-00055C-6U for guix-patches@gnu.org; Sun, 03 Sep 2023 13:53:56 -0400 From: Sergiu Ivanov DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=colimite.fr; s=mail; t=1693763629; bh=8kkO9GiaxqDim61TPj0KMFdsX5WeZyPTyMaTfo6fD2U=; h=From:To:Subject:Date; b=iI60dPyHegumYVMocD1k3sbV/juHWuEMmll7ah1Qwob7frpSmTWNmf+Jeud7ADa4j 5ZCGNwR4MN+Xn/drafxsZaL0JkHigbpRbbtVVm8TWnbFc/60nHlAjEuOMowA7UZvuS nNu6I5rSl2UcVM0GYEZL8XZURbDu9p3GWAVNCBmk= To: guix-patches@gnu.org Subject: [PATCH] gnu: Add emacs-latex-extra. Date: Sun, 03 Sep 2023 19:52:14 +0200 Message-ID: <875y4ri1n7.fsf@colimite.fr> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=51.159.66.78; envelope-from=sivanov@colimite.fr; helo=captaincourier.marvid.fr 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.9 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.1 (/) --=-=-= Content-Type: text/plain Dear Guix, Here's a patch packaging the MELPA package https://github.com/Malabarba/latex-extra . Thanks! - Sergiu --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: attachment; filename=0001-gnu-Add-emacs-latex-extra.patch Content-Transfer-Encoding: quoted-printable >From d0e143ed7f1ac22891e67cf354ccecb7439c190a Mon Sep 17 00:00:00 2001 From: Sergiu Ivanov Date: Sun, 3 Sep 2023 19:29:03 +0200 Subject: [PATCH] gnu: Add emacs-latex-extra. * gnu/packages/emacs-xyz.scm (emacs-latex-extra): New variable. --- gnu/packages/emacs-xyz.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index dc2998a217..9dc9bcc6a7 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -132,6 +132,7 @@ ;;; Copyright =C2=A9 2023 Fabio Natali ;;; Copyright =C2=A9 2023 Arnaud Lechevallier ;;; Copyright =C2=A9 2023 Ahmad Draidi +;;; Copyright =C2=A9 2023 Sergiu Ivanov ;;; ;;; This file is part of GNU Guix. ;;; @@ -4067,6 +4068,36 @@ (define-public emacs-auctex or XEmacs.") (license license:gpl3+))) =20 +(define-public emacs-latex-extra + (let ((commit "a81e7588448f85c5fcc3f3fc71cf957d0928a656") + (revision "0")) + (package + (name "emacs-latex-extra") + (version (git-version "1.14" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/Malabarba/latex-extra") + (commit commit))) + (sha256 + (base32 + "0sajg5vmygnkcnmkrpf8r7c4b8v95hgsv1y6pz868jpznmldnxkb")) + (file-name (git-file-name name version)))) + (build-system emacs-build-system) + (arguments + `(#:phases (modify-phases %standard-phases + (add-before 'build 'set-home + (lambda _ + (setenv "HOME" + (getcwd))))))) + (inputs (list emacs-auctex)) + (home-page "https://github.com/Malabarba/latex-extra") + (synopsis "Usability improvements for latex-mode") + (description + "Latex-extra defines extra commands and keys for LaTeX-mode, as well +as brings user experience improvements.") + (license license:gpl3+)))) + (define-public emacs-autothemer (let ((commit "8f72afc6dba5ad7cc3a201a084fd20571f945d2e")) ;version bump (package --=20 2.41.0 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 03 15:45:00 2023 Received: (at 65717) by debbugs.gnu.org; 3 Sep 2023 19:45:00 +0000 Received: from localhost ([127.0.0.1]:46968 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qct1o-0006Ld-4p for submit@debbugs.gnu.org; Sun, 03 Sep 2023 15:45:00 -0400 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:59905) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qct1l-0006LM-Em for 65717@debbugs.gnu.org; Sun, 03 Sep 2023 15:44:58 -0400 Received: by mail.gandi.net (Postfix) with ESMTPSA id 38C1940004; Sun, 3 Sep 2023 19:44:50 +0000 (UTC) From: Nicolas Goaziou To: Sergiu Ivanov Subject: Re: [bug#65717] [PATCH] gnu: Add emacs-latex-extra. References: <875y4ri1n7.fsf@colimite.fr> Date: Sun, 03 Sep 2023 21:44:49 +0200 In-Reply-To: <875y4ri1n7.fsf@colimite.fr> (Sergiu Ivanov's message of "Sun, 03 Sep 2023 19:52:14 +0200") Message-ID: <87r0nf9h3i.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-GND-Sasl: admin@nicolasgoaziou.fr X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 65717 Cc: 65717@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hello, Sergiu Ivanov writes: > Subject: [PATCH] gnu: Add emacs-latex-extra. Thank you. Some comments follow. > + (build-system emacs-build-system) > + (arguments > + `(#:phases (modify-phases %standard-phases > + (add-before 'build 'set-home > + (lambda _ > + (setenv "HOME" > + (getcwd))))))) Why is it needed ? Also, upstream provides tests. Could you run them? > + (inputs (list emacs-auctex)) Usually, inputs are propagated, although it doesn't make a difference for Emacs. > + (home-page "https://github.com/Malabarba/latex-extra") > + (synopsis "Usability improvements for latex-mode") Nitpick: "latex-mode" -> "LaTeX mode" > + (description > + "Latex-extra defines extra commands and keys for LaTeX-mode, as well > +as brings user experience improvements.") Nitpick: "LaTeX-mode" -> "LaTeX mode" Could you send an updated patch? Regards, -- Nicolas Goaziou From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 05 08:30:51 2023 Received: (at 65717) by debbugs.gnu.org; 5 Sep 2023 12:30:51 +0000 Received: from localhost ([127.0.0.1]:54850 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qdVCl-0007cf-51 for submit@debbugs.gnu.org; Tue, 05 Sep 2023 08:30:51 -0400 Received: from captaincourier.marvid.fr ([51.159.66.78]:51178) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qdVCg-0007cN-TX for 65717@debbugs.gnu.org; Tue, 05 Sep 2023 08:30:50 -0400 References: <875y4ri1n7.fsf@colimite.fr> <87r0nf9h3i.fsf@nicolasgoaziou.fr> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=colimite.fr; s=mail; t=1693917039; bh=G7pjriQcck+g1hY/fs+L+tWuslHl8y4pFN3thicDdkk=; h=References:From:To:Cc:Subject:Date:In-reply-to; b=IyHWN82ItF+CCn0ekD1QnurbAyYAHkOope5fZxS+MchBlEOBh7Sc77cnN4DhXj/ZX jxfSXVtv6LfqbRWMm2B25RWWd+Q6hwYLTzDsOrzb7Eak+gt0o641PmmmkneytEs3G0 E30U6zTiVSj2MiTcaU/CJQ1zjArs1sgh7c2kT88M= From: Sergiu Ivanov To: Nicolas Goaziou Subject: Re: [bug#65717] [PATCH] gnu: Add emacs-latex-extra. Date: Mon, 04 Sep 2023 22:16:27 +0200 In-reply-to: <87r0nf9h3i.fsf@nicolasgoaziou.fr> Message-ID: <878r9ker9t.fsf@colimite.fr> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 0.8 (/) X-Debbugs-Envelope-To: 65717 Cc: 65717@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.2 (/) --=-=-= Content-Type: text/plain Hello Nicolas, Thank you very much for your feedback. Nicolas Goaziou [2023-09-03T21:44:49+0200]: > Hello, > > Sergiu Ivanov writes: > >> Subject: [PATCH] gnu: Add emacs-latex-extra. > > Thank you. > > Some comments follow. > >> + (build-system emacs-build-system) >> + (arguments >> + `(#:phases (modify-phases %standard-phases >> + (add-before 'build 'set-home >> + (lambda _ >> + (setenv "HOME" >> + (getcwd))))))) > > Why is it needed ? If I don't explicitly set $HOME, the build fails with Debugger entered--Lisp error: (file-missing "Setting current directory" "No such file or directory" "/homeless-shelter/") call-process("sh" nil t nil "-c" "evince --help") call-process-shell-command("evince --help" nil t) shell-command("evince --help" t) shell-command-to-string("evince --help") TeX-view-program-select-evince("gnome" "evince") ... > Also, upstream provides tests. Could you run them? I tried adding the following to the arguments list: #:tests? #t #:test-command '("make" "test") and the build now fails with this error: starting phase `check' echo "hi " /tmp/guix-build-emacs-latex-extra-1.14-0.a81e758.drv-0/source && \ emacs -Q --batch -L "auctex-11.87.7/" -L "tests/auctex-11.87.7/" -l "auctex-autoloads.el" -L . -L .. -L tests/ --eval \ "(progn \ (unless (fboundp 'function-put) (defalias 'function-put #'(lambda (f prop value) (put f prop value)))) \ (defun define-error (name message &optional parent) (unless parent (setq parent 'error)) (let ((conditions (if (consp parent) (apply #'nconc (mapcar (lambda (parent) (cons parent (or (get parent 'error-conditions) (error \"Unknown signal %s\" parent)))) parent)) (cons parent (get parent 'error-conditions))))) (put name 'error-conditions (delete-dups (copy-sequence (cons name conditions)))) (when message (put name 'error-message message)))) \ (setq byte-compile-error-on-warn t) \ (batch-byte-compile))" *.el hi /tmp/guix-build-emacs-latex-extra-1.14-0.a81e758.drv-0/source Eager macro-expansion failure: (error "Package cl is deprecated") Eager macro-expansion failure: (error "Package cl is deprecated") In toplevel form: latex-extra.el:130:1: Error: Package cl is deprecated make: *** [Makefile:25: build] Error 1 error: in phase 'check': uncaught exception: %exception #<&invoke-error program: "make" arguments: ("test" "-j" "8") exit-status: 2 term-signal: #f stop-signal: #f> phase `check' failed after 0.1 seconds I hunted around emacs-xyz.scm and tried using ert-runner, which complained that the tests are in the wrong directory, since it expects apparently the tests to be under test/ and not tests/, as in the case of latex-extra. Still, by looking at how the test target is defined in the Makefile of latex-extra, I think that this is not the problem. On the other hand, I don't believe that package cl being deprecated is the problem either, since that is normally a warning and not an error. Do you have any ideas as to how to debug this kind of issues? FWIW, I am already using the draft version of this package out of my private channel, and it works nicely, so this problem seems to be specific for the tests. >> + (inputs (list emacs-auctex)) > > Usually, inputs are propagated, although it doesn't make a difference > for Emacs. I changed this to propagated-inputs. >> + (home-page "https://github.com/Malabarba/latex-extra") >> + (synopsis "Usability improvements for latex-mode") > > Nitpick: "latex-mode" -> "LaTeX mode" Fixed. >> + (description >> + "Latex-extra defines extra commands and keys for LaTeX-mode, as well >> +as brings user experience improvements.") > > Nitpick: "LaTeX-mode" -> "LaTeX mode" Fixed as well. - Sergiu --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: attachment; filename=0001-gnu-Add-emacs-latex-extra.patch Content-Transfer-Encoding: quoted-printable >From c8fe800f453c139177dcfb28bbe59b1cd362a902 Mon Sep 17 00:00:00 2001 From: Sergiu Ivanov Date: Sun, 3 Sep 2023 19:29:03 +0200 Subject: [PATCH] gnu: Add emacs-latex-extra. * gnu/packages/emacs-xyz.scm (emacs-latex-extra): New variable. --- gnu/packages/emacs-xyz.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index dc2998a217..6815d8410f 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -132,6 +132,7 @@ ;;; Copyright =C2=A9 2023 Fabio Natali ;;; Copyright =C2=A9 2023 Arnaud Lechevallier ;;; Copyright =C2=A9 2023 Ahmad Draidi +;;; Copyright =C2=A9 2023 Sergiu Ivanov ;;; ;;; This file is part of GNU Guix. ;;; @@ -4067,6 +4068,36 @@ (define-public emacs-auctex or XEmacs.") (license license:gpl3+))) =20 +(define-public emacs-latex-extra + (let ((commit "a81e7588448f85c5fcc3f3fc71cf957d0928a656") + (revision "0")) + (package + (name "emacs-latex-extra") + (version (git-version "1.14" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/Malabarba/latex-extra") + (commit commit))) + (sha256 + (base32 + "0sajg5vmygnkcnmkrpf8r7c4b8v95hgsv1y6pz868jpznmldnxkb")) + (file-name (git-file-name name version)))) + (build-system emacs-build-system) + (arguments + `(#:phases (modify-phases %standard-phases + (add-before 'build 'set-home + (lambda _ + (setenv "HOME" + (getcwd))))))) + (propagated-inputs (list emacs-auctex)) + (home-page "https://github.com/Malabarba/latex-extra") + (synopsis "Usability improvements for LaTeX mode") + (description + "Latex-extra defines extra commands and keys for LaTeX mode, as well +as brings user experience improvements.") + (license license:gpl3+)))) + (define-public emacs-autothemer (let ((commit "8f72afc6dba5ad7cc3a201a084fd20571f945d2e")) ;version bump (package --=20 2.41.0 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 05 08:51:07 2023 Received: (at 65717-done) by debbugs.gnu.org; 5 Sep 2023 12:51:08 +0000 Received: from localhost ([127.0.0.1]:54922 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qdVWN-0002P0-J4 for submit@debbugs.gnu.org; Tue, 05 Sep 2023 08:51:07 -0400 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:50381) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qdVWI-0002OO-N3 for 65717-done@debbugs.gnu.org; Tue, 05 Sep 2023 08:51:06 -0400 Received: by mail.gandi.net (Postfix) with ESMTPSA id 177FA1C0006; Tue, 5 Sep 2023 12:50:54 +0000 (UTC) From: Nicolas Goaziou To: Sergiu Ivanov Subject: Re: [bug#65717] [PATCH] gnu: Add emacs-latex-extra. References: <875y4ri1n7.fsf@colimite.fr> <87r0nf9h3i.fsf@nicolasgoaziou.fr> <878r9ker9t.fsf@colimite.fr> Date: Tue, 05 Sep 2023 14:50:54 +0200 In-Reply-To: <878r9ker9t.fsf@colimite.fr> (Sergiu Ivanov's message of "Mon, 04 Sep 2023 22:16:27 +0200") Message-ID: <87edjciy1d.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-GND-Sasl: admin@nicolasgoaziou.fr X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 65717-done Cc: 65717-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hello, Sergiu Ivanov writes: > If I don't explicitly set $HOME, the build fails with > > Debugger entered--Lisp error: (file-missing "Setting current directory" "No such file or directory" "/homeless-shelter/") OK. > I tried adding the following to the arguments list: > > #:tests? #t > #:test-command '("make" "test") Sometimes, it is necessary to skip the Makefile step and write explicitly what the Makefile is doing right into #:test-command. Here, I called `ert-run-tests-batch-and-exit' after loading the test library. The unusual part was the tests required to be run from within the "tests/" directory, hence the `cd' evaluation: #:test-command #~(list "emacs" "-Q" "--batch" "--eval=(cd \"tests/\")" "-l" "latex-extra-test.el" "-f" "ert-run-tests-batch-and-exit") I applied your patch. Thank you! Regards, -- Nicolas Goaziou From unknown Mon Jun 16 16:05:59 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 04 Oct 2023 11:24:12 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator