Skip to content
This repository has been archived by the owner on Mar 15, 2024. It is now read-only.

Commit

Permalink
Major bug in cond, didn't support nil as actual expression to evaluat…
Browse files Browse the repository at this point in the history
…e on match.
  • Loading branch information
Håkan Råberg committed Mar 11, 2013
1 parent 31be044 commit f55777b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/deuce/emacs/print.clj
Expand Up @@ -146,7 +146,8 @@
(defun terpri (&optional printcharfun)
"Output a newline to stream PRINTCHARFUN.
If PRINTCHARFUN is omitted or nil, the value of `standard-output' is used."
)
(println)
true)

(defun prin1-to-string (object &optional noescape)
"Return a string containing the printed representation of OBJECT.
Expand Down
2 changes: 1 addition & 1 deletion src/deuce/emacs_lisp.clj
Expand Up @@ -443,7 +443,7 @@
`(c/cond
~@(->> clauses
(map #(do [`(not-null? ~(el->clj (first %)))
(if (second %) `(progn ~@(rest %)) (el->clj (first %)))]))
(if (= 1 (count %)) (el->clj (first %)) `(progn ~@(rest %)))]))
(apply concat))))

(c/defmacro setq-helper* [default? sym-vals]
Expand Down

0 comments on commit f55777b

Please sign in to comment.