aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim F. Storm2003-03-22 01:21:09 +0000
committerKim F. Storm2003-03-22 01:21:09 +0000
commitb0df3884b1cce254c5ae8466fabacab52801b965 (patch)
tree1fe2cb4ca8358662d8c1bcfd953aa72843a1c2ef
parent3bb1e519e606b3b04e633608f909f46ad9461b7a (diff)
downloademacs-b0df3884b1cce254c5ae8466fabacab52801b965.tar.gz
emacs-b0df3884b1cce254c5ae8466fabacab52801b965.zip
(ido-mode): Remove unused NOBIND arg. Fix doc string accordingly.
(ido-define-mode-map): Bind C-l for both file and dir modes. (ido-wide-find-file, ido-wide-find-dir, ido-make-directory): Let-bind enable-recursive-minibuffers to t around read-string.
-rw-r--r--lisp/ido.el27
1 files changed, 16 insertions, 11 deletions
diff --git a/lisp/ido.el b/lisp/ido.el
index 82da8a4c6bb..bdf830f92fc 100644
--- a/lisp/ido.el
+++ b/lisp/ido.el
@@ -1219,15 +1219,14 @@ Removes badly formatted data and ignored directories."
1219(defvar ido-minor-mode-map-entry nil) 1219(defvar ido-minor-mode-map-entry nil)
1220 1220
1221;;;###autoload 1221;;;###autoload
1222(defun ido-mode (&optional arg nobind) 1222(defun ido-mode (&optional arg)
1223 "Toggle ido speed-ups on or off. 1223 "Toggle ido speed-ups on or off.
1224With ARG, turn ido speed-up on if arg is positive, off otherwise. 1224With ARG, turn ido speed-up on if arg is positive, off otherwise.
1225If second argument NOBIND is non-nil, no keys are rebound; otherwise, 1225Turning on ido-mode will remap (via a minor-mode keymap) the default
1226turning on ido-mode will modify the default keybindings for the 1226keybindings for the `find-file' and `switch-to-buffer' families of
1227find-file and switch-to-buffer families of commands to the ido 1227commands to the ido versions of these functions.
1228versions of these functions. 1228However, if ARG arg equals 'files, remap only commands for files, or
1229However, if second arg equals 'files, bind only for files, or if it 1229if it equals 'buffers, remap only commands for buffer switching.
1230equals 'buffers, bind only for buffers.
1231This function also adds a hook to the minibuffer." 1230This function also adds a hook to the minibuffer."
1232 (interactive "P") 1231 (interactive "P")
1233 (setq ido-mode 1232 (setq ido-mode
@@ -1326,6 +1325,7 @@ This function also adds a hook to the minibuffer."
1326 (define-key map "\d" 'ido-delete-backward-updir) 1325 (define-key map "\d" 'ido-delete-backward-updir)
1327 (define-key map [(meta backspace)] 'ido-delete-backward-word-updir) 1326 (define-key map [(meta backspace)] 'ido-delete-backward-word-updir)
1328 (define-key map [(control backspace)] 'ido-up-directory) 1327 (define-key map [(control backspace)] 'ido-up-directory)
1328 (define-key map "\C-l" 'ido-reread-directory)
1329 (define-key map [(meta ?b)] 'ido-next-work-file) 1329 (define-key map [(meta ?b)] 'ido-next-work-file)
1330 (define-key map [(meta ?d)] 'ido-wide-find-dir) 1330 (define-key map [(meta ?d)] 'ido-wide-find-dir)
1331 (define-key map [(meta ?f)] 'ido-wide-find-file) 1331 (define-key map [(meta ?f)] 'ido-wide-find-file)
@@ -1340,7 +1340,6 @@ This function also adds a hook to the minibuffer."
1340 (when (eq ido-cur-item 'file) 1340 (when (eq ido-cur-item 'file)
1341 (define-key map "\C-k" 'ido-delete-file-at-head) 1341 (define-key map "\C-k" 'ido-delete-file-at-head)
1342 (define-key map "\C-o" 'ido-copy-current-word) 1342 (define-key map "\C-o" 'ido-copy-current-word)
1343 (define-key map "\C-l" 'ido-reread-directory)
1344 (define-key map "\C-w" 'ido-copy-current-file-name) 1343 (define-key map "\C-w" 'ido-copy-current-file-name)
1345 (define-key map [(meta ?l)] 'ido-toggle-literal) 1344 (define-key map [(meta ?l)] 'ido-toggle-literal)
1346 (define-key map "\C-v" 'ido-toggle-vc) 1345 (define-key map "\C-v" 'ido-toggle-vc)
@@ -2253,7 +2252,9 @@ If no buffer or file exactly matching the prompt exists, maybe create a new one.
2253 "Prompt for FILE to search for using find, starting from current directory." 2252 "Prompt for FILE to search for using find, starting from current directory."
2254 (interactive) 2253 (interactive)
2255 (unless file 2254 (unless file
2256 (setq file (read-string (concat "Wide find file: " ido-current-directory) ido-text))) 2255 (let ((enable-recursive-minibuffers t))
2256 (setq file
2257 (read-string (concat "Wide find file: " ido-current-directory) ido-text))))
2257 (when (> (length file) 0) 2258 (when (> (length file) 0)
2258 (setq ido-use-merged-list t ido-try-merged-list 'wide) 2259 (setq ido-use-merged-list t ido-try-merged-list 'wide)
2259 (setq ido-exit 'refresh) 2260 (setq ido-exit 'refresh)
@@ -2265,7 +2266,9 @@ If no buffer or file exactly matching the prompt exists, maybe create a new one.
2265 "Prompt for DIR to search for using find, starting from current directory." 2266 "Prompt for DIR to search for using find, starting from current directory."
2266 (interactive) 2267 (interactive)
2267 (unless dir 2268 (unless dir
2268 (setq dir (read-string (concat "Wide find directory: " ido-current-directory) ido-text))) 2269 (let ((enable-recursive-minibuffers t))
2270 (setq dir
2271 (read-string (concat "Wide find directory: " ido-current-directory) ido-text))))
2269 (when (> (length dir) 0) 2272 (when (> (length dir) 0)
2270 (setq ido-use-merged-list t ido-try-merged-list 'wide) 2273 (setq ido-use-merged-list t ido-try-merged-list 'wide)
2271 (setq ido-exit 'refresh) 2274 (setq ido-exit 'refresh)
@@ -2277,7 +2280,9 @@ If no buffer or file exactly matching the prompt exists, maybe create a new one.
2277 "Prompt for DIR to create in current directory." 2280 "Prompt for DIR to create in current directory."
2278 (interactive) 2281 (interactive)
2279 (unless dir 2282 (unless dir
2280 (setq dir (read-string (concat "Make directory: " ido-current-directory) ido-text))) 2283 (let ((enable-recursive-minibuffers t))
2284 (setq dir
2285 (read-string (concat "Make directory: " ido-current-directory) ido-text))))
2281 (when (> (length dir) 0) 2286 (when (> (length dir) 0)
2282 (setq dir (concat ido-current-directory dir)) 2287 (setq dir (concat ido-current-directory dir))
2283 (unless (file-exists-p dir) 2288 (unless (file-exists-p dir)