unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* 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

* bug#53385: 29.0.50; bug-fix for image-dired-delete-marked
  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
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2022-01-20 14:16 UTC (permalink / raw)
  To: Peter Münster; +Cc: 53385

Peter Münster <pm@a16n.net> writes:

> Please avoid, that backward-char signals an error:

Thanks; applied to Emacs 29.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).