[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#27564: FFAP on file:// URLs
From: |
npostavs |
Subject: |
bug#27564: FFAP on file:// URLs |
Date: |
Mon, 03 Jul 2017 14:54:04 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.2.50 (gnu/linux) |
tags 27564 + notabug
quit
積丹尼 Dan Jacobson <jidanni@jidanni.org> writes:
> $ cat x
> http://example.com/
> file:///usr/share/doc/sqlite3-doc/cli.html
> file:///usr/share/doc/sqlite3-doc/cli.html#csv_import
> $ emacs x
> M-x ffap-bindings
> Now do C-x C-f on each line.
>
> The first line works fine, prompting with http://example.com/ .
> The second and third line fail, with the file:// removed, despite:
> ffap-url-regexp is a variable defined in ‘ffap.el’.
> Its value is
> "\\(news\\(post\\)?:\\|mailto:\\|file:\\|\\(ftp\\|https?\\|telnet\\|gopher\\|www\\|wais\\)://\\)"
>
> (info "(emacs) FFAP") says
> If what is found in the buffer has the form of a URL rather than
> a file name, the commands use ‘browse-url’ to view it (*note
> Browse-URL::).
>
> So file:// end up never passed to browse-url like they should be.
>
> ffap-version"25.2.1"
> emacs-version"25.2.1"
I think you want (setq ffap-url-unwrap-local nil)
ffap-url-unwrap-local is a variable defined in ‘ffap.el’.
Its value is t
Documentation:
If non-nil, convert some URLs to local file names before prompting.
Only "file:" and "ftp:" URLs are converted, and only if they
do not specify a host, or the host is either "localhost" or
equal to ‘system-name’.
You can customize this variable.