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

推荐订阅源

WordPress大学
WordPress大学
A
About on SuperTechFans
量子位
B
Blog RSS Feed
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园_首页
MongoDB | Blog
MongoDB | Blog
小众软件
小众软件
Blog — PlanetScale
Blog — PlanetScale
Microsoft Azure Blog
Microsoft Azure Blog
V
V2EX
Google DeepMind News
Google DeepMind News
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
H
Hackread – Cybersecurity News, Data Breaches, AI and More
G
Google Developers Blog
U
Unit 42
D
DataBreaches.Net
博客园 - Franky
D
Docker
宝玉的分享
宝玉的分享
Y
Y Combinator Blog
月光博客
月光博客
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Hugging Face - Blog
Hugging Face - Blog

elpa/gnu.git, branch externals/auctex

* 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 ; * tex.el (TeX-output-dir): Fix last change. - elpa/gnu.git * tex.el (TeX-output-dir): Fix docstring acc. to last change. - elpa/gnu.git ; * NEWS.org (Changed): Announce last change. - 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