Hi Jim,

Jim <[email protected]> writes:

> On Tue, Mar 24, 2026 at 01:22 (+0900), Ikumi Keita wrote:
>
>> Maybe we should consider to add such delemiters to `TeX-header-end'
>> in ConTeXt mode.
>
> That is probably a good idea.  I took a very quick look at the code
> right now, and while someone more familiar with the code base might
> see how to do that immediately, for me it will be another research
> project. ;-)

I'm totally ignorant about how ConTeXt works, but does this change works
for you?

--8<---------------cut here---------------start------------->8---
diff --git a/context.el b/context.el
index 64f1179a..983ce70d 100644
--- a/context.el
+++ b/context.el
@@ -1257,7 +1257,7 @@ header is at the start of a line."
   (concat
    (regexp-quote TeX-esc)
    (ConTeXt-environment-start-name)
-   ConTeXt-text))
+   (regexp-opt `(,ConTeXt-text "TEXpage" "component"))))

 (defun ConTeXt-trailer-start ()
   "Default start of trailer marker for ConTeXt documents."
--8<---------------cut here---------------end--------------->8---

Best, Arash

Reply via email to