[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/06: build-system: emacs: Replace system* with invoke.
From: |
Arun Isaac |
Subject: |
03/06: build-system: emacs: Replace system* with invoke. |
Date: |
Thu, 19 Apr 2018 15:24:24 -0400 (EDT) |
arunisaac pushed a commit to branch master
in repository guix.
commit 8a8fa82e72f55526e8aae85809c8655f5ff26690
Author: Maxim Cournoyer <address@hidden>
Date: Sun Apr 15 22:46:26 2018 -0400
build-system: emacs: Replace system* with invoke.
* guix/build/emacs-utils.scm: Use (guix build utils) for invoke.
(emacs-batch-eval, emacs-batch-edit-file): Replace system* with invoke.
* guix/build/emacs-build-system.scm (make-autoloads): No need to return #t
explicitly since emacs-generate-autoloads now uses invoke.
Signed-off-by: Arun Isaac <address@hidden>
---
guix/build/emacs-build-system.scm | 3 +--
guix/build/emacs-utils.scm | 14 +++++++-------
2 files changed, 8 insertions(+), 9 deletions(-)
diff --git a/guix/build/emacs-build-system.scm
b/guix/build/emacs-build-system.scm
index 41c0142..da17eb1 100644
--- a/guix/build/emacs-build-system.scm
+++ b/guix/build/emacs-build-system.scm
@@ -228,8 +228,7 @@ store in '.el' files."
(elpa-name (package-name->name+version elpa-name-ver))
(el-dir (string-append out %install-suffix "/" elpa-name-ver)))
(parameterize ((%emacs emacs))
- (emacs-generate-autoloads elpa-name el-dir))
- #t))
+ (emacs-generate-autoloads elpa-name el-dir))))
(define (emacs-package? name)
"Check if NAME correspond to the name of an Emacs package."
diff --git a/guix/build/emacs-utils.scm b/guix/build/emacs-utils.scm
index 8389ca5..2bd4e39 100644
--- a/guix/build/emacs-utils.scm
+++ b/guix/build/emacs-utils.scm
@@ -1,6 +1,7 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2014 Mark H Weaver <address@hidden>
;;; Copyright © 2014 Alex Kost <address@hidden>
+;;; Copyright © 2018 Maxim Cournoyer <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -18,6 +19,7 @@
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
(define-module (guix build emacs-utils)
+ #:use-module (guix build utils)
#:export (%emacs
emacs-batch-eval
emacs-batch-edit-file
@@ -39,16 +41,14 @@
(define (emacs-batch-eval expr)
"Run Emacs in batch mode, and execute the elisp code EXPR."
- (unless (zero? (system* (%emacs) "--quick" "--batch"
- (format #f "--eval=~S" expr)))
- (error "emacs-batch-eval failed!" expr)))
+ (invoke (%emacs) "--quick" "--batch"
+ (format #f "--eval=~S" expr)))
(define (emacs-batch-edit-file file expr)
"Load FILE in Emacs using batch mode, and execute the elisp code EXPR."
- (unless (zero? (system* (%emacs) "--quick" "--batch"
- (string-append "--visit=" file)
- (format #f "--eval=~S" expr)))
- (error "emacs-batch-edit-file failed!" file expr)))
+ (invoke (%emacs) "--quick" "--batch"
+ (string-append "--visit=" file)
+ (format #f "--eval=~S" expr)))
(define (emacs-generate-autoloads name directory)
"Generate autoloads for Emacs package NAME placed in DIRECTORY."
- branch master updated (2bb915e -> 9490c41), Arun Isaac, 2018/04/19
- 01/06: build-system: emacs: Search all inputs for Emacs Lisp directories., Arun Isaac, 2018/04/19
- 03/06: build-system: emacs: Replace system* with invoke.,
Arun Isaac <=
- 02/06: gnu: emacs-pdf-tools: Fix byte compilation., Arun Isaac, 2018/04/19
- 04/06: build-system: emacs: Add improved check phase., Arun Isaac, 2018/04/19
- 05/06: gnu: Adapt Emacs packages to use the new check phase., Arun Isaac, 2018/04/19
- 06/06: gnu: ert-runner: Adjust ert-runner wrapper to honor EMACSLOADPATH., Arun Isaac, 2018/04/19