From d2c12da9415b0bdfd50416d9b73135b3b6d76075 Mon Sep 17 00:00:00 2001 From: Cayetano Santos Date: Sat, 14 Feb 2026 10:26:28 +0100 Subject: [PATCH] gnu: emacs-elisp-autofmt: Update to 0.1-2.8aa1ac5. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/emacs-xyz.scm (emacs-elisp-autofmt): Update to 0.1-2.8aa1ac5. [arguments]: Add ’use-appropriate-python #:phase. Change-Id: I00c3fea14cbe5da65645579e7d920c71a98759d7 --- gnu/packages/emacs-xyz.scm | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index cee5b09a05..3a39875005 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -378,8 +378,9 @@ buffer, a file on your disk, or a string from the kill ring.") (license license:gpl3+)))) (define-public emacs-elisp-autofmt - (let ((commit "c2765641a9bd2b4c979e7055030fb7a145b6c118") - (revision "1")) + ;; No tags, nor releases upstream. + (let ((commit "8aa1ac5db6bfcd23dd73f988b5f15ab7b4d0e102") + (revision "2")) (package (name "emacs-elisp-autofmt") (version (git-version "0.1" revision commit)) @@ -391,7 +392,7 @@ buffer, a file on your disk, or a string from the kill ring.") (commit commit))) (file-name (git-file-name name version)) (sha256 - (base32 "0hgmlbxabzhwc1kw59hxvi9xgk6fh0jar4k82sb8yn1zznzhr0lk")) + (base32 "1v5mxq8dqj7hvm5hgxi85jj38jmbxn6yfsy0qd91phc3n1lr3kgp")) (patches (search-patches "emacs-elisp-autofmt-fix-region-send.patch")))) (build-system emacs-build-system) @@ -404,6 +405,11 @@ buffer, a file on your disk, or a string from the kill ring.") %default-include) #:phases #~(modify-phases %standard-phases + (add-after 'unpack 'use-appropriate-python + (lambda* (#:key inputs #:allow-other-keys) + (emacs-substitute-variables "elisp-autofmt.el" + ("elisp-autofmt-python-bin" + (search-input-file inputs "/bin/python3"))))) ;; TODO Remove when fixed upstream. See: ;; . (add-before 'check 'fix-tests