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

推荐订阅源

有赞技术团队
有赞技术团队
Martin Fowler
Martin Fowler
N
Netflix TechBlog - Medium
WordPress大学
WordPress大学
罗磊的独立博客
H
Help Net Security
MongoDB | Blog
MongoDB | Blog
A
About on SuperTechFans
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
D
Docker
云风的 BLOG
云风的 BLOG
Microsoft Security Blog
Microsoft Security Blog
Blog — PlanetScale
Blog — PlanetScale
P
Proofpoint News Feed
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
I
InfoQ
J
Java Code Geeks
博客园 - 聂微东
大猫的无限游戏
大猫的无限游戏
Engineering at Meta
Engineering at Meta
美团技术团队
小众软件
小众软件
Stack Overflow Blog
Stack Overflow Blog
C
Check Point 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 * 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
Change default value of `ConTeXt-Mark-version' - elpa/gnu...
Arash Esbati · 2026-07-27 · via elpa/gnu.git, branch externals/auctex

* context.el (ConTeXt-Mark-version): Change default to "LMTX" and cater for other alternatives. (ConTeXt-expand-command, ConTeXt-expand-options): Adjust accordingly for the new value list. Use `pcase' instead of `cond' which is more concise. * tex.el (TeX-TeX-sentinel-check): Consider "LMTX" as well. * NEWS.org (Changed): Announce the change.

diff --git a/NEWS.org b/NEWS.org
index 0e41bf267a7..394ecaa7c79 100644
--- a/NEWS.org
+++ b/NEWS.org

@@ -27,6 +27,9 @@

#+begin_src emacs-lisp

(luatex "LuaTeX" "luatex" "lualatex --jobname=%(s-filename-only)" "luatex")

#+end_src

+- Change default value of ~ConTeXt-Mark-version~ to =LMTX= which is the

+ current ConTeXt version. Internally, there is no difference for LMTX

+ and Mark IV behavior.

** Fixed

diff --git a/context.el b/context.el
index a154bbccdad..555d5ea04ce 100644
--- a/context.el
+++ b/context.el

@@ -489,12 +489,15 @@ in your init file such as .emacs.d/init.el or .emacs."

ConTeXt-section-section))

;; Define before first use.

-(defcustom ConTeXt-Mark-version "II"

+(defcustom ConTeXt-Mark-version "LMTX"

"ConTeXt Mark version used for running ConTeXt."

- :type 'string

:group 'TeX-command

- :safe #'stringp

- :local t)

+ :type '(radio (string :tag "LMTX" "LMTX")

+ (string :tag "Mark IV" "IV")

+ (string :tag "Mark II" "II"))

+ :safe (lambda (x) (member x '("II" "IV" "LMTX")))

+ :local t

+ :package-version '(auctex . "14.2.0"))

(defun ConTeXt-numbered-section-heading ()

"Hook to prompt for ConTeXt section name.

@@ -1843,43 +1846,40 @@ else. There might be text before point."

(defun ConTeXt-expand-command ()

"Expand ConTeXt command.

Use `ConTeXt-Mark-version' to choose the command."

- (cond

- ((string= ConTeXt-Mark-version "IV")

- "context")

- ;; In any other case fall back on Mark II.

- (t

- "texexec")))

+ (pcase ConTeXt-Mark-version

+ ((or "IV" "LMTX") "context")

+ ;; In any other case fall back on Mark II.

+ (_ "texexec")))

(defun ConTeXt-expand-options ()

"Expand options for context command."

- (cond

- ;; Mark IV

- ((string= ConTeXt-Mark-version "IV")

- (concat

- (if TeX-source-correlate-mode

- "--synctex=repeat ")

- ;; Omit nonstop option when we set synctex option. According to

- ;; Jim <zlists+context@jdvb.ca> in bug#70399 report,

- ;; "if context is called with "--nonstopmode" (or "--nonstop")

- ;; the "--synctex=..." request to create a synctex file is

- ;; over-ridden."

- (unless (or TeX-interactive-mode TeX-source-correlate-mode)

- ConTeXt-texexec-option-nonstop)))

- ;; In any other case fall back on Mark II.

- (t

- (concat

- (let ((engine (eval (nth 4 (TeX-engine-in-engine-alist TeX-engine)) t)))

- (when engine

- (format "--engine=%s " engine)))

- (unless (string= ConTeXt-current-interface "en")

- (format "--interface=%s " ConTeXt-current-interface))

- (when TeX-source-correlate-mode

- (format "--passon=\"%s\" "

- (if (eq (TeX-source-correlate-method-active) 'synctex)

- TeX-synctex-tex-flags

- TeX-source-specials-tex-flags)))

- (unless TeX-interactive-mode

- ConTeXt-texexec-option-nonstop)))))

+ (pcase ConTeXt-Mark-version

+ ;; Mark IV or LMTX

+ ((or "IV" "LMTX")

+ (concat

+ (if TeX-source-correlate-mode

+ "--synctex=repeat ")

+ ;; Omit nonstop option when we set synctex option. According to

+ ;; Jim <zlists+context@jdvb.ca> in bug#70399 report,

+ ;; "if context is called with "--nonstopmode" (or "--nonstop")

+ ;; the "--synctex=..." request to create a synctex file is

+ ;; over-ridden."

+ (unless (or TeX-interactive-mode TeX-source-correlate-mode)

+ ConTeXt-texexec-option-nonstop)))

+ ;; In any other case fall back on Mark II.

+ (_ (concat

+ (let ((engine (eval (nth 4 (TeX-engine-in-engine-alist TeX-engine)) t)))

+ (when engine

+ (format "--engine=%s " engine)))

+ (unless (string= ConTeXt-current-interface "en")

+ (format "--interface=%s " ConTeXt-current-interface))

+ (when TeX-source-correlate-mode

+ (format "--passon=\"%s\" "

+ (if (eq (TeX-source-correlate-method-active) 'synctex)

+ TeX-synctex-tex-flags

+ TeX-source-specials-tex-flags)))

+ (unless TeX-interactive-mode

+ ConTeXt-texexec-option-nonstop)))))

;;; Mode

diff --git a/tex.el b/tex.el
index 545d30f95e6..9e9aa79531a 100644
--- a/tex.el
+++ b/tex.el

@@ -8588,7 +8588,7 @@ Return nil only if no errors were found."

(cond

((and (string-match "ConTeXt" name) (boundp 'ConTeXt-Mark-version)

(with-current-buffer TeX-command-buffer

- (string= ConTeXt-Mark-version "IV")))

+ (member ConTeXt-Mark-version '("IV" "LMTX"))))

(when (re-search-backward " > result saved in file: \\(.*?\\), " nil t)

(let ((output-file (TeX-match-buffer 1)))

;; Shave off quotation marks if present.