From 9d144e95df5122d76b2fa9774bee973087672167 Mon Sep 17 00:00:00 2001 From: "Kim F. Storm" Date: Thu, 18 Aug 2005 09:29:48 +0000 Subject: [PATCH] (ido-everywhere): Fix defcustom :set function to disable rather than toggle mode when custom value is nil. (ido-everywhere): Fix defun doc string. --- lisp/ido.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lisp/ido.el b/lisp/ido.el index 9b887d1619d..aca5e7e6d72 100644 --- a/lisp/ido.el +++ b/lisp/ido.el @@ -367,7 +367,7 @@ use either \\[customize] or the function `ido-mode'." Setting this variable directly does not work. Use `customize' or call the function `ido-everywhere'." :set #'(lambda (symbol value) - (ido-everywhere value)) + (ido-everywhere (if value 1 -1))) :initialize 'custom-initialize-default :type 'boolean :group 'ido) @@ -1367,7 +1367,8 @@ This function also adds a hook to the minibuffer." (define-key map [remap display-buffer] 'ido-display-buffer))))) (defun ido-everywhere (arg) - "Enable ido everywhere file and directory names are read." + "Toggle using ido speed-ups everywhere file and directory names are read. +With ARG, turn ido speed-up on if arg is positive, off otherwise." (interactive "P") (setq ido-everywhere (if arg (> (prefix-numeric-value arg) 0) -- 2.39.2