[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex-cont-latexmk 3eeebb581f 008/100: Fix "repeat whe
From: |
ELPA Syncer |
Subject: |
[elpa] externals/auctex-cont-latexmk 3eeebb581f 008/100: Fix "repeat when reversing direction" nuisance |
Date: |
Thu, 6 Jun 2024 03:57:50 -0400 (EDT) |
branch: externals/auctex-cont-latexmk
commit 3eeebb581f2dbb2637875cc87057ece31109e1ff
Author: Paul Nelson <ultrono@gmail.com>
Commit: Paul Nelson <ultrono@gmail.com>
Fix "repeat when reversing direction" nuisance
---
czm-tex-compile.el | 17 +++++++++++++----
1 file changed, 13 insertions(+), 4 deletions(-)
diff --git a/czm-tex-compile.el b/czm-tex-compile.el
index 98b0ec0486..b13a2bacd5 100644
--- a/czm-tex-compile.el
+++ b/czm-tex-compile.el
@@ -29,7 +29,7 @@
;; `czm-tex-compile-command' to change the command used to compile the
;; document.
;;
-;; Sample use-package declaration:
+;; My use-package declaration:
;;
;; (use-package czm-tex-compile
;; :vc (:url "https://github.com/ultronozm/czm-tex-compile.el.git"
@@ -37,8 +37,8 @@
;; :after latex
;; :bind
;; ("C-c k" . czm-tex-compile)
-;; ("M-]" . czm-tex-compile-next-error)
-;; ("M-[" . czm-tex-compile-previous-error))
+;; ("s-]" . czm-tex-compile-next-error)
+;; ("s-[" . czm-tex-compile-previous-error))
;;; Code:
@@ -82,6 +82,12 @@ Used for navigating LaTeX warnings in the log file."
(point))))
(replace-regexp-in-string "\n" "" (buffer-substring-no-properties beg
end))))
+;; TODO: look for the line <name>.bbl in the file, and don't jump to
+;; line numbers found in log entries beyond that point (just display
+;; them). Also, use insert-file-contents rather than
+;; find-file-noselect, etc. Similarly, do the same for .aux files in
+;; your other packages (tex-util, preview).
+
(defun czm-tex-compile--navigate-log-error (direction)
"Helper function to navigate warnings in the log file.
DIRECTION should be either \='next or \='previous."
@@ -101,6 +107,8 @@ DIRECTION should be either \='next or \='previous."
(goto-char log-pos))
(let ((search-fn
(if (eq direction 'previous) #'re-search-backward
#'re-search-forward)))
+ (when (eq direction 'next)
+ (forward-line 2))
(when (funcall search-fn
(concat "^"
(regexp-opt
@@ -126,7 +134,8 @@ DIRECTION should be either \='next or \='previous."
(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 (if (eq direction 'previous) -1 1))
+ (forward-line -1)
+ ;; (forward-line (if (eq direction 'previous) -1 1))
(setq log-pos (point))))))
(unless already-open
- [elpa] externals/auctex-cont-latexmk a541f4e4a6 025/100: prototype implementation of core flymake functionality, (continued)
- [elpa] externals/auctex-cont-latexmk a541f4e4a6 025/100: prototype implementation of core flymake functionality, ELPA Syncer, 2024/06/06
- [elpa] externals/auctex-cont-latexmk 9ffc065182 042/100: add support for flagging multiply-defined labels and bad boxes, ELPA Syncer, 2024/06/06
- [elpa] externals/auctex-cont-latexmk c1aa3aafe1 047/100: first attempt at fixing narrowing issues, ELPA Syncer, 2024/06/06
- [elpa] externals/auctex-cont-latexmk 2986f5ce44 057/100: got to working OK w/ multifile projects, ELPA Syncer, 2024/06/06
- [elpa] externals/auctex-cont-latexmk 43bdc08cf6 071/100: formatting, ELPA Syncer, 2024/06/06
- [elpa] externals/auctex-cont-latexmk de469de0a1 051/100: remove hbox from the list of ignored warnings, ELPA Syncer, 2024/06/06
- [elpa] externals/auctex-cont-latexmk a3ba987e68 074/100: add tex-continuous--build-file back in, at least for now, ELPA Syncer, 2024/06/06
- [elpa] externals/auctex-cont-latexmk d99ee12fe2 077/100: Allow updates when process buffer is empty, ELPA Syncer, 2024/06/06
- [elpa] externals/auctex-cont-latexmk d63f7e1327 094/100: Rearrange file to clarify division of responsibility, ELPA Syncer, 2024/06/06
- [elpa] externals/auctex-cont-latexmk b34fcf062a 098/100: add local variable tex-continuous-force-enable, ELPA Syncer, 2024/06/06
- [elpa] externals/auctex-cont-latexmk 3eeebb581f 008/100: Fix "repeat when reversing direction" nuisance,
ELPA Syncer <=
- [elpa] externals/auctex-cont-latexmk dc130e1bfe 021/100: Merge pull request #1 from 8vasu/patch-1, ELPA Syncer, 2024/06/06
- [elpa] externals/auctex-cont-latexmk 34c8588d7e 029/100: fix some issues involving multiline warnings, ELPA Syncer, 2024/06/06
- [elpa] externals/auctex-cont-latexmk ad6dc99345 033/100: fix flycheck warnings, ELPA Syncer, 2024/06/06
- [elpa] externals/auctex-cont-latexmk 7c3c45f924 041/100: fix "tab goes from compilation buffer to tex buffer" feature, ELPA Syncer, 2024/06/06
- [elpa] externals/auctex-cont-latexmk a3af9c0f47 044/100: refactoring to make functions smaller, ELPA Syncer, 2024/06/06
- [elpa] externals/auctex-cont-latexmk 776337f0d8 013/100: Fix the direction issue, ELPA Syncer, 2024/06/06
- [elpa] externals/auctex-cont-latexmk 6d8252a759 014/100: avoid unnecessary "find-file-noselect", ELPA Syncer, 2024/06/06
- [elpa] externals/auctex-cont-latexmk 146dfe2350 019/100: Merge remote-tracking branch 'origin/main', ELPA Syncer, 2024/06/06
- [elpa] externals/auctex-cont-latexmk 08d713ef4b 017/100: improve handling of some failure cases, ELPA Syncer, 2024/06/06
- [elpa] externals/auctex-cont-latexmk dc493bf00c 022/100: delete a couple lines that should have been deleted last time, ELPA Syncer, 2024/06/06