Subject: bug#53385: 29.0.50; bug-fix for image-dired-delete-marked

From: Peter Münster <[email-masked]>
Date: Thu, 20 Jan 2022 11:07:36 +0100

Hi,

Please avoid, that backward-char signals an error:

diff --git a/lisp/image-dired.el b/lisp/image-dired.el
index b81df8567b..d5ed5d4ce8 100644
--- a/lisp/image-dired.el
+++ b/lisp/image-dired.el
@@ -2353,7 +2351,8 @@ image-dired-delete-marked
   (interactive)
   (image-dired--with-marked
    (image-dired-delete-char)
-   (backward-char))
+   (unless (bobp)
+     (backward-char)))
   (image-dired--line-up-with-method)
   (with-current-buffer (image-dired-associated-dired-buffer)
     (dired-do-delete)))

TIA,
-- 
           Peter