Mercurial > emacs
comparison lisp/ffap.el @ 13979:278af59c9e29
(ffap-list-env): Doc fix.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Thu, 04 Jan 1996 23:34:36 +0000 |
parents | 7df0a9cb269a |
children | 83f275dcd93a |
comparison
equal
deleted
inserted
replaced
13978:2445061c92d4 | 13979:278af59c9e29 |
---|---|
562 "If FILENAME looks remote, return it \(maybe slightly improved\)." | 562 "If FILENAME looks remote, return it \(maybe slightly improved\)." |
563 ;; (ffap-file-remote-p "/user@foo.bar.com:/pub") | 563 ;; (ffap-file-remote-p "/user@foo.bar.com:/pub") |
564 ;; (ffap-file-remote-p "/foo.dom://path") | 564 ;; (ffap-file-remote-p "/foo.dom://path") |
565 (or (and ffap-ftp-regexp | 565 (or (and ffap-ftp-regexp |
566 (string-match ffap-ftp-regexp filename) | 566 (string-match ffap-ftp-regexp filename) |
567 ;; Convert "/host://path" to "/host:/path", to handle a dieing | 567 ;; Convert "/host://path" to "/host:/path", to handle a dying |
568 ;; practice of advertising ftp paths as "host.dom://path". | 568 ;; practice of advertising ftp paths as "host.dom://path". |
569 (if (string-match "//" filename) | 569 (if (string-match "//" filename) |
570 (concat (substring filename 0 (match-beginning 0)) | 570 (concat (substring filename 0 (match-beginning 0)) |
571 (substring filename (1- (match-end 0)))) | 571 (substring filename (1- (match-end 0)))) |
572 filename)) | 572 filename)) |
675 | 675 |
676 ;; First, some helpers for functions in `ffap-alist': | 676 ;; First, some helpers for functions in `ffap-alist': |
677 | 677 |
678 (defun ffap-list-env (env &optional empty) | 678 (defun ffap-list-env (env &optional empty) |
679 ;; Replace this with parse-colon-path (lisp/files.el)? | 679 ;; Replace this with parse-colon-path (lisp/files.el)? |
680 "Directory list parsed from \":\"-separated ENVinronment variable. | 680 "Directory list parsed from \":\"-separated ENVironment variable. |
681 Optional EMPTY is default if (getenv ENV) is undefined, and is also | 681 Optional EMPTY is default if (getenv ENV) is undefined, and is also |
682 substituted for the first empty-string component, if there is one." | 682 substituted for the first empty-string component, if there is one." |
683 ;; Derived from psg-list-env in RHOGEE's ff-paths and | 683 ;; Derived from psg-list-env in RHOGEE's ff-paths and |
684 ;; bib-cite packages. The `empty' argument is intended to mimic | 684 ;; bib-cite packages. The `empty' argument is intended to mimic |
685 ;; the semantics of TeX/BibTeX variables, it is substituted for | 685 ;; the semantics of TeX/BibTeX variables, it is substituted for |