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
commitf52ac22eb1c09f7eae9d53d7d12d15edac56f942 (patch)
tree5459334afa5877ad2dfa9d82c3cf226ddd3a4af3 /elisp/geiser-autodoc.el
parent479493f40a1666cc7fb2de8f855badc7106b762b (diff)
downloadgeiser-guile-f52ac22eb1c09f7eae9d53d7d12d15edac56f942.tar.gz
geiser-guile-f52ac22eb1c09f7eae9d53d7d12d15edac56f942.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)))))