summaryrefslogtreecommitdiff
path: root/elisp/geiser-autodoc.el
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2010-01-28 14:53:33 +0100
committerJose Antonio Ortega Ruiz <jao@gnu.org>2010-01-28 14:53:33 +0100
commit68d3cb6c453d1c0165e9232cffafb96716018490 (patch)
treeb6e5a73b33f3bee2251e4be6a9d4ee3e2e1df606 /elisp/geiser-autodoc.el
parent16ea3d3b90838cd05a2ab6d54228a976000613e3 (diff)
downloadgeiser-68d3cb6c453d1c0165e9232cffafb96716018490.tar.gz
geiser-68d3cb6c453d1c0165e9232cffafb96716018490.tar.bz2
Generic support for debugging prompts in the REPL
Diffstat (limited to 'elisp/geiser-autodoc.el')
-rw-r--r--elisp/geiser-autodoc.el10
1 files changed, 7 insertions, 3 deletions
diff --git a/elisp/geiser-autodoc.el b/elisp/geiser-autodoc.el
index d0345e0..0d9d863 100644
--- a/elisp/geiser-autodoc.el
+++ b/elisp/geiser-autodoc.el
@@ -1,6 +1,6 @@
;; geiser-autodoc.el -- autodoc mode
-;; Copyright (C) 2009 Jose Antonio Ortega Ruiz
+;; Copyright (C) 2009, 2010 Jose Antonio Ortega Ruiz
;; This program is free software; you can redistribute it and/or
;; modify it under the terms of the Modified BSD License. You should
@@ -158,11 +158,15 @@ when `geiser-autodoc-display-module-p' is on."
;;; Autodoc function:
(make-variable-buffer-local
- (defvar geiser-autodoc--inhibit-flag nil))
+ (defvar geiser-autodoc--inhibit-function nil))
+
+(defsubst geiser-autodoc--inhibit ()
+ (and geiser-autodoc--inhibit-function
+ (funcall geiser-autodoc--inhibit-function)))
(defun geiser-autodoc--eldoc-function ()
(condition-case e
- (and (not geiser-autodoc--inhibit-flag)
+ (and (not (geiser-autodoc--inhibit))
(geiser-autodoc--autodoc (geiser-syntax--scan-sexps)))
(error (format "Autodoc not available (%s)" (error-message-string e)))))