summaryrefslogtreecommitdiff
path: root/elisp/geiser-autodoc.el
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2009-08-25 01:58:55 +0200
committerJose Antonio Ortega Ruiz <jao@gnu.org>2009-08-25 01:58:55 +0200
commit91841a63fb0cf3c8a0a6ed1e9086b72097cd44e4 (patch)
treecc22f354204c9e912f1dc7e39f40f933ce51ab1c /elisp/geiser-autodoc.el
parente0dd77a67b8e7c7d2d56aa353967249cc1e19f1e (diff)
downloadgeiser-91841a63fb0cf3c8a0a6ed1e9086b72097cd44e4.tar.gz
geiser-91841a63fb0cf3c8a0a6ed1e9086b72097cd44e4.tar.bz2
Now this is cool: support for company mode.
Diffstat (limited to 'elisp/geiser-autodoc.el')
-rw-r--r--elisp/geiser-autodoc.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/elisp/geiser-autodoc.el b/elisp/geiser-autodoc.el
index 26abd8d..5aa6691 100644
--- a/elisp/geiser-autodoc.el
+++ b/elisp/geiser-autodoc.el
@@ -153,9 +153,13 @@ when `geiser-autodoc-display-module-p' is on."
;;; Autodoc function:
+(make-variable-buffer-local
+ (defvar geiser-autodoc--inhibit-flag nil))
+
(defun geiser-autodoc--eldoc-function ()
(condition-case e
- (geiser-autodoc--autodoc (geiser-syntax--scan-sexps))
+ (and (not geiser-autodoc--inhibit-flag)
+ (geiser-autodoc--autodoc (geiser-syntax--scan-sexps)))
(error (format "Autodoc not available (%s)" (error-message-string e)))))