[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] EWW - use revert--buffer-function to reload, and allow reloa
From: |
Sebastián Monía |
Subject: |
Re: [PATCH] EWW - use revert--buffer-function to reload, and allow reload in eww-list-buffer |
Date: |
Fri, 20 Sep 2024 11:06:13 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Eli Zaretskii <eliz@gnu.org> writes:
> [Please use Reply All to reply, to CC everyone else and the list.]
This was a very silly mistake, thanks for resending.
> Resending to the list:
>> > Any progress there?
>>
>> Not really, but was looking at this for a bit now.
>>
>> The way we collect the buffer list first, then print "No buffers"
>> doesn't help in splitting the function.
>>
>> There are many (hacky) ways to work around that, but I am thinking that
>> maybe it would it be better to use tabulated-list-mode or vtable to
>> display this?
>>
>> I know, the change is more involved. But seems like a better path
>> forward.
@Jim
A simpler hacky solution that I thought of this morning. And it doesn't
modify the original code as much:
On top of my last patch, check if the current buffer is in
`eww-buffers-mode` then use it, if not, get-create "*eww buffers list*".
That would work even if the user renamed the buffer. And it is a very
simple change.
Do you think it is an acceptable solution?
If not, I will convert it to tabulated-list (or vtable), only
disadvantage I see, is that it would change the internals of the buffer
list quite a bit. I don't expect anyone to rely on them, though.
--
Sebastián Monía
https://site.sebasmonia.com/