emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 2bf7a06c4b: Use mapc instead of mapcar when walking rmail threads


From: Robert Pluim
Subject: master 2bf7a06c4b: Use mapc instead of mapcar when walking rmail threads
Date: Thu, 17 Nov 2022 11:11:41 -0500 (EST)

branch: master
commit 2bf7a06c4bb6cef53bfdfdc58e31128f49b691af
Author: Robert Pluim <rpluim@gmail.com>
Commit: Robert Pluim <rpluim@gmail.com>

    Use mapc instead of mapcar when walking rmail threads
    
    * 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 | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/lisp/mail/rmailsum.el b/lisp/mail/rmailsum.el
index 971e504dcd..f161664d96 100644
--- a/lisp/mail/rmailsum.el
+++ b/lisp/mail/rmailsum.el
@@ -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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]