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

推荐订阅源

阮一峰的网络日志
阮一峰的网络日志
博客园 - 司徒正美
D
DataBreaches.Net
宝玉的分享
宝玉的分享
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - 【当耐特】
人人都是产品经理
人人都是产品经理
博客园 - Franky
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
IT之家
IT之家
博客园 - 三生石上(FineUI控件)
J
Java Code Geeks
腾讯CDC
博客园_首页
The Cloudflare Blog
S
SegmentFault 最新的问题
C
Check Point Blog
美团技术团队
爱范儿
爱范儿
大猫的无限游戏
大猫的无限游戏
Hugging Face - Blog
Hugging Face - Blog
T
The Blog of Author Tim Ferriss
A
About on SuperTechFans
Blog — PlanetScale
Blog — PlanetScale

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
Improve matching of header end/trailer start in ConTeXt -...
2026-04-01 · via elpa/gnu.git, branch externals/auctex
authorArash Esbati <arash@gnu.org>2026-03-31 21:13:33 +0200
committerArash Esbati <arash@gnu.org>2026-03-31 21:13:33 +0200
commit4dc9c8cc1d3672479665923bd0ae807839d3a64c (patch)
treebf5a006e3df7625cbed1aeb04bf20396516aeb3f
parentf0f80f5bfd678fbd58cfeb8e8db472e442b69522 (diff)

Improve matching of header end/trailer start in ConTeXt

* context.el (ConTeXt-header-end): Add other macro names marking the header end. Add regexp to match additional arguments. (ConTeXt-trailer-start): Add other macro names marking the trailer start. Issue reported by Jim Diamond <zlists+auctex@jdvb.ca>: https://lists.gnu.org/archive/html/auctex/2026-03/msg00010.html

-rw-r--r--context.el10

1 files changed, 7 insertions, 3 deletions

diff --git a/context.el b/context.el
index 64f1179a182..a154bbccdad 100644
--- a/context.el
+++ b/context.el

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

;;; context.el --- Support for ConTeXt documents. -*- lexical-binding: t; -*-

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

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

;; Author: Patrick Gundlach <pg@levana.de>

;; Berend de Boer <berend@pobox.com>

@@ -1257,14 +1257,18 @@ header is at the start of a line."

(concat

(regexp-quote TeX-esc)

(ConTeXt-environment-start-name)

- ConTeXt-text))

+ (regexp-opt `( ,ConTeXt-text "component" "document" "MPpage"

+ "product" "TEXpage"))

+ ;; Allow one level of argument inside braces

+ "\\(?:[ \t]*\\(?:\\[[^][]*?\\(?:{[^}{]*}[^][]*\\)*\\]\\)?\\|.*$\\)"))

(defun ConTeXt-trailer-start ()

"Default start of trailer marker for ConTeXt documents."

(concat

(regexp-quote TeX-esc)

(ConTeXt-environment-stop-name)

- ConTeXt-text))

+ (regexp-opt `( ,ConTeXt-text "component" "document" "MPpage"

+ "product" "TEXpage"))))

(defun ConTeXt-outline-offset ()

"Offset to add to `ConTeXt-section-list' levels to get outline level."