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


Message #68 received at 78315 <at> debbugs.gnu.org (full text, mbox):

From: Nicolas Graves <ngraves <at> ngraves.fr>
To: 78315 <at> debbugs.gnu.org
Cc: Nicolas Graves <ngraves <at> ngraves.fr>
Subject: [PATCH 21/53] gnu: emacs-libyaml: Improve style.
Date: Thu,  8 May 2025 14:50:23 +0200
* gnu/packages/emacs-xyz.scm (emacs-libyaml):
  [arguments]<phases>: Improve 'substitute-libyaml-core-path style.
---
 gnu/packages/emacs-xyz.scm | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 24cb9ecd3a..4a616fdb62 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -34603,10 +34603,10 @@ (define-public emacs-libyaml
             (add-after 'unpack 'substitute-libyaml-core-path
               (lambda _
                 (make-file-writable "libyaml.el")
-                (substitute* "libyaml.el"
-                  (("^\\(require 'libyaml-core\\)")
-                   (string-append "(module-load \"" #$output
-                                  "/lib/libyaml-core.so\")")))))
+                (emacs-substitute-sexps "libyaml.el"
+                  ("(require 'libyaml-core)"
+                   `(module-load
+                     ,(string-append #$output "/lib/libyaml-core.so"))))))
             (add-after 'check 'make
               ;; Run make.
               (lambda* (#:key (make-flags '()) #:allow-other-keys)
-- 
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.