]> git.eshelyaron.com Git - emacs.git/commit
Add new macro image-dired--with-dired-buffer
authorStefan Kangas <stefankangas@gmail.com>
Sat, 24 Sep 2022 09:49:46 +0000 (11:49 +0200)
committerStefan Kangas <stefankangas@gmail.com>
Sat, 24 Sep 2022 12:07:57 +0000 (14:07 +0200)
commit61b877237baa381430cab554cbd4b4c5838095dc
tree681f84e917f87902b2344c5c5f21e26bac3010a2
parent06de788529bb385462bc2539443d775328f82341
Add new macro image-dired--with-dired-buffer

* lisp/image/image-dired-util.el
(image-dired--with-dired-buffer): New macro.
* lisp/image/image-dired.el (image-dired-track-original-file)
(image-dired--on-file-in-dired-buffer)
(image-dired--do-mark-command)
(image-dired--on-file-in-dired-buffer)
(image-dired-jump-original-dired-buffer)
(image-dired-thumb-file-marked-p, image-dired-delete-marked):
Use above new macro to simplify and improve error handling.
(image-dired-show-all-from-dir): Simplify removing Dired marks.
(image-dired-thumb-update-marks): Avoid triggering above new error
handling.
lisp/image/image-dired-util.el
lisp/image/image-dired.el