From: npostavs@users.sourceforge.net
To: "積丹尼 Dan Jacobson" <jidanni@jidanni.org>
Cc: 27564@debbugs.gnu.org
Subject: bug#27564: FFAP on file:// URLs
Date: Mon, 03 Jul 2017 14:54:04 -0400 [thread overview]
Message-ID: <87shidic6r.fsf@users.sourceforge.net> (raw)
In-Reply-To: <878tk5mkq0.fsf_-_@jidanni.org> ("積丹尼 Dan Jacobson"'s message of "Tue, 04 Jul 2017 02:36:07 +0800")
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.
next prev parent reply other threads:[~2017-07-03 18:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <87lgo8cba2.fsf@jidanni.org>
2017-07-03 18:36 ` bug#27564: FFAP on file:// URLs 積丹尼 Dan Jacobson
2017-07-03 18:54 ` npostavs [this message]
2017-07-03 19:12 ` 積丹尼 Dan Jacobson
2017-07-03 19:31 ` npostavs
2017-07-04 12:40 ` 積丹尼 Dan Jacobson
2017-07-05 0:09 ` npostavs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87shidic6r.fsf@users.sourceforge.net \
--to=npostavs@users.sourceforge.net \
--cc=27564@debbugs.gnu.org \
--cc=jidanni@jidanni.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).