guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/03: emacs: Simplify 'guix-guile-boolean'.


From: Alex Kost
Subject: 01/03: emacs: Simplify 'guix-guile-boolean'.
Date: Tue, 10 May 2016 09:08:12 +0000 (UTC)

alezost pushed a commit to branch master
in repository guix.

commit 10b0c31d6b14e01f6fd5e9c5ba90efab6d5641d0
Author: Alex Kost <address@hidden>
Date:   Sat May 7 21:23:42 2016 +0300

    emacs: Simplify 'guix-guile-boolean'.
    
    * emacs/guix-guile.el (guix-guile-boolean): Use straightforward way to
      define true/false value.
---
 emacs/guix-guile.el |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/emacs/guix-guile.el b/emacs/guix-guile.el
index cd6c54d..792f825 100644
--- a/emacs/guix-guile.el
+++ b/emacs/guix-guile.el
@@ -57,7 +57,7 @@ Return nil, if current buffer does not define a module."
 (defun guix-guile-boolean (arg)
   "Return a string with guile boolean value.
 Transform elisp ARG (nil or non-nil) to the guile boolean (#f or #t)."
-  (concat "#" (prin1-to-string (if arg 't 'f))))
+  (if arg "#t" "#f"))
 
 (defun guix-guile-keyword-regexp (keyword)
   "Return regexp to find guile KEYWORD."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]