]> git.eshelyaron.com Git - emacs.git/commit
Improve sorting in the bookmark list buffer
authorKarl Fogel <kfogel@red-bean.com>
Sun, 24 Apr 2022 19:07:21 +0000 (14:07 -0500)
committerKarl Fogel <kfogel@red-bean.com>
Sun, 24 Apr 2022 19:07:21 +0000 (14:07 -0500)
commit8b071c77b0d7200fcc6659d395113ac4d9d778a5
treefa2f01efdb92ec33505966259d503f7f84ec55e2
parentb3e009ba9834c187160ecb99d34fb1f8bd222eed
Improve sorting in the bookmark list buffer

  - Ensure that the bookmark bmenu buffer sorts when it should.
  - Sort case-insensitively and by locale-dependent collation order.
  - Rename "Bookmark" column to "Bookmark Name".
  - Coordinate that column's sort toggle and `bookmark-sort-flag'.
  - Document the new behavior.

* lisp/bookmark.el (bookmark-bmenu--name-predicate,
bookmark-bmenu--type-predicate, bookmark-bmenu--file-predicate): Use
`string-collate-lessp' with IGNORE-CASE argument, instead of plain
`string<'.
(bookmark-bmenu--revert): Sort based on `bookmark-sort-flag'.
(bookmark-bmenu-mode): Document the new behavior.   Rename the
"Bookmark" column to "Bookmark Name" for clarity & documentabilty.
lisp/bookmark.el