emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/javaimp a3a17d4a40: * javaimp.el (javaimp--collect-from


From: Filipp Gunbin
Subject: [elpa] externals/javaimp a3a17d4a40: * javaimp.el (javaimp--collect-from-source-dir): Use mapcan instead of dolist/nconc
Date: Tue, 10 May 2022 15:03:04 -0400 (EDT)

branch: externals/javaimp
commit a3a17d4a40bea26acf7bb06b5488c38010737dc6
Author: Filipp Gunbin <fgunbin@fastmail.fm>
Commit: Filipp Gunbin <fgunbin@fastmail.fm>

    * javaimp.el (javaimp--collect-from-source-dir): Use mapcan instead of 
dolist/nconc
---
 javaimp.el | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/javaimp.el b/javaimp.el
index 8a755f53c4..7519a8d95c 100644
--- a/javaimp.el
+++ b/javaimp.el
@@ -377,12 +377,12 @@ Finally, already parsed buffers are processed in
              (setq tmp (nconc tmp (funcall fun buf nil))))))
        ;; Read parsed buffers - usually will be quick
        (when parsed-bufs
-         (let (tmp)
-           (with-delayed-message
+         (with-delayed-message
                (1 (format "Reading %d parsed buffers..." (length parsed-bufs)))
-             (dolist (buf parsed-bufs tmp)
-               (setq tmp (nconc tmp (funcall fun buf nil)))))))))))
-
+           (mapcan
+            (lambda (buf)
+              (funcall fun buf nil))
+            parsed-bufs)))))))
 
 (defun javaimp--get-current-source-dir ()
   "Try to determine current root source directory from 'package'



reply via email to

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