* bug#53385: 29.0.50; bug-fix for image-dired-delete-marked
@ 2022-01-20 10:07 Peter Münster
2022-01-20 14:16 ` Lars Ingebrigtsen
0 siblings, 1 reply; 2+ messages in thread
From: Peter Münster @ 2022-01-20 10:07 UTC (permalink / raw)
To: 53385
[-- Attachment #1: Type: text/plain, Size: 562 bytes --]
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
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 211 bytes --]
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-01-20 14:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-20 10:07 bug#53385: 29.0.50; bug-fix for image-dired-delete-marked Peter Münster
2022-01-20 14:16 ` Lars Ingebrigtsen
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.