Show
Ignore:
Timestamp:
09/18/06 20:48:14 (2 years ago)
Author:
miyoshi
Message:

Sync up with Emacs CVS HEAD.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lisp/ido.el

    r4161 r4166  
    21132113  "Edit absolute file name entered so far with ido; terminate by RET." 
    21142114  (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)) 
    21162116  (setq ido-exit 'edit) 
    21172117  (exit-minibuffer)) 
     
    24272427           (not (and ido-enable-tramp-completion 
    24282428                     (string-equal ido-current-directory "/") 
    2429                      (string-match "..[@:]\\'" (car ido-matches))))) 
     2429                     (string-match "..[@:]\\'" (ido-name (car ido-matches)))))) 
    24302430      ;; only one choice, so select it. 
    24312431      (if (not ido-confirm-unique-completion) 
     
    24332433        (setq ido-rescan (not ido-enable-prefix)) 
    24342434        (delete-region (minibuffer-prompt-end) (point)) 
    2435         (insert (car ido-matches)))) 
     2435        (insert (ido-name (car ido-matches))))) 
    24362436 
    24372437     (t ;; else there could be some completions 
     
    28152815  (interactive) 
    28162816  (when ido-matches 
    2817     (setq ido-text-init (car ido-matches)) 
     2817    (setq ido-text-init (ido-name (car ido-matches))) 
    28182818    (setq ido-exit 'refresh) 
    28192819    (exit-minibuffer))) 
     
    28292829  (interactive) 
    28302830  (if ido-matches 
    2831       (setq ido-text (car ido-matches))) 
     2831      (setq ido-text (ido-name (car ido-matches)))) 
    28322832  (setq ido-exit 'push) 
    28332833  (exit-minibuffer)) 
     
    36193619                   (and (>= flen (setq slen (length nextstr))) 
    36203620                        (string-equal (substring name (- flen slen)) nextstr))) 
    3621                   ((fboundp nextstr) (funcall nextstr name)) 
     3621                  ((functionp nextstr) (funcall nextstr name)) 
    36223622                  (t nil)) 
    36233623                 (setq ignorep t 
     
    36293629             (if (cond 
    36303630                  ((stringp nextstr) (string-match nextstr name)) 
    3631                   ((fboundp nextstr) (funcall nextstr name)) 
     3631                  ((functionp nextstr) (funcall nextstr name)) 
    36323632                  (t nil)) 
    36333633                 (setq ignorep t 
     
    37463746  (interactive) 
    37473747  (let ((enable-recursive-minibuffers t) 
    3748         (buf (car ido-matches))) 
     3748        (buf (ido-name (car ido-matches)))) 
    37493749    (when buf 
    37503750      (kill-buffer buf) 
     
    37613761  (interactive) 
    37623762  (let ((enable-recursive-minibuffers t) 
    3763         (file (car ido-matches))) 
     3763        (file (ido-name (car ido-matches)))) 
    37643764    (if file 
    37653765        (setq file (concat ido-current-directory file))) 
     
    42034203             "/") 
    42044204            (ido-matches 
    4205              (concat ido-current-directory (car ido-matches))) 
     4205             (concat ido-current-directory (ido-name (car ido-matches)))) 
    42064206            (t 
    42074207             (concat ido-current-directory (substring contents 0 -1))))) 
     
    42394239                   (or (eq ido-enter-matching-directory 'first) 
    42404240                       (null (cdr ido-matches))) 
    4241                    (ido-final-slash (car ido-matches)) 
     4241                   (ido-final-slash (ido-name (car ido-matches))) 
    42424242                   (or try-single-dir-match 
    42434243                       (eq ido-enter-matching-directory t))) 
    42444244          (ido-trace "single match" (car ido-matches)) 
    42454245          (ido-set-current-directory 
    4246            (concat ido-current-directory (car ido-matches))) 
     4246           (concat ido-current-directory (ido-name (car ido-matches)))) 
    42474247          (setq ido-exit 'refresh) 
    42484248          (exit-minibuffer))