branch: externals/auctex commit b24dcb4feb823329b79578ae6feb44b88775a4b2 Author: Arash Esbati <ar...@gnu.org> Commit: Arash Esbati <ar...@gnu.org>
Track changes in LaTeX kernel 2022-06-01 * font-latex.el (font-latex-built-in-keyword-classes): Add entry for the top level macro \NewMarkClass. * latex.el (TeX-read-hook): Query for "insertmark" hook. (LaTeX-common-initialization): Support macros for the new mark mechanism and floating point and integer calculations. * style/ltxdoc.el (LaTeX-ltxdoc-class-options): Add "doc2". * style/xparse.el ("xparse"): Add "IfBlank*" series of tests. --- font-latex.el | 1 + latex.el | 46 ++++++++++++++++++++++++++++++++++++++++++++-- style/ltxdoc.el | 2 +- style/xparse.el | 5 ++++- 4 files changed, 50 insertions(+), 4 deletions(-) diff --git a/font-latex.el b/font-latex.el index 385be3589a..92b6047a7b 100644 --- a/font-latex.el +++ b/font-latex.el @@ -365,6 +365,7 @@ variable `font-latex-fontify-sectioning'." ',num) ("labelformat" "{{") ("linespread" "{") ("AddToHook" "{[{") ("RemoveFromHook" "{[") ("AddToHookNext" "{{") ("ProvidesClass" "{[") ("ProvidesPackage" "{[") ("ProvidesFile" "{[") + ("NewMarkClass" "{") ;; XXX: Should macros without arguments rather be listed in a ;; separate category with 'noarg instead of 'command handling? ("enspace" "") ("enskip" "") ("quad" "") ("qquad" "") ("nonumber" "") diff --git a/latex.el b/latex.el index 88f2303354..92ae9680a8 100644 --- a/latex.el +++ b/latex.el @@ -3386,7 +3386,9 @@ INHERIT-INPUT-METHOD are passed to ;; From ltshipout-doc.pdf "shipout" ;; From ltpara-doc.pdf - "para"))) + "para" + ;; From ltmarks-doc.pdf + "insertmark"))) (place (lambda (&optional opt pr) (completing-read (TeX-argument-prompt opt pr "Where") @@ -7927,7 +7929,47 @@ function would return non-nil and `(match-string 1)' would return (TeX-argument-prompt t nil "Format") '("\\arabic" "\\roman" "\\Roman" "\\alph" "\\Alph")] (TeX-arg-counter) - (TeX-arg-counter "Within counter")))) + (TeX-arg-counter "Within counter")) + + ;; Added in LaTeX 2022-06-01 + '("NewMarkClass" "Class") + '("InsertMark" "Class" t) + '("TopMark" + [TeX-arg-completing-read ("page" "previous-page" + "column" "previous-column" + "first-column" "last-column") + "Region"] + (TeX-arg-completing-read ("2e-left" "2e-right" "2e-right-nonempty") + "Class")) + '("FirstMark" + [TeX-arg-completing-read ("page" "previous-page" + "column" "previous-column" + "first-column" "last-column") + "Region"] + (TeX-arg-completing-read ("2e-left" "2e-right" "2e-right-nonempty") + "Class")) + '("LastMark" + [TeX-arg-completing-read ("page" "previous-page" + "column" "previous-column" + "first-column" "last-column") + "Region"] + (TeX-arg-completing-read ("2e-left" "2e-right" "2e-right-nonempty") + "Class")) + '("IfMarksEqualTF" + [TeX-arg-completing-read ("page" "previous-page" + "column" "previous-column" + "first-column" "last-column") + "Region"] + (TeX-arg-completing-read ("2e-left" "2e-right" "2e-right-nonempty") + "Class") + (TeX-arg-completing-read ("top" "first" "last") + "Position 1") + (TeX-arg-completing-read ("top" "first" "last") + "Position 2") + 2) + '("fpeval" t) + '("dimeval" t) + '("skipeval" t) )) (TeX-run-style-hooks "LATEX") diff --git a/style/ltxdoc.el b/style/ltxdoc.el index 16c26e1f39..feeb300d34 100644 --- a/style/ltxdoc.el +++ b/style/ltxdoc.el @@ -87,7 +87,7 @@ (progn (TeX-load-style "article") (append (remove "a5paper" LaTeX-article-class-options) - '("nocfg"))) + '("nocfg" "doc2"))) "Class options for the ltxdoc class. All options are passed to article class, \"a5paper\" is disabled by ltxdoc. Therefore it is also removed here.") diff --git a/style/xparse.el b/style/xparse.el index fd9bb328b0..b2a2fb051b 100644 --- a/style/xparse.el +++ b/style/xparse.el @@ -1,6 +1,6 @@ ;;; xparse.el --- AUCTeX style for `xparse.sty' version 2020-03-06 -*- lexical-binding: t; -*- -;; Copyright (C) 2013, 2020, 2021 Free Software Foundation, Inc. +;; Copyright (C) 2013, 2020--2022 Free Software Foundation, Inc. ;; Maintainer: auctex-devel@gnu.org ;; Author: Mosè Giordano <m...@gnu.org> @@ -311,6 +311,9 @@ TYPE is one of the symbols mac or env." '("IfValueTF" 3) '("IfValueT" 2) '("IfValueF" 2) + '("IfBlankTF" 3) + '("IfBlankT" 2) + '("IfBlankF" 2) "BooleanTrue" "BooleanFalse" ;; Argument processors