branch: externals/auctex-cont-latexmk commit 61cf12f244693e6688331369c96e534a90454262 Author: Paul Nelson <ultr...@gmail.com> Commit: Paul Nelson <ultr...@gmail.com>
for errors, just get line number directly --- czm-tex-compile.el | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/czm-tex-compile.el b/czm-tex-compile.el index a58ab1eab3..31aa39f14b 100644 --- a/czm-tex-compile.el +++ b/czm-tex-compile.el @@ -134,9 +134,8 @@ Used for navigating LaTeX warnings in the log file." (with-temp-buffer (insert (nth 5 item)) (goto-char (point-min)) - (when (re-search-forward "^\nl\\.\\([0-9]+\\) " nil t) - (setq line (when (match-string 1) - (string-to-number (match-string 1)))) + (setq line (nth 2 item)) + (when (re-search-forward "\nl\\.\\([0-9]+\\) " nil t) (setq prefix (buffer-substring-no-properties (point) (line-end-position))))) (when (string-match "input line \\([0-9]+\\)" description)