[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 3faf43137a3 2/2: ; Eliminate warning when `dired-map-over-marks`
From: |
Mattias Engdegård |
Subject: |
master 3faf43137a3 2/2: ; Eliminate warning when `dired-map-over-marks` value is unused |
Date: |
Mon, 10 Apr 2023 05:46:05 -0400 (EDT) |
branch: master
commit 3faf43137a376631c49b1300e693acc83e20d9c1
Author: Mattias Engdegård <mattiase@acm.org>
Commit: Mattias Engdegård <mattiase@acm.org>
; Eliminate warning when `dired-map-over-marks` value is unused
* lisp/dired.el (dired-map-over-marks): Reformulate.
---
lisp/dired.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lisp/dired.el b/lisp/dired.el
index 8e3244356fe..d1471e993a1 100644
--- a/lisp/dired.el
+++ b/lisp/dired.el
@@ -927,9 +927,9 @@ marked file, return (t FILENAME) instead of (FILENAME)."
(lambda ()
(if ,show-progress (sit-for 0))
(setq results (cons ,body results))))
- (if (< ,arg 0)
- (nreverse results)
- results))
+ (when (< ,arg 0)
+ (setq results (nreverse results)))
+ results)
;; non-nil, non-integer, non-marked ARG means use current file:
(list ,body))
(let ((regexp (dired-marker-regexp)) next-position)