From: Stefan Kangas Date: Sun, 2 Oct 2022 22:13:56 +0000 (+0200) Subject: Actually delete markers in dired-do-flagged-delete X-Git-Tag: emacs-29.0.90~1856^2~66 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0d0d59b32c66f6b0604cb7c89b875d0407fba41c;p=emacs.git Actually delete markers in dired-do-flagged-delete * lisp/dired.el (dired-do-flagged-delete): Actually delete markers. (Bug#58256) --- diff --git a/lisp/dired.el b/lisp/dired.el index b9e89292e25..96b580d5763 100644 --- a/lisp/dired.el +++ b/lisp/dired.el @@ -3664,16 +3664,16 @@ non-empty directories is allowed." case-fold-search markers) (if (save-excursion (goto-char (point-min)) (re-search-forward regexp nil t)) - (dired-internal-do-deletions - (nreverse - ;; this can't move point since ARG is nil - (dired-map-over-marks (cons (dired-get-filename) - (let ((m (point-marker))) - (push m markers) - m)) - nil)) - nil t) - (dolist (m markers) (set-marker m nil)) + (progn + (dired-internal-do-deletions + (nreverse + (dired-map-over-marks (cons (dired-get-filename) + (let ((m (point-marker))) + (push m markers) + m)) + nil)) + nil t) + (dolist (m markers) (set-marker m nil))) (or nomessage (message "(No deletions requested)")))))