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

推荐订阅源

爱范儿
爱范儿
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
WordPress大学
WordPress大学
Apple Machine Learning Research
Apple Machine Learning Research
小众软件
小众软件
雷峰网
雷峰网
博客园 - 聂微东
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 三生石上(FineUI控件)
博客园_首页
博客园 - 司徒正美
博客园 - 叶小钗
IT之家
IT之家
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Hugging Face - Blog
Hugging Face - Blog
Last Week in AI
Last Week in AI
博客园 - 【当耐特】
宝玉的分享
宝玉的分享
有赞技术团队
有赞技术团队
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
T
Tailwind CSS Blog
V
V2EX
The Cloudflare Blog

elpa/gnu.git, branch externals/auctex

Update style/keytheorems.el to package v0.4.0 - elpa/gnu.git 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
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 "$")