changeset 65026:e1cc4b0d18d3

(ido-everywhere): Fix defcustom :set function to disable rather than toggle mode when custom value is nil. (ido-everywhere): Fix defun doc string.
author Kim F. Storm <storm@cua.dk>
date Thu, 18 Aug 2005 09:29:48 +0000
parents e274b4958a66
children 966abb81fa37
files lisp/ido.el
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ido.el	Thu Aug 18 09:29:36 2005 +0000
+++ b/lisp/ido.el	Thu Aug 18 09:29:48 2005 +0000
@@ -367,7 +367,7 @@
 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 @@
 	(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)