emacs: Simplify 'guix-guile-boolean'.

* emacs/guix-guile.el (guix-guile-boolean): Use straightforward way to
  define true/false value.
This commit is contained in:
Alex Kost 2016-05-07 21:23:42 +03:00
parent 26fceae21a
commit 10b0c31d6b
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ Return nil, if current buffer does not define a module."
(defun guix-guile-boolean (arg) (defun guix-guile-boolean (arg)
"Return a string with guile boolean value. "Return a string with guile boolean value.
Transform elisp ARG (nil or non-nil) to the guile boolean (#f or #t)." 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) (defun guix-guile-keyword-regexp (keyword)
"Return regexp to find guile KEYWORD." "Return regexp to find guile KEYWORD."