1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-10 09:12:15 +00:00

Ask files for deletion in buffer order: top first, botton later

* lisp/dired.el (dired-do-flagged-delete, dired-do-delete):
Call `nreverse' t invert the output of `dired-map-over-marks'.
This commit is contained in:
Tino Calancha 2017-08-09 14:37:21 +09:00
parent 9723782161
commit 9ecbdeeaa8

View File

@ -3057,9 +3057,10 @@ non-empty directories is allowed."
(if (save-excursion (goto-char (point-min))
(re-search-forward regexp nil t))
(dired-internal-do-deletions
;; this can't move point since ARG is nil
(dired-map-over-marks (cons (dired-get-filename) (point))
nil)
(nreverse
;; this can't move point since ARG is nil
(dired-map-over-marks (cons (dired-get-filename) (point))
nil))
nil t)
(or nomessage
(message "(No deletions requested)")))))
@ -3072,9 +3073,10 @@ non-empty directories is allowed."
;; dired-do-flagged-delete.
(interactive "P")
(dired-internal-do-deletions
;; this may move point if ARG is an integer
(dired-map-over-marks (cons (dired-get-filename) (point))
arg)
(nreverse
;; this may move point if ARG is an integer
(dired-map-over-marks (cons (dired-get-filename) (point))
arg))
arg t))
(defvar dired-deletion-confirmer 'yes-or-no-p) ; or y-or-n-p?