Changeset 4200 for trunk/lisp/ffap.el
- Timestamp:
- 2007年04月07日 15時49分28秒 (2 years ago)
- Files:
-
- trunk/lisp/ffap.el (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lisp/ffap.el
r4190 r4200 1148 1148 string)) 1149 1149 (abs (file-name-absolute-p name)) 1150 (default-directory default-directory)) 1150 (default-directory default-directory) 1151 (oname name)) 1151 1152 (unwind-protect 1152 1153 (cond … … 1165 1166 (ffap-file-exists-string (substring name (match-end 0))))) 1166 1167 ;; 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))) 1174 1169 ;; Ok, not remote, try the existence test even if it is absolute: 1175 1170 ((and abs (ffap-file-exists-string name))) … … 1194 1189 (ffap-file-exists-string try)))))) 1195 1190 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)))) 1196 1199 ;; Alist failed? Try to guess an active remote connection 1197 1200 ;; from buffer variables, and try once more, both as an
