aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim F. Storm2004-05-04 13:27:02 +0000
committerKim F. Storm2004-05-04 13:27:02 +0000
commit84263efb62a3e538471d78858532c0dda19832cb (patch)
tree143968f6b1ec5d3f520519fc43a5510af86bcfe3
parentc20052b268f4761caf1d03a4e3e33a33e581be78 (diff)
downloademacs-84263efb62a3e538471d78858532c0dda19832cb.tar.gz
emacs-84263efb62a3e538471d78858532c0dda19832cb.zip
(ido-read-file-name): If command has ido property, don't use ido
if value is ignore, or read as directory if value is dir. Set ido ignore property for dired-do-rename command.
-rw-r--r--lisp/ido.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/ido.el b/lisp/ido.el
index 180e9dbb1c8..5d2db980373 100644
--- a/lisp/ido.el
+++ b/lisp/ido.el
@@ -3808,15 +3808,19 @@ For details of keybindings, do `\\[describe-function] ido-find-file'."
3808 3808
3809;;; Helper functions for other programs 3809;;; Helper functions for other programs
3810 3810
3811(put 'dired-do-rename 'ido 'ignore)
3812
3811;;;###autoload 3813;;;###autoload
3812(defun ido-read-file-name (prompt &optional dir default-filename mustmatch initial predicate) 3814(defun ido-read-file-name (prompt &optional dir default-filename mustmatch initial predicate)
3813 "Read file name, prompting with PROMPT and completing in directory DIR. 3815 "Read file name, prompting with PROMPT and completing in directory DIR.
3814See `read-file-name' for additional parameters." 3816See `read-file-name' for additional parameters."
3815 (cond 3817 (cond
3816 ((or (eq predicate 'file-directory-p) 3818 ((or (eq predicate 'file-directory-p)
3819 (eq (get this-command 'ido) 'dir)
3817 (memq this-command ido-read-file-name-as-directory-commands)) 3820 (memq this-command ido-read-file-name-as-directory-commands))
3818 (ido-read-directory-name prompt dir default-filename mustmatch initial)) 3821 (ido-read-directory-name prompt dir default-filename mustmatch initial))
3819 ((and (not (memq this-command ido-read-file-name-non-ido)) 3822 ((and (not (eq (get this-command 'ido) 'ignore))
3823 (not (memq this-command ido-read-file-name-non-ido))
3820 (or (null predicate) (eq predicate 'file-exists-p))) 3824 (or (null predicate) (eq predicate 'file-exists-p)))
3821 (let* (filename 3825 (let* (filename
3822 ido-saved-vc-hb 3826 ido-saved-vc-hb