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

推荐订阅源

T
The Blog of Author Tim Ferriss
I
InfoQ
H
Hackread – Cybersecurity News, Data Breaches, AI and More
aimingoo的专栏
aimingoo的专栏
小众软件
小众软件
有赞技术团队
有赞技术团队
J
Java Code Geeks
Apple Machine Learning Research
Apple Machine Learning Research
大猫的无限游戏
大猫的无限游戏
Engineering at Meta
Engineering at Meta
B
Blog RSS Feed
博客园_首页
Y
Y Combinator Blog
V
Visual Studio Blog
Google DeepMind News
Google DeepMind News
M
MIT News - Artificial intelligence
雷峰网
雷峰网
博客园 - 司徒正美
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
H
Help Net Security
P
Proofpoint News Feed
B
Blog
云风的 BLOG
云风的 BLOG
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报

elpa/gnu.git, branch externals/auctex

Release GNU AUCTeX 14.2.0 - elpa/gnu.git * latex.el (LaTeX-what-macro): Fix chars to skip backwards. - elpa/gnu.git * tex-ispell.el: Consolidate regexp for tabular environments. - elpa/gnu.git ; * latex.el (LaTeX-what-macro): Fix last change. - elpa/gnu.git * 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
Fix fontification of verb macros followed by space - elpa...
Arash Esbati · 2026-06-18 · via elpa/gnu.git, branch externals/auctex

* font-latex.el (font-latex-set-syntactic-keywords): Fix fontification of inline verbatim macros when the macro itself is followed by a space. The space is gobbled correctly since LaTeX release 2020-10-01. * tests/latex/font-latex-test.el (font-latex-general-fontification): Adjust test accordingly.

diff --git a/font-latex.el b/font-latex.el
index 7873a4a5681..0908d78e8a0 100644
--- a/font-latex.el
+++ b/font-latex.el

@@ -1,6 +1,6 @@

;;; font-latex.el --- LaTeX fontification for Font Lock mode. -*- lexical-binding: t; -*-

-;; Copyright (C) 1996-2025 Free Software Foundation, Inc.

+;; Copyright (C) 1996-2026 Free Software Foundation, Inc.

;; Authors: Peter S. Galbraith <psg@debian.org>

;; Simon Marshall <Simon.Marshall@esrin.esa.it>

@@ -1091,6 +1091,10 @@ have changed."

(add-to-list

'font-latex-syntactic-keywords

`(,(concat "\\\\\\(?:" verb-macros-with-delims "\\)"

+ ;; Since LaTeX release 2020-10-01, spaces after \verb

+ ;; macro are gobbled like with other macros (see

+ ;; ltnews32.pdf), so deal with them:

+ "[ \t]*"

;; Some macros take an optional argument. This is

;; the same line as above for environments.

"\\(?:\\[[^][]*\\(?:\\[[^][]*\\][^][]*\\)*\\]\\)?"

@@ -1109,6 +1113,8 @@ have changed."

(add-to-list

'font-latex-syntactic-keywords

`(,(concat "\\\\\\(?:" verb-macros-with-braces "\\)"

+ ;; Spaces are allowed after macros as usual:

+ "[ \t]*"

;; Some macros take an optional argument. This is

;; the same line as above for environments.

"\\(?:\\[[^][]*\\(?:\\[[^][]*\\][^][]*\\)*\\]\\)?"

@@ -1,6 +1,6 @@

;;; font-latex-test.el --- tests for font-latex -*- lexical-binding: t; -*-

-;; Copyright (C) 2020-2024 Free Software Foundation, Inc.

+;; Copyright (C) 2020-2026 Free Software Foundation, Inc.

;; This file is part of AUCTeX.

@@ -115,6 +115,7 @@ $a$")

\\section{Macros}

Inline verbatim test: \\verb|x|

+Inline verbatim test: \\verb* |x|

Inline math test: $x$, \\(x\\)

Marginpar test: \\marginpar{x}

Sedate macro test: \\sedate

@@ -215,6 +216,9 @@ x

(search-forward "\\verb|")

(should (font-latex-faces-present-p 'font-latex-verbatim-face))

(end-of-line)

+ (search-forward "\\verb* |")

+ (should (font-latex-faces-present-p 'font-latex-verbatim-face))

+ (end-of-line)

;; Test for inline math:

(search-forward "$")