summaryrefslogtreecommitdiff
path: root/elisp
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
commit7c74bab99cfb5a51ed435853fe09e46407c7b3bf (patch)
tree3f7dc1b3ecd3151156074ee73c53463d22255033 /elisp
parent963b9d4214a04f2d1c13230d5e69f3e422819d99 (diff)
downloadgeiser-guile-7c74bab99cfb5a51ed435853fe09e46407c7b3bf.tar.gz
geiser-guile-7c74bab99cfb5a51ed435853fe09e46407c7b3bf.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))
Diffstat (limited to 'elisp')
-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"))))