From: "Basil L. Contovounesios" <contovob@tcd.ie>
To: Arnaud Fontaine <arnau@mini-dweeb.org>
Cc: Lars Ingebrigtsen <larsi@gnus.org>, 40532@debbugs.gnu.org
Subject: bug#40532: 28.0.50; eww/shr: Anchor link does not work
Date: Sat, 25 Apr 2020 21:28:37 +0100 [thread overview]
Message-ID: <87y2qjxqbu.fsf@tcd.ie> (raw)
In-Reply-To: <878sijpqr0.fsf@milkypond.org> (Arnaud Fontaine's message of "Sat, 25 Apr 2020 23:46:43 +0900")
Arnaud Fontaine <arnau@mini-dweeb.org> writes:
>> Here's an even better fix for the regression IMO:
>>
>> From 541a85fd17193a67883a36876fb982710abe4f7d Mon Sep 17 00:00:00 2001
>> From: "Basil L. Contovounesios" <contovob@tcd.ie>
>> Date: Wed, 22 Apr 2020 11:42:17 +0100
>> Subject: [PATCH] Fix eww-follow-link on URLs with #target
>
> While wikipedia works fine with your patch, I have noticed that the
> following does not work though:
> 0. emacs -Q
> 1. M-x eww RET https://distrowatch.com/weekly.php?issue=20200413 RET
> 2. C-s HoleOS RET (place point on ToC entry "New distributions: HoleOS")
> 3. RET (eww-follow link)
>
> This goes to the top of the page.
Indeed, I've noticed this issue before, but it's a separate issue to the
regression we've been discussing so far.
Here's a more easily reproducible recipe if you build Emacs from its
source repository (if I visit the given distrowatch site using Emacs 25
or 26 for some reason HoleOS is not mentioned):
0. ./src/emacs -Q
1. M-x eww-open-file RET admin/unidata/copyright.html RET
2. C-s misc RET RET
This jumps to point-min rather than the Miscellaneous heading, and is
reproducible since at least Emacs 25.
The problem is with relative targets: for some reason shr-target-id is
not set appropriately when shr is rendering the page, so no
shr-target-id text property gets set, and eww can't subsequently find
anywhere to jump to.
Perhaps shr should unconditionally (without requiring shr-target-id to
be bound) mark all possible targets with text properties during
rendering. I'll see if I can get this or any other way working today or
tomorrow, but either way this won't be fixed in Emacs 27.
Thanks,
--
Basil
next prev parent reply other threads:[~2020-04-25 20:28 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-10 3:56 bug#40532: 28.0.50; eww/shr: Anchor link does not work Arnaud Fontaine
2020-04-22 6:24 ` Arnaud Fontaine
2020-04-22 11:38 ` Basil L. Contovounesios
2020-04-22 12:55 ` Basil L. Contovounesios
2020-04-25 14:46 ` Arnaud Fontaine
2020-04-25 20:28 ` Basil L. Contovounesios [this message]
2020-04-30 4:11 ` Lars Ingebrigtsen
2020-04-30 10:20 ` Basil L. Contovounesios
2020-05-08 1:10 ` Basil L. Contovounesios
2020-05-12 4:57 ` Arnaud Fontaine
2020-05-21 22:34 ` Basil L. Contovounesios
2020-05-19 12:23 ` Lars Ingebrigtsen
2020-05-21 22:34 ` Basil L. Contovounesios
2020-06-13 15:06 ` Basil L. Contovounesios
2020-06-18 15:54 ` Basil L. Contovounesios
2020-04-22 13:53 ` Eli Zaretskii
2020-04-22 15:44 ` Basil L. Contovounesios
2020-04-22 15:57 ` Eli Zaretskii
2020-04-22 16:15 ` Basil L. Contovounesios
2020-04-22 16:21 ` Eli Zaretskii
2020-04-22 22:32 ` Basil L. Contovounesios
2020-04-22 20:10 ` Arnaud Fontaine
2020-04-22 22:32 ` Basil L. Contovounesios
2020-04-25 10:14 ` Eli Zaretskii
2020-04-30 4:13 ` Lars Ingebrigtsen
2020-04-30 10:15 ` Basil L. Contovounesios
2020-04-30 22:09 ` Lars Ingebrigtsen
2020-05-03 23:49 ` Basil L. Contovounesios
2020-05-07 4:02 ` Arnaud Fontaine
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y2qjxqbu.fsf@tcd.ie \
--to=contovob@tcd.ie \
--cc=40532@debbugs.gnu.org \
--cc=arnau@mini-dweeb.org \
--cc=larsi@gnus.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.