]> git.eshelyaron.com Git - kubed.git/commit
Preserve marks in list buffers also in Emacs 29
authorEshel Yaron <me@eshelyaron.com>
Fri, 4 Oct 2024 19:03:26 +0000 (21:03 +0200)
committerEshel Yaron <me@eshelyaron.com>
Fri, 4 Oct 2024 19:03:26 +0000 (21:03 +0200)
commitac6e244ecb6af3b20dd6e8adccc96b263d4a0c9f
tree96ac2ec53b6f89eb3bc3d995e541f2a2ef05ed48
parenta429d82e05e4d097ee431cd385f1a6679f606815
Preserve marks in list buffers also in Emacs 29

Instead of relying on
'revert-buffer-restore-functions' (introduced in Emacs 30)
for preserving marks in 'kubed-list-mode' during
'revert-buffer', use a 'revert-buffer-function' to do so.

* kubed.el (kubed-list-revert): New function.
(kubed-list-mode): Use it.
kubed.el