From 5c5fc296bc442f699bc131e7808f880b24a01aee Mon Sep 17 00:00:00 2001 From: Luc Teirlinck Date: Sun, 10 Apr 2005 18:38:43 +0000 Subject: [PATCH] (custom-set-minor-mode): Any non-nil value for the variable should enable the mode when set through Custom. --- lisp/custom.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/custom.el b/lisp/custom.el index 77b54a109c5..019fdb79b38 100644 --- a/lisp/custom.el +++ b/lisp/custom.el @@ -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." -- 2.39.5