]> git.eshelyaron.com Git - emacs.git/commitdiff
Use mapc instead of mapcar when walking rmail threads
authorRobert Pluim <rpluim@gmail.com>
Thu, 17 Nov 2022 15:53:41 +0000 (16:53 +0100)
committerRobert Pluim <rpluim@gmail.com>
Thu, 17 Nov 2022 16:00:26 +0000 (17:00 +0100)
* lisp/mail/rmailsum.el (rmail-summary--walk-thread-message-recursively):
Use `mapc' instead of `mapcar'; we don't care about the results.

lisp/mail/rmailsum.el

index 971e504dcd1dc8b2f7eb632cfb7571d234b806d2..f161664d964099eb02ce20fc149a5b16d5cfe13a 100644 (file)
@@ -410,10 +410,10 @@ already ticked in ENCOUNTERED-MSGS."
            (lambda (msg)
              (rmail-summary--walk-thread-message-recursively
               msg encountered-msgs))))
-      (mapcar walk-thread-msg
-              (aref rmail-summary-message-parents-vector msgnum))
-      (mapcar walk-thread-msg
-              (rmail-summary-direct-descendants msgnum encountered-msgs)))))
+      (mapc walk-thread-msg
+            (aref rmail-summary-message-parents-vector msgnum))
+      (mapc walk-thread-msg
+            (rmail-summary-direct-descendants msgnum encountered-msgs)))))
 
 ;;;###autoload
 (defun rmail-summary-by-thread (&optional msgnum)