[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex-cont-latexmk b5bd4c5257 024/100: indentation
From: |
ELPA Syncer |
Subject: |
[elpa] externals/auctex-cont-latexmk b5bd4c5257 024/100: indentation |
Date: |
Thu, 6 Jun 2024 03:57:52 -0400 (EDT) |
branch: externals/auctex-cont-latexmk
commit b5bd4c52576a030c06783090f149e6f3befd90a4
Author: Paul Nelson <ultrono@gmail.com>
Commit: Paul Nelson <ultrono@gmail.com>
indentation
---
czm-tex-compile.el | 75 +++++++++++++++++++++++++++---------------------------
1 file changed, 38 insertions(+), 37 deletions(-)
diff --git a/czm-tex-compile.el b/czm-tex-compile.el
index 6989cb71bf..12c0233682 100644
--- a/czm-tex-compile.el
+++ b/czm-tex-compile.el
@@ -105,7 +105,8 @@ Used for navigating LaTeX warnings in the log file."
"Helper function to navigate warnings in the log file.
DIRECTION should be either \='next or \='previous."
(let* ((tex-file (buffer-file-name))
- (log-file (concat (file-name-sans-extension tex-file) ".log"))
+ (log-file (concat (file-name-sans-extension tex-file)
+ ".log"))
(file-modification-time (nth 5 (file-attributes log-file)))
(last-navigation-time (car czm-tex-compile--log-state))
(log-pos (cdr czm-tex-compile--log-state))
@@ -114,47 +115,47 @@ DIRECTION should be either \='next or \='previous."
(insert-file-contents log-file)
(save-excursion)
(if (or (null last-navigation-time)
- (time-less-p last-navigation-time file-modification-time))
- (goto-char (if (eq direction 'previous)
+ (time-less-p last-navigation-time file-modification-time))
+ (goto-char (if (eq direction 'previous)
(point-max)
(point-min)))
- (goto-char log-pos))
+ (goto-char log-pos))
(let ((search-fn
- (if (eq direction 'previous)
+ (if (eq direction 'previous)
#'re-search-backward #'re-search-forward)))
(when (eq direction 'next)
(forward-line 2))
- (when (funcall search-fn
- (concat "^"
- (regexp-opt
- '("! "
- "LaTeX Warning:
"))
- "[^ ]")
- nil t)
- (goto-char (match-beginning 0))
- (let ((error-p (looking-at "! ")))
- (setq last-navigation-time (current-time))
- (setq description
- (if error-p
- (buffer-substring-no-properties
- (point)
+ (when (funcall search-fn
+ (concat "^"
+ (regexp-opt
+ '("! "
+ "LaTeX Warning: "))
+ "[^ ]")
+ nil t)
+ (goto-char (match-beginning 0))
+ (let ((error-p (looking-at "! ")))
+ (setq last-navigation-time (current-time))
+ (setq description
+ (if error-p
+ (buffer-substring-no-properties
+ (point)
(line-end-position))
- (czm-tex-compile--paragraph-as-line)))
- (if error-p
- (progn
- (save-excursion
- (re-search-forward "^l\\.\\([0-9]+\\) " nil t)
- (let ((line-number (when (match-string 1)
+ (czm-tex-compile--paragraph-as-line)))
+ (if error-p
+ (progn
+ (save-excursion
+ (re-search-forward "^l\\.\\([0-9]+\\) " nil t)
+ (let ((line-number (when (match-string 1)
(string-to-number (match-string 1))))
- (line-prefix
(buffer-substring-no-properties
-
(point)
+ (line-prefix (buffer-substring-no-properties
+ (point)
(line-end-position))))
- (setq line (cons line-number
line-prefix)))))
- (when (string-match "input line \\([0-9]+\\)" description)
- (setq line (string-to-number (match-string 1
description)))))
+ (setq line (cons line-number line-prefix)))))
+ (when (string-match "input line \\([0-9]+\\)" description)
+ (setq line (string-to-number (match-string 1 description)))))
(forward-line -1)
- ;; (forward-line (if (eq direction 'previous) -1 1))
- (setq log-pos (point))))))
+ ;; (forward-line (if (eq direction 'previous) -1 1))
+ (setq log-pos (point))))))
(setq-local czm-tex-compile--log-state (cons last-navigation-time log-pos))
(when line
(let ((pos
@@ -168,12 +169,12 @@ DIRECTION should be either \='next or \='previous."
(forward-line (1- line-number)))
(when (consp line)
(when-let* ((search-string (cdr line))
- (truncated-search-string
- (if (< (length search-string)
+ (truncated-search-string
+ (if (< (length search-string)
3)
- search-string
- (substring search-string 3))))
- (search-forward truncated-search-string nil t)))
+ search-string
+ (substring search-string 3))))
+ (search-forward truncated-search-string nil t)))
(point)))))
(unless (<= (point-min)
pos (point-max))
- [elpa] externals/auctex-cont-latexmk c2d7e5cb90 015/100: delete resolved TODO from comments, (continued)
- [elpa] externals/auctex-cont-latexmk c2d7e5cb90 015/100: delete resolved TODO from comments, ELPA Syncer, 2024/06/06
- [elpa] externals/auctex-cont-latexmk d052e767e6 016/100: Add synctex=1 to default compile command, ELPA Syncer, 2024/06/06
- [elpa] externals/auctex-cont-latexmk 8633c833d9 020/100: Update README.org, ELPA Syncer, 2024/06/06
- [elpa] externals/auctex-cont-latexmk 6cd49a0317 027/100: about to hack stuff up, ELPA Syncer, 2024/06/06
- [elpa] externals/auctex-cont-latexmk 2762ee8084 037/100: polish, ELPA Syncer, 2024/06/06
- [elpa] externals/auctex-cont-latexmk e5cce65c36 040/100: readme tweaks, ELPA Syncer, 2024/06/06
- [elpa] externals/auctex-cont-latexmk 989be1a7a9 043/100: flycheck warnings, ELPA Syncer, 2024/06/06
- [elpa] externals/auctex-cont-latexmk 7e2cbfbc88 046/100: fix defcustom groups, ELPA Syncer, 2024/06/06
- [elpa] externals/auctex-cont-latexmk 2639003039 059/100: tweaks, ELPA Syncer, 2024/06/06
- [elpa] externals/auctex-cont-latexmk 2893258541 010/100: docs, ELPA Syncer, 2024/06/06
- [elpa] externals/auctex-cont-latexmk b5bd4c5257 024/100: indentation,
ELPA Syncer <=
- [elpa] externals/auctex-cont-latexmk e20b97607e 026/100: got it in OK shape, still quite rough tho, ELPA Syncer, 2024/06/06
- [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