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

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

[elpa] externals/auctex-cont-latexmk ebaee85698 05/13: replace "delq nil


From: ELPA Syncer
Subject: [elpa] externals/auctex-cont-latexmk ebaee85698 05/13: replace "delq nil ..." with "mapcan ..."
Date: Wed, 26 Jun 2024 03:59:03 -0400 (EDT)

branch: externals/auctex-cont-latexmk
commit ebaee85698bd48f8815a7235826aa55db8e53967
Author: Paul Nelson <ultrono@gmail.com>
Commit: Paul Nelson <ultrono@gmail.com>

    replace "delq nil ..." with "mapcan ..."
---
 auctex-cont-latexmk.el | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/auctex-cont-latexmk.el b/auctex-cont-latexmk.el
index c2d68757ea..45e83f041f 100644
--- a/auctex-cont-latexmk.el
+++ b/auctex-cont-latexmk.el
@@ -151,10 +151,11 @@ Adapted from `TeX-format-filter'."
   "Process log file for current LaTeX document.
 Return a list of triples as in the docstring of
 `auctex-cont-latexmk-process-item'."
-  (delq nil
-        (mapcar (lambda (item)
-                  (apply #'auctex-cont-latexmk-process-item item))
-                (auctex-cont-latexmk--error-list (TeX-master-output-file 
"log")))))
+  (mapcan
+   (lambda (err)
+     (when-let ((item (apply #'auctex-cont-latexmk-process-item err)))
+       (list item)))
+   (auctex-cont-latexmk--error-list (TeX-master-output-file "log"))))
 
 (defvar-local auctex-cont-latexmk--report-fn nil
   "Function provided by Flymake for reporting diagnostics.")



reply via email to

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