diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2010-12-28 03:29:13 +0100 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2010-12-28 03:29:13 +0100 |
commit | ef55123a1cb33f0d8e555060d66f508db51122f2 (patch) | |
tree | 789dbb112b154425cfb3e229279567ac1c565b47 /elisp | |
parent | d05e8e0e2323a654e8e8f81214750b2819fcbc8e (diff) | |
download | geiser-chez-ef55123a1cb33f0d8e555060d66f508db51122f2.tar.gz geiser-chez-ef55123a1cb33f0d8e555060d66f508db51122f2.tar.bz2 |
Wee refactoring
Diffstat (limited to 'elisp')
-rw-r--r-- | elisp/geiser-autodoc.el | 14 |
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 |