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

推荐订阅源

Martin Fowler
Martin Fowler
Engineering at Meta
Engineering at Meta
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
阮一峰的网络日志
阮一峰的网络日志
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
量子位
Jina AI
Jina AI
Microsoft Azure Blog
Microsoft Azure Blog
博客园_首页
L
LangChain Blog
A
About on SuperTechFans
人人都是产品经理
人人都是产品经理
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
美团技术团队
博客园 - 三生石上(FineUI控件)
N
Netflix TechBlog - Medium
D
DataBreaches.Net
P
Proofpoint News Feed
小众软件
小众软件
Vercel News
Vercel News
T
The Blog of Author Tim Ferriss
WordPress大学
WordPress大学
雷峰网
雷峰网
G
Google Developers Blog

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 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
* latex.el (LaTeX-what-macro): Improve macro recognition....
Arash Esbati · 2026-09-12 · via elpa/gnu.git, branch externals/auctex
authorArash Esbati <arash@gnu.org>2026-09-11 22:56:10 +0200
committerArash Esbati <arash@gnu.org>2026-09-11 22:56:10 +0200
commitf91429c7c54206c1347db3f08feb572942e0a712 (patch)
tree921b514a7a732ab2ef73247cfa8bba9545c59c7b
parent7a460dcfbfcab9e1dbe862f090df5fb708b84c8e (diff)

* latex.el (LaTeX-what-macro): Improve macro recognition.externals/auctex

-rw-r--r--latex.el12

1 files changed, 11 insertions, 1 deletions

diff --git a/latex.el b/latex.el
index 460bf936c0d..c5b0a022a9f 100644
--- a/latex.el
+++ b/latex.el

@@ -7750,7 +7750,17 @@ this point. If nil, limit to the previous 15 lines."

;; (setq env-or-mac-start (point))

(when (and (memql (following-char) ;; '(?\[ ?\{ ?\( ?<)

(LaTeX-completion-macro-delimiters 'open))

- (re-search-backward "\\\\[*+a-zA-Z]+\\=" nil t))

+ ;; Deal with spaces between macro name and argument

+ ;; in `docTeX-mode':

+ (when (derived-mode-p 'docTeX-mode)

+ (skip-chars-backward "[ ]"))

+ (re-search-backward (concat (regexp-quote TeX-esc)

+ "["

+ "-*+a-zA-Z@"

+ (when (derived-mode-p 'docTeX-mode)

+ ":_")

+ "]+\\=")

+ nil t))

(setq cmd (TeX-match-buffer 0))

(when (looking-at "\\\\begin{\\([^}]+\\)}")

(setq cmd (TeX-match-buffer 1))