|
From: | Karl Fogel |
Subject: | Re: [PATCH] Fix bookmark-bmenu-list sorting. |
Date: | Mon, 21 Mar 2022 09:14:13 -0500 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
On 21 Mar 2022, Manuel Giraud wrote:
In the tabulated-list header line at the top of the buffer, we have the expected three columns: "Bookmark", "Type", and "File". The first column, "Bookmark", has a down-triangle / up-triangle toggle for switching between descending and ascending sort by bookmark name. But if `bookmark-sort-flag' is nil, then when the buffer is regeneratedthe bookmarks will be listed in creation-date order -- and thetriangular toggle will just keep whichever value the triangle hadalready.So yes that was what I was talking about (only better described 😅).
Ah, got it, thanks!
Maybe the right fix for that is for the buffer to somehow indicate *which* property the bookmarks are sorted by -- name or creation-date-- and make sure that the triangle always reflects the sortingdirection of whichever thing is currently being sorted on. However, before I go down that road, I'd like to fully understand your initial"one minor thing" bug report above first.Or maybe you can «reset the state» of the tabulated-list (as it is onfirst bookmark-bmenu-list call)? But I don't really know how tabulated-list works.
Okay -- I'll figure it out and Do The Right Thing. Thank you, Manuel.
Best regards, -Karl
[Prev in Thread] | Current Thread | [Next in Thread] |