Changeset 4166 for trunk/lisp/ido.el
- Timestamp:
- 09/18/06 20:48:14 (2 years ago)
- Files:
-
- trunk/lisp/ido.el (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lisp/ido.el
r4161 r4166 2113 2113 "Edit absolute file name entered so far with ido; terminate by RET." 2114 2114 (interactive) 2115 (setq ido-text-init (if ido-matches ( car ido-matches) ido-text))2115 (setq ido-text-init (if ido-matches (ido-name (car ido-matches)) ido-text)) 2116 2116 (setq ido-exit 'edit) 2117 2117 (exit-minibuffer)) … … 2427 2427 (not (and ido-enable-tramp-completion 2428 2428 (string-equal ido-current-directory "/") 2429 (string-match "..[@:]\\'" ( car ido-matches)))))2429 (string-match "..[@:]\\'" (ido-name (car ido-matches)))))) 2430 2430 ;; only one choice, so select it. 2431 2431 (if (not ido-confirm-unique-completion) … … 2433 2433 (setq ido-rescan (not ido-enable-prefix)) 2434 2434 (delete-region (minibuffer-prompt-end) (point)) 2435 (insert ( car ido-matches))))2435 (insert (ido-name (car ido-matches))))) 2436 2436 2437 2437 (t ;; else there could be some completions … … 2815 2815 (interactive) 2816 2816 (when ido-matches 2817 (setq ido-text-init ( car ido-matches))2817 (setq ido-text-init (ido-name (car ido-matches))) 2818 2818 (setq ido-exit 'refresh) 2819 2819 (exit-minibuffer))) … … 2829 2829 (interactive) 2830 2830 (if ido-matches 2831 (setq ido-text ( car ido-matches)))2831 (setq ido-text (ido-name (car ido-matches)))) 2832 2832 (setq ido-exit 'push) 2833 2833 (exit-minibuffer)) … … 3619 3619 (and (>= flen (setq slen (length nextstr))) 3620 3620 (string-equal (substring name (- flen slen)) nextstr))) 3621 ((f boundp nextstr) (funcall nextstr name))3621 ((functionp nextstr) (funcall nextstr name)) 3622 3622 (t nil)) 3623 3623 (setq ignorep t … … 3629 3629 (if (cond 3630 3630 ((stringp nextstr) (string-match nextstr name)) 3631 ((f boundp nextstr) (funcall nextstr name))3631 ((functionp nextstr) (funcall nextstr name)) 3632 3632 (t nil)) 3633 3633 (setq ignorep t … … 3746 3746 (interactive) 3747 3747 (let ((enable-recursive-minibuffers t) 3748 (buf ( car ido-matches)))3748 (buf (ido-name (car ido-matches)))) 3749 3749 (when buf 3750 3750 (kill-buffer buf) … … 3761 3761 (interactive) 3762 3762 (let ((enable-recursive-minibuffers t) 3763 (file ( car ido-matches)))3763 (file (ido-name (car ido-matches)))) 3764 3764 (if file 3765 3765 (setq file (concat ido-current-directory file))) … … 4203 4203 "/") 4204 4204 (ido-matches 4205 (concat ido-current-directory ( car ido-matches)))4205 (concat ido-current-directory (ido-name (car ido-matches)))) 4206 4206 (t 4207 4207 (concat ido-current-directory (substring contents 0 -1))))) … … 4239 4239 (or (eq ido-enter-matching-directory 'first) 4240 4240 (null (cdr ido-matches))) 4241 (ido-final-slash ( car ido-matches))4241 (ido-final-slash (ido-name (car ido-matches))) 4242 4242 (or try-single-dir-match 4243 4243 (eq ido-enter-matching-directory t))) 4244 4244 (ido-trace "single match" (car ido-matches)) 4245 4245 (ido-set-current-directory 4246 (concat ido-current-directory ( car ido-matches)))4246 (concat ido-current-directory (ido-name (car ido-matches)))) 4247 4247 (setq ido-exit 'refresh) 4248 4248 (exit-minibuffer))
