Skip to content

counsel-find-file-at-point does not respect ffap-url-regexp #1398

@raxod502

Description

@raxod502

Starting from emacs -Q, I load revision f7470fe of counsel.el, set counsel-find-file-at-point to non-nil and set ffap-url-regexp to nil. According to the documentation string of ffap-url-regexp,

Regexp matching the beginning of a URI, for ffap.
If the value is nil, disable URL-matching features in ffap.

this should disable URL-matching features of ffap. And it does, if I run M-x ffap with point at | as shown:

https://google.com|

But if I instead run counsel-find-file, Emacs attempts to ping google.com. This indicates to me that the setting of ffap-url-regexp is not being respected by counsel-find-file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions