]> git.eshelyaron.com Git - emacs.git/commitdiff
(custom-set-minor-mode): Any non-nil value for the variable should
authorLuc Teirlinck <teirllm@auburn.edu>
Sun, 10 Apr 2005 18:38:43 +0000 (18:38 +0000)
committerLuc Teirlinck <teirllm@auburn.edu>
Sun, 10 Apr 2005 18:38:43 +0000 (18:38 +0000)
enable the mode when set through Custom.

lisp/custom.el

index 77b54a109c5395389b448d0ef32770f274e1e1bc..019fdb79b387f55c196d4fb82690dc993812358b 100644 (file)
@@ -841,8 +841,8 @@ but if `custom-local-buffer' is non-nil,
 this sets the local binding in that buffer instead."
   (if custom-local-buffer
       (with-current-buffer custom-local-buffer
-       (funcall variable (or value 0)))
-    (funcall variable (or value 0))))
+       (funcall variable (if value 1 0)))
+    (funcall variable (if value 1 0))))
 
 (defun custom-quote (sexp)
   "Quote SEXP iff it is not self quoting."