GNU bug report logs -
#75354
29.4; eww buffer is not displayed correctly when used from bookmark-jump
Previous Next
Reported by: Thierry Volpiatto <thievol <at> posteo.net>
Date: Sat, 4 Jan 2025 16:15:02 UTC
Severity: normal
Found in version 29.4
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #14 received at 75354 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Eli Zaretskii <eliz <at> gnu.org> writes:
>> From: Thierry Volpiatto <thievol <at> posteo.net>
>> Date: Wed, 08 Jan 2025 07:40:30 +0000
>>
>> I could fix the problem by modifying bookmark--jump-via:
>
> Thanks.
>
> This is contrary to what you originally wrote (with which I agree):
Yes, after deeper search I found that `bookmark--jump-via` is behaving
like this AFAIU:
- It calls the handler which creates a new buffer related to bookmark.
- It then displays the current-buffer (the one before jumping to bmk) in
a window according to DISPLAY-FUNCTION and make the bookmark buffer current.
This approach is OK as long as the handler fn doesn't try do do one part
of the job (window handling) itself, which is not the case at least with
eww and w3m. It is as well counter intuitive, DISPLAY-FUNCTION should
be called on the buffer generated by bookmark and not the contrary, so
this change makes the code simpler and easier to understand.
> By contrast, the change you propose now will affect all the uses of
> bookmarks, everywhere,
Yes, this is intended, in addition of fixing eww, it fixes w3m and also
the quit function of eww (actually broken).
> which is riskier, given how many different variants of bookmark usage
> are out there.
Tested here on many different kinds of bookmarks and work as expected
unlike the current code.
> Why did you change your mind about the preferred way of fixing this?
Because I couldn't find a way to fix this correctly by modifying only
the handler, thus the change would need to be done on each other
handlers which behave unexpectedly.
Here is the latest patch attached.
Thanks.
--
Thierry
[0001-Handle-correctly-DISPLAY-FUNCTION-arg-in-bookmark-ju.patch (text/x-diff, attachment)]
[signature.asc (application/pgp-signature, inline)]
This bug report was last modified 54 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.