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
commitbdda30e6f263f7142f2f33a8be2545d3061fb598 (patch)
tree7373d0e4bc2cb2fffd35296cecfa07b74c59e59b /elisp/geiser-autodoc.el
parentdd0ef53303074c1217363d363c1cccc6fcad6dc7 (diff)
downloadgeiser-guile-bdda30e6f263f7142f2f33a8be2545d3061fb598.tar.gz
geiser-guile-bdda30e6f263f7142f2f33a8be2545d3061fb598.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)))))