]> git.eshelyaron.com Git - emacs.git/commit
image-dired: Support wrap-around in display-next-thumbnail-original
authorStefan Kangas <stefan@marxist.se>
Wed, 3 Nov 2021 02:34:28 +0000 (03:34 +0100)
committerStefan Kangas <stefan@marxist.se>
Wed, 3 Nov 2021 04:10:24 +0000 (05:10 +0100)
commit16b46b9ee230cb4c521d6d32ce006c35bd1056af
treea968c7fa3b859bdc2e9b17f062e4f56859835423
parent67af04403c960f8558b931df3daca4a0815720e5
image-dired: Support wrap-around in display-next-thumbnail-original

* lisp/image-dired.el (image-dired-forward-image): Support negative
prefix argument.  Optionally wrap-around, which means to continue from
first image after reaching the last one and vice versa.
(image-dired-backward-image): Reimplement in terms of
'image-dired-forward-image'.
(image-dired-display-next-thumbnail-original)
(image-dired-display-previous-thumbnail-original): Wrap around; when
reaching the last image, continue from the first one.  Add optional
prefix argument to move more than one image at a time.
lisp/image-dired.el