]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix customizing of ido-mode (Bug#41557)
authorNoam Postavsky <npostavs@gmail.com>
Wed, 27 May 2020 15:44:18 +0000 (11:44 -0400)
committerNoam Postavsky <npostavs@gmail.com>
Wed, 27 May 2020 17:00:03 +0000 (13:00 -0400)
lisp/ido.el (ido-mode): When setting the user option to nil, pass 0 to
the function, so that it will be disabled as intended.

lisp/ido.el

index ad71d468cb41f13c81dd95a6dca15b71d00a2ddd..4fb01c68dfaf89473c2cd9ac267e0aa11948c472 100644 (file)
@@ -355,7 +355,7 @@ The following values are possible:
 Setting this variable directly does not take effect;
 use either \\[customize] or the function `ido-mode'."
   :set #'(lambda (_symbol value)
-          (ido-mode value))
+           (ido-mode (or value 0)))
   :initialize #'custom-initialize-default
   :require 'ido
   :link '(emacs-commentary-link "ido.el")