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

推荐订阅源

J
Java Code Geeks
小众软件
小众软件
博客园 - 叶小钗
宝玉的分享
宝玉的分享
博客园_首页
Hugging Face - Blog
Hugging Face - Blog
人人都是产品经理
人人都是产品经理
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
S
SegmentFault 最新的问题
B
Blog RSS Feed
Engineering at Meta
Engineering at Meta
N
Netflix TechBlog - Medium
Google DeepMind News
Google DeepMind News
U
Unit 42
F
Fortinet All Blogs
IT之家
IT之家
Y
Y Combinator Blog
Martin Fowler
Martin Fowler
T
The Blog of Author Tim Ferriss
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
The GitHub Blog
The GitHub Blog
Stack Overflow Blog
Stack Overflow Blog
Blog — PlanetScale
Blog — PlanetScale
酷 壳 – CoolShell
酷 壳 – CoolShell

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 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
Accept '-' as macro modifier - elpa/gnu.git
Arash Esbati · 2026-09-09 · via elpa/gnu.git, branch externals/auctex

* font-latex.el (font-latex-match-command-with-arguments): Fontify macros with '-' as macro modifier correctly. (Bug#81755)

diff --git a/font-latex.el b/font-latex.el
index 0908d78e8a0..4ef7de08f07 100644
--- a/font-latex.el
+++ b/font-latex.el

@@ -1622,10 +1622,11 @@ Returns nil if none of KEYWORDS is found."

(goto-char (match-end 0))

;; Check for starred macro if first spec is an asterisk or a

;; plus sign in case of \defaultfontfeatures+ provided by

- ;; fontspec.sty

- (when (memql (car spec-list) '(?* ?+))

+ ;; fontspec.sty or a minus sign in case of \footnote- provided

+ ;; by bigfoot.sty:

+ (when (memql (car spec-list) '(?* ?+ ?-))

(setq spec-list (cdr spec-list))

- (skip-chars-forward "*+" (1+ (point))))

+ (skip-chars-forward "*+-" (1+ (point))))

;; Add current point to match data and use keyword face for

;; region from start to point.

(nconc match-data (list (point)))

@@ -1652,7 +1653,7 @@ Returns nil if none of KEYWORDS is found."

(forward-char)

(if (zerop (skip-syntax-forward "_w"))

(forward-char) ; Single-char macro.

- (skip-chars-forward "*+"))

+ (skip-chars-forward "*+-"))

(point))))

(nconc font-latex-matched-faces (list face))

(setq end (max end (point)))

@@ -1674,8 +1675,8 @@ Returns nil if none of KEYWORDS is found."

(when (and match-beg (= match-beg (point)))

(setq error-indicator-pos match-beg))

(throw 'break nil))))

- ;; Asterisk or plus sign between arguments (sigh!):

- ((and (memql spec '(?* ?+))

+ ;; Asterisk, plus or minus sign between arguments (sigh!):

+ ((and (memql spec '(?* ?+ ?-))

(= (char-after) spec))

(setq match-beg (point))

(if (= (char-after) spec)

@@ -1683,7 +1684,7 @@ Returns nil if none of KEYWORDS is found."

(nconc match-data

(list (point)

(progn

- (skip-chars-forward "*+")

+ (skip-chars-forward "*+-")

(point))))

(nconc font-latex-matched-faces

(list 'font-lock-keyword-face))