惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

WordPress大学
WordPress大学
Engineering at Meta
Engineering at Meta
D
DataBreaches.Net
月光博客
月光博客
Recent Announcements
Recent Announcements
Google DeepMind News
Google DeepMind News
U
Unit 42
腾讯CDC
爱范儿
爱范儿
J
Java Code Geeks
有赞技术团队
有赞技术团队
Blog — PlanetScale
Blog — PlanetScale
N
Netflix TechBlog - Medium
B
Blog
Stack Overflow Blog
Stack Overflow Blog
GbyAI
GbyAI
T
The Blog of Author Tim Ferriss
小众软件
小众软件
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Y
Y Combinator Blog
大猫的无限游戏
大猫的无限游戏
Microsoft Azure Blog
Microsoft Azure Blog
T
Tailwind CSS Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知

elpa/gnu.git, branch externals/auctex

* latex.el (LaTeX-what-macro): Fix chars to skip backwards. * tex-ispell.el: Consolidate regexp for tabular environments. - elpa/gnu.git ; * latex.el (LaTeX-what-macro): Fix last change. * latex.el (LaTeX-what-macro): Improve macro recognition. - elpa/gnu.git Preserve `crm--choose-completion-string' - elpa/gnu.git - GNU ELPA Accept '-' as macro modifier - elpa/gnu.git Add new styles - elpa/gnu.git ; * tex-info.el (outline-heading-alist): Silence the compiler. - elpa/gnu.git Update style/simpleicons.el to package v16.29.0 - elpa/gnu.git Update NEWS.org for new preview feature - elpa/gnu.git Robustify check for escaped math switches/togglers - elpa/gnu.git Fix custom prompt with a default-value - elpa/gnu.git Fix prompt with a default-value - elpa/gnu.git Make `TeX-listify' an obsolete alias - elpa/gnu.git Fix 'syntax-propertize because of narrowing!' error - elpa/gnu.git Update style/ltx-talk.el to class v0.6.0 - elpa/gnu.git elpa/gnu.git - GNU ELPA elpa/gnu.git - GNU ELPA elpa/gnu.git - GNU ELPA elpa/gnu.git - GNU ELPA elpa/gnu.git - GNU ELPA Return context for RefTeX also for macros - elpa/gnu.git ; Fix last change - elpa/gnu.git Add in-buffer completion for citation keys - elpa/gnu.git ; Adjust Copyright years - elpa/gnu.git Improve query of the optional float placement - elpa/gnu.git Sort predefined environment hooks - elpa/gnu.git Sort predefined hooks - elpa/gnu.git Allow additional properties for in-buffer completion - elpa/gnu.git Use ConTeXt Mark XL instead of LMTX - elpa/gnu.git
elpa/gnu.git - GNU ELPA
Ikumi Keita · 2026-06-23 · via elpa/gnu.git, branch externals/auctex

* tex.el (TeX-parse-error): Refactor the regexp to simplify the logic. Don't miss "! " at BOL case. (TeX-error): Remove \n\r, which was too specific for (older) ConTeXt error message.

diff --git a/tex.el b/tex.el
index c095e9c5063..7bbd7a07a78 100644
--- a/tex.el
+++ b/tex.el

@@ -9642,8 +9642,9 @@ displaying the issue.

Return non-nil if an error or warning is found."

(let ((regexp

(concat

- ;; TeX error: grab (1) filename:line-number and (2) filename:

- "^\\(!\\|\\(.+?\\):[0-9]+:\\) \\|"

+ ;; TeX error: (1) or

+ ;; LaTeX error: grab (2) filename

+ "^\\(! \\)\\|^\\(.+?\\):[0-9]+: \\|"

;; New file (or parenthesized comment): match 3

"(\n?\\([^\n()]+\\)\\|"

;; End of file (or comment): "match" 4

@@ -9675,21 +9676,28 @@ Return non-nil if an error or warning is found."

(beep)

(TeX-pop-to-buffer old))

nil)

- ;; TeX/LaTeX (1) or ConTeXt LMTX (9) error:

- ((or (match-beginning 1) (match-beginning 9))

- (if (or ;; Ignore non-error warning. (bug#55065)

- (file-exists-p (TeX-match-buffer 2))

- (file-exists-p (TeX-match-buffer 10)))

+ ;; TeX (1), LaTeX (2) or ConTeXt LMTX (9) error:

+ ((or (match-beginning 1) (match-beginning 2) (match-beginning 9))

+ (if (or

+ ;; When we have "! " at BOL, treat it as an error

+ ;; unconditionally.

+ (match-beginning 1)

+ ;; Ignore non-error warning. (bug#55065)

+ (file-exists-p (TeX-match-buffer

+ (if (match-beginning 2)

+ 2 10))))

(progn

- (unless TeX-error-file

- (push nil TeX-error-file)

- (push nil TeX-error-offset))

- (unless (car TeX-error-offset)

- ;; match 2 or 10 is the .tex file name.

- (rplaca TeX-error-file

- (if (match-beginning 2)

- (TeX-match-buffer 2)

- (TeX-match-buffer 10))))

+ (when (or (match-beginning 2)

+ (match-beginning 10))

+ (unless TeX-error-file

+ (push nil TeX-error-file)

+ (push nil TeX-error-offset))

+ (unless (car TeX-error-offset)

+ ;; match 2 or 10 is the .tex file name.

+ (rplaca TeX-error-file

+ (TeX-match-buffer

+ (if (match-beginning 2)

+ 2 10)))))

(setq error-found t)

(if (looking-at "Preview ")

t

@@ -9697,7 +9705,8 @@ Return non-nil if an error or warning is found."

nil))

;; This wasn't an actual TeX error. Go to the least

;; possible point to search again.

- (goto-char (1+ (match-beginning 1)))

+ (goto-char (1+ (or (match-beginning 2)

+ (match-beginning 9))))

t))

;; LaTeX bad box

((match-beginning 7)

@@ -9940,7 +9949,7 @@ information in `TeX-error-list' instead of displaying the error."

;; This regexp deals with this problem.

(string (progn

(beginning-of-line)

- (re-search-forward " \\(\\([^ \t\n\r]*$\\)\\|\\($\\)\\)")

+ (re-search-forward " \\(\\([^ \t]*$\\)\\|\\($\\)\\)")

(TeX-match-buffer 1)))

;; (point) is now positioned at the end of the input line