Subject: [bug#78315] [PATCH v3 21/53] gnu: emacs-libyaml: Improve style.

From: Nicolas Graves <[email-masked]>
Date: Sun, 18 May 2025 10:16:20 +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 2e2609b88c..57601c76da 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -34602,10 +34602,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