(which-func-mode-global): Make :set function
authorKarl Heuer <kwzh@gnu.org>
Wed, 30 Sep 1998 19:15:56 +0000 (19:15 +0000)
committerKarl Heuer <kwzh@gnu.org>
Wed, 30 Sep 1998 19:15:56 +0000 (19:15 +0000)
more reliable.

lisp/which-func.el

index 782882d..b77f0bc 100644 (file)
@@ -106,7 +106,7 @@ Zero means compute the Imenu menu regardless of size."
   "*Toggle `which-func-mode'.
 You must modify via \\[customize] for this variable to have an effect."
   :set #'(lambda (symbol value)
-          (which-func-mode (or value 0)))
+          (which-func-mode (if value 1 0)))
   :initialize 'custom-initialize-default
   :type    'boolean
   :group   'which-func