fix(emacs/lean-option): handle lean-option-string when it's nil

This commit is contained in:
Soonho Kong 2014-09-15 11:26:53 -07:00
parent 11ff7b5d33
commit 2bdc415a34

View file

@ -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)))