Autodoc mode (de)activation fix.
commit7c74bab99cfb5a51ed435853fe09e46407c7b3bf
authorJose Antonio Ortega Ruiz <jao@gnu.org>
Sat, 8 Jan 2011 23:06:46 +0000 (9 00:06 +0100)
committerJose Antonio Ortega Ruiz <jao@gnu.org>
Sat, 8 Jan 2011 23:06:46 +0000 (9 00:06 +0100)
tree3f7dc1b3ecd3151156074ee73c53463d22255033
parent963b9d4214a04f2d1c13230d5e69f3e422819d99
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))
elisp/geiser-autodoc.el