[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex-cont-latexmk 993c2e62fe 068/100: adapt TeX-forma
From: |
ELPA Syncer |
Subject: |
[elpa] externals/auctex-cont-latexmk 993c2e62fe 068/100: adapt TeX-format-filter to format log more robustly |
Date: |
Thu, 6 Jun 2024 03:57:57 -0400 (EDT) |
branch: externals/auctex-cont-latexmk
commit 993c2e62fe69021b1b565fe24ec51dd1b517b155
Author: Paul Nelson <ultrono@gmail.com>
Commit: Paul Nelson <ultrono@gmail.com>
adapt TeX-format-filter to format log more robustly
---
tex-continuous.el | 18 ++++++++++++++----
1 file changed, 14 insertions(+), 4 deletions(-)
diff --git a/tex-continuous.el b/tex-continuous.el
index 21ace8e2fd..8d558618cc 100644
--- a/tex-continuous.el
+++ b/tex-continuous.el
@@ -113,14 +113,24 @@ is an error rather than a warning."
(replace-regexp-in-string "\n" "" message)
region))))
+(defun tex-continuous--format-log-buffer ()
+ "Format the current log buffer by joining lines suitably.
+Adapted from `TeX-format-filter'"
+ (goto-char (point-max))
+ (while (> (point) (point-min))
+ (end-of-line 0)
+ (when (and (memq (- (point) (line-beginning-position)) '(79 80))
+ (not (memq (char-after (1+ (point))) '(?\n ?\()))
+ (not (and (eq (char-before) ?.)
+ (char-after (1+ (point)))
+ (not (eq ?w (char-syntax (char-after (1+
(point)))))))))
+ (delete-char 1))))
+
(defun tex-continuous--error-list (log-file)
"Retrieve parsed TeX error list from LOG-FILE."
(with-temp-buffer
(insert-file-contents log-file)
- (goto-char (point-min))
- (while (re-search-forward "Warning:" nil t)
- (let ((fill-column most-positive-fixnum))
- (call-interactively 'fill-paragraph)))
+ (tex-continuous--format-log-buffer)
(TeX-parse-all-errors)
TeX-error-list))
- [elpa] externals/auctex-cont-latexmk 1384905db7 050/100: rearrange, (continued)
- [elpa] externals/auctex-cont-latexmk 1384905db7 050/100: rearrange, ELPA Syncer, 2024/06/06
- [elpa] externals/auctex-cont-latexmk 7c7fcc15a9 053/100: mild factoring, ELPA Syncer, 2024/06/06
- [elpa] externals/auctex-cont-latexmk b082dacb78 054/100: some good clean-up, ELPA Syncer, 2024/06/06
- [elpa] externals/auctex-cont-latexmk 62c2eb652a 031/100: print entire warning message (not every warning is a LaTeX warning), ELPA Syncer, 2024/06/06
- [elpa] externals/auctex-cont-latexmk 5473521164 036/100: tweak readme, ELPA Syncer, 2024/06/06
- [elpa] externals/auctex-cont-latexmk 6cbd9d1493 067/100: respect TeX-output-dir, ELPA Syncer, 2024/06/06
- [elpa] externals/auctex-cont-latexmk 8333451e17 028/100: re-implement main logic using TeX-parse-all-errors, ELPA Syncer, 2024/06/06
- [elpa] externals/auctex-cont-latexmk 1aee5cc114 049/100: add "ignored" user option, started rearranging, ELPA Syncer, 2024/06/06
- [elpa] externals/auctex-cont-latexmk c6d624934e 061/100: some simplifications, clean-up, ELPA Syncer, 2024/06/06
- [elpa] externals/auctex-cont-latexmk ae9171666e 063/100: tidy, ELPA Syncer, 2024/06/06
- [elpa] externals/auctex-cont-latexmk 993c2e62fe 068/100: adapt TeX-format-filter to format log more robustly,
ELPA Syncer <=
- [elpa] externals/auctex-cont-latexmk a9d825f79c 069/100: attempt to make compilation command OS-compatible, ELPA Syncer, 2024/06/06
- [elpa] externals/auctex-cont-latexmk 826cf967f4 070/100: clarify commentary, ELPA Syncer, 2024/06/06
- [elpa] externals/auctex-cont-latexmk d0fe19c0de 079/100: Make tex-continuous-mode independent of flymake, ELPA Syncer, 2024/06/06
- [elpa] externals/auctex-cont-latexmk cdef4a9839 081/100: Remove t from flymake-diagnostic-functions, ELPA Syncer, 2024/06/06
- [elpa] externals/auctex-cont-latexmk 832496d454 088/100: Support indirect buffers, ELPA Syncer, 2024/06/06
- [elpa] externals/auctex-cont-latexmk c3ff2df047 030/100: restrict errors to those associated to some file, ELPA Syncer, 2024/06/06
- [elpa] externals/auctex-cont-latexmk c2069da6b9 035/100: reduce "sit-for" time, ELPA Syncer, 2024/06/06
- [elpa] externals/auctex-cont-latexmk d377100af3 056/100: cleaning up, hopefully not ruining everything, ELPA Syncer, 2024/06/06
- [elpa] externals/auctex-cont-latexmk fcb2ec2d87 062/100: tidy, ELPA Syncer, 2024/06/06
- [elpa] externals/auctex-cont-latexmk 4ff1de7926 004/100: fix most flycheck warnings, ELPA Syncer, 2024/06/06