diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2010-09-06 01:50:24 +0200 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2010-09-06 01:50:24 +0200 |
commit | 43c915add421637b4db12941e6d738b8de46ff7b (patch) | |
tree | 53703c04f4b997638c589bdaa1ff960e2471ea0c /elisp/geiser-autodoc.el | |
parent | 6c5ab9fbb37f6691395ddcc8b985819b7809cac4 (diff) | |
download | geiser-guile-43c915add421637b4db12941e6d738b8de46ff7b.tar.gz geiser-guile-43c915add421637b4db12941e6d738b8de46ff7b.tar.bz2 |
Autodoc: clean cache upon evaluation
Diffstat (limited to 'elisp/geiser-autodoc.el')
-rw-r--r-- | elisp/geiser-autodoc.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/elisp/geiser-autodoc.el b/elisp/geiser-autodoc.el index 90295b7..628b408 100644 --- a/elisp/geiser-autodoc.el +++ b/elisp/geiser-autodoc.el @@ -54,6 +54,9 @@ when `geiser-autodoc-display-module-p' is on." (make-variable-buffer-local (defvar geiser-autodoc--cached-signatures nil)) +(defsubst geiser-autodoc--clean-cache () + (setq geiser-autodoc--cached-signatures nil)) + (defun geiser-autodoc--get-signatures (funs &optional keep-cached) (when funs (let ((fs (assq (car funs) geiser-autodoc--cached-signatures))) @@ -65,8 +68,7 @@ when `geiser-autodoc-display-module-p' is on." (let ((cf (assq f geiser-autodoc--cached-signatures))) (if cf (push cf cached) (push f missing))))) - (unless (or cached keep-cached) - (setq geiser-autodoc--cached-signatures nil)) + (unless (or cached keep-cached) (geiser-autodoc--clean-cache)) (when missing (let ((res (geiser-eval--send/result `(:eval ((:ge autodoc) (quote ,missing))) |