Improve url matching in ffap.el.
authorChong Yidong <cyd@gnu.org>
Wed, 5 Dec 2012 07:29:02 +0000 (15:29 +0800)
committerChong Yidong <cyd@gnu.org>
Wed, 5 Dec 2012 07:29:02 +0000 (15:29 +0800)
commita368019460b1a22a84acc8e8836f60e97ebbcb25
treefa2c11c107c3485cf5d8fc000cecc8a551516d30
parent04b14f2b275b064440ca8366cd5b7c4effcdac82
Improve url matching in ffap.el.

* ffap.el (ffap-url-regexp): Don't require matching at front of string.
(ffap-url-p): If only a substring matches, return that.
(ffap-url-at-point): Use the return value of ffap-url-p.
(ffap-read-file-or-url, ffap-read-file-or-url-internal)
(find-file-at-point, dired-at-point, dired-at-point-prompter)
(ffap-guess-file-name-at-point): Likewise.
(ffap-replace-file-component): Fix typo.

Fixes: debbugs:4952
lisp/ChangeLog
lisp/ffap.el