feat(emacs/lean-type): output INFO to *lean-info* buffer in addition to minibuffer

Close #260
This commit is contained in:
Soonho Kong 2014-10-28 14:06:03 -07:00
parent 0d8658d762
commit b0e249ce63

View file

@ -40,7 +40,11 @@
(when add-to-kill-ring
(kill-new
(substring-no-properties info-string)))
(message "%s" info-string))))
(when (or lean-show-proofstate-in-minibuffer
(not (lean-info-record-proofstate info-record)))
(message "%s" info-string))
(lean-output-to-buffer "*lean-info*" "--------------------------\n" nil)
(lean-output-to-buffer "*lean-info*" "%s\n" (list info-string)))))
(defun lean-eldoc-documentation-function (&optional add-to-kill-ring)
"Show information of lean expression at point if any"