summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKim F. Storm <storm@cua.dk>2005-08-18 09:29:48 +0000
committerKim F. Storm <storm@cua.dk>2005-08-18 09:29:48 +0000
commit9d144e95df5122d76b2fa9774bee973087672167 (patch)
tree337890217edbf74f59899fc535b8dbefa650839e
parent609550682f926b6ce43e946599dfbf06d9d42dc7 (diff)
downloademacs-9d144e95df5122d76b2fa9774bee973087672167.tar.gz
(ido-everywhere): Fix defcustom :set function to disable
rather than toggle mode when custom value is nil. (ido-everywhere): Fix defun doc string.
-rw-r--r--lisp/ido.el5
1 files 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)