summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2011-01-09 00:06:46 +0100
committerJose Antonio Ortega Ruiz <jao@gnu.org>2011-01-09 00:06:46 +0100
commita614316ce70a060cb8b10557f7614fb3fda65b4c (patch)
treedd1471e009ff1c63c81644ea16c8c89606ecf6b5
parent724decb06c4757506da489794651b70f778f97b8 (diff)
downloadgeiser-a614316ce70a060cb8b10557f7614fb3fda65b4c.tar.gz
geiser-a614316ce70a060cb8b10557f7614fb3fda65b4c.tar.bz2
Autodoc mode (de)activation fix.
Quoth Mark: When the Geiser minor mode is toggled off using the command `geiser-mode', the message: Toggling eldoc-mode off; better pass an explicit argument. is displayed in the echo area. This is traceable to line 219: (eldoc-mode geiser-autodoc-mode) The function `eldoc-mode' takes numeric arguments, while `geiser-autodoc-mode' returns boolean values. Here is a simple patch: (eldoc-mode (if geiser-autodoc-mode 1 -1))
-rw-r--r--elisp/geiser-autodoc.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/elisp/geiser-autodoc.el b/elisp/geiser-autodoc.el
index 3cb6204..88b94a1 100644
--- a/elisp/geiser-autodoc.el
+++ b/elisp/geiser-autodoc.el
@@ -216,7 +216,7 @@ displayed in the minibuffer."
(when geiser-autodoc-mode 'geiser-autodoc--eldoc-function))
(set (make-local-variable 'eldoc-minor-mode-string) nil)
(set (make-local-variable 'eldoc-idle-delay) geiser-autodoc-delay)
- (eldoc-mode geiser-autodoc-mode)
+ (eldoc-mode (if geiser-autodoc-mode 1 -1))
(when (interactive-p)
(message "Geiser Autodoc %s"
(if geiser-autodoc-mode "enabled" "disabled"))))