]> git.eshelyaron.com Git - emacs.git/commit
Make 'n'/'p' in image mode buffers respect dired sorting
authorLars Ingebrigtsen <larsi@gnus.org>
Thu, 6 Aug 2020 09:51:22 +0000 (11:51 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 6 Aug 2020 09:51:22 +0000 (11:51 +0200)
commit361baa451adac7333e1037c3bc73bd95afa9b769
treeaa4537d4363f1310fcbad285beb8815265545435
parent7a56e5a44a390aaa29711d63f125f4b802df07c1
Make 'n'/'p' in image mode buffers respect dired sorting

The commands now also now work on archive and tar mode parent buffers.

* doc/emacs/files.texi (Image Mode): Document it.

* lisp/arc-mode.el (archive-goto-file): New function (bug#38647).
(archive-next-file-displayer): Ditto.

* lisp/image-mode.el (image-next-file): Reimplement to work on
displayed dired buffers and the like.  This means that `n' and `p'
now works on the displayed ordering in the dired buffer, so if
you've reversed the sorting, `n' picks the right "next" file.
(image-mode--directory-buffers): New function.
(image-mode--next-file): Ditto.

* lisp/tar-mode.el (tar-goto-file): New function.
(tar-next-file-displayer): Ditto.
doc/emacs/files.texi
etc/NEWS
lisp/arc-mode.el
lisp/image-mode.el
lisp/tar-mode.el