From 2bdc415a343af9ab1cbb765086df724e5c237e2e Mon Sep 17 00:00:00 2001 From: Soonho Kong Date: Mon, 15 Sep 2014 11:26:53 -0700 Subject: [PATCH] fix(emacs/lean-option): handle lean-option-string when it's nil --- src/emacs/lean-option.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/emacs/lean-option.el b/src/emacs/lean-option.el index 682a154f5d..f2c57aab2a 100644 --- a/src/emacs/lean-option.el +++ b/src/emacs/lean-option.el @@ -21,9 +21,10 @@ (string-join str-list "\n"))) (defun lean-option-string () - (--reduce (format "%s %s" acc it) - (--map (format "-D %s=%s" (car it) (cdr it)) - lean-global-option-alist))) + (when lean-global-option-alist + (--reduce (format "%s %s" acc it) + (--map (format "-D%s=%s" (car it) (cdr it)) + lean-global-option-alist)))) (defun lean-update-option-alist (name value) (let ((needle (assoc-string name lean-global-option-alist)))