summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2010-12-28 03:29:13 +0100
committerJose Antonio Ortega Ruiz <jao@gnu.org>2010-12-28 03:29:13 +0100
commitcb3e923097d5910d89be09eb19a7be5a51ff57c1 (patch)
treee0c97782472f198e388d40b9123c76c574006420
parent1dc1643105f40700b2b1891159af2025283f2138 (diff)
downloadgeiser-cb3e923097d5910d89be09eb19a7be5a51ff57c1.tar.gz
geiser-cb3e923097d5910d89be09eb19a7be5a51ff57c1.tar.bz2
Wee refactoring
-rw-r--r--elisp/geiser-autodoc.el14
1 files changed, 6 insertions, 8 deletions
diff --git a/elisp/geiser-autodoc.el b/elisp/geiser-autodoc.el
index 567316d..9d7bfe5 100644
--- a/elisp/geiser-autodoc.el
+++ b/elisp/geiser-autodoc.el
@@ -60,14 +60,12 @@ when `geiser-autodoc-display-module-p' is on."
(defun geiser-autodoc--save-signatures (ret)
(let ((res (geiser-eval--retort-result ret)))
(when res
- (setq geiser-autodoc--cached-signatures
- (append (mapcar (lambda (s)
- (cons (format "%s" (car s)) (cdr s)))
- res)
- geiser-autodoc--cached-signatures))))
- (let ((str (geiser-autodoc--autodoc (geiser-syntax--scan-sexps)
- geiser-autodoc--cached-signatures)))
- (when str (eldoc-message str))))
+ (dolist (item res)
+ (push (cons (format "%s" (car item)) (cdr item))
+ geiser-autodoc--cached-signatures))
+ (let ((str (geiser-autodoc--autodoc (geiser-syntax--scan-sexps)
+ geiser-autodoc--cached-signatures)))
+ (when str (eldoc-message str))))))
(defun geiser-autodoc--get-signatures (funs)
(when funs