Show
Ignore:
Timestamp:
2007年04月07日 15時49分28秒 (2 years ago)
Author:
miyoshi
Message:

Sync up with Emacs CVS HEAD.

Files:

Legend:

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

    r4190 r4200  
    11481148              string)) 
    11491149         (abs (file-name-absolute-p name)) 
    1150          (default-directory default-directory)) 
     1150         (default-directory default-directory) 
     1151         (oname name)) 
    11511152    (unwind-protect 
    11521153        (cond 
     
    11651166               (ffap-file-exists-string (substring name (match-end 0))))) 
    11661167         ;; Accept remote names without actual checking (too slow): 
    1167          ((if abs 
    1168               (ffap-file-remote-p name) 
    1169             ;; Try adding a leading "/" (common omission in ftp file names): 
    1170             (and 
    1171              ffap-ftp-sans-slash-regexp 
    1172              (string-match ffap-ftp-sans-slash-regexp name) 
    1173              (ffap-file-remote-p (concat "/" name))))) 
     1168         ((and abs (ffap-file-remote-p name))) 
    11741169         ;; Ok, not remote, try the existence test even if it is absolute: 
    11751170         ((and abs (ffap-file-exists-string name))) 
     
    11941189                                  (ffap-file-exists-string try)))))) 
    11951190            try)) 
     1191         ;; Try adding a leading "/" (common omission in ftp file names). 
     1192         ;; Note that this uses oname, which still has any colon part. 
     1193         ;; This should have a lower priority than the alist stuff, 
     1194         ;; else it matches things like "ffap.el:1234:56:Warning". 
     1195         ((and (not abs) 
     1196               ffap-ftp-sans-slash-regexp 
     1197               (string-match ffap-ftp-sans-slash-regexp oname) 
     1198               (ffap-file-remote-p (concat "/" oname)))) 
    11961199         ;; Alist failed?  Try to guess an active remote connection 
    11971200         ;; from buffer variables, and try once more, both as an