From: Stephen Berman <stephen.berman@gmx.net>
To: 50011@debbugs.gnu.org
Subject: bug#50011: 28.0.50; ffap on a URL in a file is broken
Date: Wed, 11 Aug 2021 17:53:51 +0200 [thread overview]
Message-ID: <87wnos7zao.fsf@gmx.net> (raw)
0. emacs -Q
1. Visit the file CONTRIBUTE in the top level Emacs source directory,
put point on the URL
https://www.gnu.org/software/emacs/manual/html_node/emacs/Contributing.html
and type `M-x ffap':
=> Emacs prompts for a file or URL and offers the above URL as default,
but after typing RET, nothing happens, instead of the URL being
visited in a browser.
This is due to this change:
@@ -1546,7 +1543,7 @@ ffap-read-file-or-url
(progn
(push elem file-name-handler-alist)
(if (ffap-url-p guess)
- (read-file-name prompt "http://<remove>" nil nil guess)
+ (read-file-name prompt guess)
(unless guess
(setq guess default-directory))
(unless (ffap-file-remote-p guess)
in this commit:
commit 799a66c454f4dbb06aeab744f92321d95e5043d0
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>
CommitDate: Mon Aug 9 16:03:02 2021 +0200
Make ffap-read-file-or-url put point at the correct place for URLs
* lisp/ffap.el (ffap-read-file-or-url): Put point at the end of
URLs (bug#44822).
The following patch fixes the bug for me:
diff --git a/lisp/ffap.el b/lisp/ffap.el
index 635e9814f1..84dcc04a71 100644
--- a/lisp/ffap.el
+++ b/lisp/ffap.el
@@ -1543,7 +1543,7 @@ ffap-read-file-or-url
(progn
(push elem file-name-handler-alist)
(if (ffap-url-p guess)
- (read-file-name prompt guess)
+ (read-file-name prompt guess guess)
(unless guess
(setq guess default-directory))
(unless (ffap-file-remote-p guess)
In GNU Emacs 28.0.50 (build 8, x86_64-pc-linux-gnu, GTK+ Version 3.24.29, cairo version 1.17.4)
of 2021-08-10 built on strobelfs
Repository revision: 75de09b9de2c800d074e2b65a03483d0d44ce3de
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12011000
System Description: Linux From Scratch 10.2-rc1
Configured using:
'configure --with-native-compilation 'CFLAGS=-Og -g3'
PKG_CONFIG_PATH=/opt/qt5/lib/pkgconfig'
Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON
LCMS2 LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG
RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XPM
GTK3 ZLIB
Important settings:
value of $LANG: en_US.UTF-8
locale-coding-system: utf-8-unix
next reply other threads:[~2021-08-11 15:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-11 15:53 Stephen Berman [this message]
2021-08-11 16:06 ` bug#50011: 28.0.50; ffap on a URL in a file is broken Lars Ingebrigtsen
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=87wnos7zao.fsf@gmx.net \
--to=stephen.berman@gmx.net \
--cc=50011@debbugs.gnu.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).