GNU bug report logs - #78315
[PATCH emacs-team 00/53] More fixes, and a lot of style improvements.

Previous Next

Package: guix-patches;

Reported by: Nicolas Graves <ngraves <at> ngraves.fr>

Date: Thu, 8 May 2025 12:49:02 UTC

Severity: normal

Tags: patch

Done: Ian Eure <ian <at> retrospec.tv>

Full log


View this message in rfc822 format

From: Nicolas Graves <ngraves <at> ngraves.fr>
To: 78315 <at> debbugs.gnu.org
Cc: Nicolas Graves <ngraves <at> ngraves.fr>
Subject: [bug#78315] [PATCH v3 26/53] gnu: emacs-all-the-icons: Improve style.
Date: Sun, 18 May 2025 10:16:25 +0200
* gnu/packages/emacs-xyz.scm (emacs-all-the-icons):
  [arguments]: Improve style, use gexps.
---
 gnu/packages/emacs-xyz.scm | 46 +++++++++++++++++++-------------------
 1 file changed, 23 insertions(+), 23 deletions(-)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index c693bd887b..d56e7c9ac7 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -32382,29 +32382,29 @@ (define-public emacs-all-the-icons
         (base32 "0lwgvgnqf7vihglm0c5bwsxbl4x7f641289cji5s7jwy2dbsqk7g"))))
     (build-system emacs-build-system)
     (arguments
-     `(#:include '("\\.el$" "^data/")
-       #:exclude '("^test/")
-       #:tests? #f                      ; XXX: duplicate tests
-       #:phases
-       (modify-phases %standard-phases
-         (add-after 'install 'install-fonts
-           (lambda* (#:key outputs #:allow-other-keys)
-             (let ((fonts (string-append (assoc-ref outputs "out")
-                                         "/share/fonts")))
-               (mkdir-p fonts)
-               (with-directory-excursion "fonts"
-                 (install-file "all-the-icons.ttf" fonts)
-                 ;; TODO: Unbundle.
-                 (install-file "file-icons.ttf" fonts)
-                 (install-file "octicons.ttf" fonts)
-                 (install-file "weathericons.ttf" fonts)))))
-         (replace 'check
-           (lambda* (#:key tests? outputs #:allow-other-keys)
-             (if tests?
-                 (apply invoke "ert-runner" "-l"
-                        (append (find-files "data" "\\.el")
-                                '("all-the-icons-faces.el")))
-                 (format #t "test suite not run~%")))))))
+     (list
+      #:include '(list "\\.el$" "^data/")
+      #:exclude '(list "^test/")
+      #:tests? #f                      ; XXX: duplicate tests
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'install 'install-fonts
+            (lambda _
+              (let ((fonts (string-append #$output "/share/fonts")))
+                (mkdir-p fonts)
+                (with-directory-excursion "fonts"
+                  (install-file "all-the-icons.ttf" fonts)
+                  ;; TODO: Unbundle.
+                  (install-file "file-icons.ttf" fonts)
+                  (install-file "octicons.ttf" fonts)
+                  (install-file "weathericons.ttf" fonts)))))
+          (replace 'check
+            (lambda* (#:key tests? #:allow-other-keys)
+              (if tests?
+                  (apply invoke "ert-runner" "-l"
+                         (append (find-files "data" "\\.el")
+                                 '("all-the-icons-faces.el")))
+                  (format #t "test suite not run~%")))))))
     (native-inputs
      (list emacs-f emacs-ert-runner))
     (propagated-inputs
-- 
2.49.0





This bug report was last modified 21 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.