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

推荐订阅源

D
DataBreaches.Net
T
Threatpost
N
News and Events Feed by Topic
PCI Perspectives
PCI Perspectives
V2EX - 技术
V2EX - 技术
D
Docker
G
Google Developers Blog
Microsoft Security Blog
Microsoft Security Blog
N
News and Events Feed by Topic
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Google Online Security Blog
Google Online Security Blog
The GitHub Blog
The GitHub Blog
Hacker News - Newest:
Hacker News - Newest: "LLM"
Y
Y Combinator Blog
M
MIT News - Artificial intelligence
Blog — PlanetScale
Blog — PlanetScale
博客园 - 司徒正美
T
Troy Hunt's Blog
Webroot Blog
Webroot Blog
Security Archives - TechRepublic
Security Archives - TechRepublic
量子位
Apple Machine Learning Research
Apple Machine Learning Research
H
Help Net Security
F
Full Disclosure
B
Blog
O
OpenAI News
H
Hackread – Cybersecurity News, Data Breaches, AI and More
博客园_首页
Google DeepMind News
Google DeepMind News
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Engineering at Meta
Engineering at Meta
大猫的无限游戏
大猫的无限游戏
Forbes - Security
Forbes - Security
Know Your Adversary
Know Your Adversary
B
Blog RSS Feed
MongoDB | Blog
MongoDB | Blog
Scott Helme
Scott Helme
T
The Exploit Database - CXSecurity.com
博客园 - 聂微东
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
The Last Watchdog
The Last Watchdog
Recorded Future
Recorded Future
IT之家
IT之家
Project Zero
Project Zero
Stack Overflow Blog
Stack Overflow Blog
小众软件
小众软件
Attack and Defense Labs
Attack and Defense Labs
L
Lohrmann on Cybersecurity
SecWiki News
SecWiki News
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com

elpa/gnu.git, branch externals/auctex

elpa/gnu.git - GNU ELPA elpa/gnu.git - GNU ELPA ; Fix description about `LaTeX-expl3-syntax-table' - elpa/gnu.git Delete compat function `TeX-always' - elpa/gnu.git Fix fontification of verb macros followed by space - elpa/gnu.git elpa/gnu.git - GNU ELPA elpa/gnu.git - GNU ELPA Add new style/lineno.el - elpa/gnu.git Record workaround for autonum previews - elpa/gnu.git elpa/gnu.git - GNU ELPA Update style/eso-pic.el to package v3.0e ; * style/contract.el ("contract"): Speed up the additions. - elpa/gnu.git ; * style/contract.el ("contract"): Speed up the additions. ; * doc/faq.texi: Provide a more accessible Lisp form. (Bug#81034) - elpa/gnu.git ; * doc/faq.texi: Provide a more accessible Lisp form. (Bug#81034) ; * style/expl3.el (TeX-arg-expl3-macro): Fix docstring. - elpa/gnu.git ; * style/expl3.el (TeX-arg-expl3-macro): Fix docstring. Update style/simpleicons.el to package v16.17.0 - elpa/gnu.git Update style/simpleicons.el to package v16.17.0 elpa/gnu.git - GNU ELPA * style/contract.el ("contract"): Fix usage of \refParN. Improve matching of header end/trailer start in ConTeXt - elpa/gnu.git Improve matching of header end/trailer start in ConTeXt elpa/gnu.git - GNU ELPA Improve style/standalone.el elpa/gnu.git - GNU ELPA Update style/lua-unicode-math.el to package v0.8 * style/babel-german.el ("babel-german"): Add missing macros. - elpa/gnu.git Update style/simpleicons.el to package v16.12.0 - elpa/gnu.git elpa/gnu.git - GNU ELPA elpa/gnu.git - GNU ELPA elpa/gnu.git - GNU ELPA elpa/gnu.git - GNU ELPA Add compatibility shim for obsolete preview option
Update style/babel.el to package v26.4 - elpa/gnu.git
2026-03-25 · via elpa/gnu.git, branch externals/auctex

* style/babel.el (LaTeX-babel-babelprovide-key-val-options): Update key-values. ("babel"): Rearrange macros according to current babel manual. Add missing macros and environments incl. fontification. (LaTeX-babel-package-options-list): Update options.

diff --git a/style/babel.el b/style/babel.el
index 2561317e474..f33c3c6d041 100644
--- a/style/babel.el
+++ b/style/babel.el

@@ -1,4 +1,4 @@

-;;; babel.el --- AUCTeX style for `babel.sty' version 3.88. -*- lexical-binding: t; -*-

+;;; babel.el --- AUCTeX style for `babel.sty' v26.4 -*- lexical-binding: t; -*-

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

@@ -24,7 +24,7 @@

;;; Commentary:

-;; This file adds support for `babel.sty' version 3.88 from 2023/04/18.

+;; This file adds support for `babel.sty' v26.4 from 2026-03-08.

;;; Code:

@@ -101,7 +101,14 @@

("main")

("script")

("language")

- ("mapfont")

+ ("alph")

+ ("Alph")

+ ("casing")

+ ("onchar" ("ids" "fonts" "letters"))

+ ("transforms")

+ ("interchar")

+ ("justification" ("unhyphenated" "kashida" "elongated" "padding"))

+ ("linebreaking" ("unhyphenated" "kashida" "elongated" "padding"))

("intraspace")

("intrapenalty"))

"Key=value options for `\\babelprovide' macro from `babel' package.")

@@ -249,7 +256,29 @@

;; New symbols

(TeX-add-symbols

- ;; 1.7 Basic language selectors

+ ;; 1.8. Fonts in Unicode engines

+ `("babelfont"

+ [TeX-arg-completing-read-multiple LaTeX-babel-language-list

+ "Language(s)"]

+ (TeX-arg-completing-read ("rm" "sf" "tt") "Font family")

+ [TeX-arg-key-val (LaTeX-fontspec-font-features)]

+ LaTeX-fontspec-arg-font

+ ,(lambda (_)

+ ;; Run `TeX-check-engine-add-engines' and then

+ ;; load `fontspec.el' if not already loaded and

+ ;; make sure the key-vals are up to date.

+ (unless (member "fontspec" (TeX-style-list))

+ (TeX-check-engine-add-engines 'luatex 'xetex)

+ (TeX-run-style-hooks "fontspec")

+ (LaTeX-fontspec-auto-cleanup))

+ ;; Now search back for the Font family arg:

+ (save-excursion

+ (re-search-backward "\\\\babelfont\\(?:\\[[^]]*\\]\\)?{\\([^}]+\\)}"

+ (line-beginning-position) t)

+ (LaTeX-add-babel-babelfonts (match-string-no-properties 1))

+ (LaTeX-babel-cleanup-babelfont))))

+

+ ;; 1.9 Basic language selectors

'("selectlanguage"

(TeX-arg-completing-read (LaTeX-babel-active-languages)

"Language"))

@@ -259,7 +288,8 @@

"Language")

t)

- ;; 1.9 More on selection

+ ;; 2. More on language loading and selection

+ ;; 2.1. A few tools

'("babeltags" t)

'("babelensure"

(TeX-arg-key-val

@@ -274,81 +304,166 @@

"LY1" "LV1" "LGR"))))

(TeX-arg-completing-read (LaTeX-babel-active-languages)

"Language"))

- ;; 1.10 Shorthands

- '("shorthandon" "Shorthands list")

- '("shorthandoff" "Shorthands list")

- '("shorthandoff*" "Shorthands list")

- '("useshorthands" "Character")

- '("useshorthands*" "Character")

- '("defineshorthand"

- [TeX-arg-completing-read-multiple (LaTeX-babel-active-languages)

- "Language(s)"]

+ '("AfterBabelLanguage"

+ (TeX-arg-completing-read LaTeX-babel-language-list "Language")

+ t)

+

+ ;; 2.2. Accessing language info

+ '("localename" 0)

+ '("mainlocalename" 0)

+ '("languagename" 0)

+ '("iflanguage"

+ (TeX-arg-completing-read (LaTeX-babel-active-languages)

+ "Language")

t nil)

- '("languageshorthands"

+ '("localeinfo"

+ (TeX-arg-completing-read ("name.english"

+ "tag.ini"

+ "tag.bcp47"

+ "language.tag.bcp47"

+ "tag.opentype"

+ "script.name"

+ "script.tag.bcp47"

+ "script.tag.opentype"

+ "region.tag.bcp47"

+ "variant.tag.bcp47"

+ "extension.x.tag.bcp47"

+ "extension.t.tag.bcp47"

+ "extension.u.tag.bcp47")

+ "Field"))

+ '("localeinfo*"

+ (TeX-arg-completing-read ("name.english"

+ "tag.ini"

+ "tag.bcp47"

+ "language.tag.bcp47"

+ "tag.opentype"

+ "script.name"

+ "script.tag.bcp47"

+ "script.tag.opentype"

+ "region.tag.bcp47"

+ "variant.tag.bcp47"

+ "extension.x.tag.bcp47"

+ "extension.t.tag.bcp47"

+ "extension.u.tag.bcp47")

+ "Field"))

+ '("getlocaleproperty" TeX-arg-define-macro "Locale" t)

+ '("getlocaleproperty*" TeX-arg-define-macro "Locale" t)

+ '("localeid" 0)

+ '("ShowLocaleProperties"

+ (TeX-arg-completing-read LaTeX-babel-language-list "Language"))

+ '("LocaleForEach" t)

+

+ ;; 2.6. Selection based on BCP 47 tags

+ '("babeladjust"

+ (TeX-arg-key-val (("autoload.bcp47" ("on" "off"))

+ ("autoload.bcp47.options" ("import"))

+ ("autoload.bcp47.prefix"))))

+

+ ;; 3.1. Captions

+ '("setlocalecaption"

+ (TeX-arg-completing-read (LaTeX-babel-active-languages))

+ (TeX-arg-completing-read ("preface"

+ "ref"

+ "abstract"

+ "bib"

+ "chapter"

+ "appendix"

+ "contents"

+ "listfigure"

+ "listtable"

+ "index"

+ "figure"

+ "table"

+ "part"

+ "encl"

+ "cc"

+ "headto"

+ "page"

+ "see"

+ "also"

+ "proof"

+ "glossary"))

+ "New value")

+

+ ;; 3.3. Language attributes

+ '("languageattribute"

(TeX-arg-completing-read (LaTeX-babel-active-languages)

- "Language"))

- '("babelshorthand" "Short hand")

- '("ifbabelshorthand" "Character" t nil)

- '("aliasshorthand" "Original" "Alias")

+ "Language")

+ t)

- ;; 1.12 The base option

- '("AfterBabelLanguage"

- (TeX-arg-completing-read LaTeX-babel-language-list "Language")

+ ;; 3.6. Hooks

+ '("AddBabelHook"

+ [TeX-arg-completing-read (LaTeX-babel-active-languages)

+ "Language"]

+ "Name"

+ (TeX-arg-completing-read ("adddialect"

+ "patterns"

+ "hyphenation"

+ "defaultcommands"

+ "encodedcommands"

+ "stopcommands"

+ "write"

+ "beforeextras"

+ "afterextras"

+ "stringprocess"

+ "initiateactive"

+ "afterreset"

+ "begindocument"

+ "foreign"

+ "everylanguage"

+ "loadkernel"

+ "loadpatterns"

+ "loadexceptions")

+ "Event")

t)

- ;; 1.14 Selecting fonts

- `("babelfont"

- [TeX-arg-completing-read-multiple LaTeX-babel-language-list

- "Language(s)"]

- (TeX-arg-completing-read ("rm" "sf" "tt") "Font family")

- [TeX-arg-key-val (LaTeX-fontspec-font-features)]

- LaTeX-fontspec-arg-font

- ,(lambda (_)

- ;; Run `TeX-check-engine-add-engines' and then

- ;; load `fontspec.el' if not already loaded and

- ;; make sure the key-vals are up to date.

- (unless (member "fontspec" (TeX-style-list))

- (TeX-check-engine-add-engines 'luatex 'xetex)

- (TeX-run-style-hooks "fontspec")

- (LaTeX-fontspec-auto-cleanup))

- ;; Now search back for the Font family arg:

- (save-excursion

- (re-search-backward "\\\\babelfont\\(?:\\[[^]]*\\]\\)?{\\([^}]+\\)}"

- (line-beginning-position) t)

- (LaTeX-add-babel-babelfonts (match-string-no-properties 1))

- (LaTeX-babel-cleanup-babelfont))))

+ ;; 3.7. Manage auxiliary files

+ '("BabelContentsFiles" 0)

+

+ ;; 3.8. Code based on the selector

+ '("IfBabelSelectorTF"

+ (TeX-arg-completing-read-multiple ("select"

+ "other"

+ "other*"

+ "foreign")

+ "Selectors")

+ 2)

- ;; 1.16 Creating a language

+ ;; 4. Creating a language

'("babelprovide"

[TeX-arg-key-val LaTeX-babel-babelprovide-key-val-options]

(TeX-arg-completing-read LaTeX-babel-language-list "Language"))

- ;; 1.19 Accessing language info

- '("languagename" 0)

- '("iflanguage"

- (TeX-arg-completing-read (LaTeX-babel-active-languages)

- "Language")

- t nil)

-

- ;; 1.20 Hyphenation and line breaking

- '("babelhyphen"

- (TeX-arg-completing-read ("soft" "hard" "repeat" "nobreak" "empty") "Type/Text"))

- '("babelhyphen*"

- (TeX-arg-completing-read ("soft" "hard" "repeat" "nobreak" "empty") "Type/Text"))

+ ;; 5.1. Hyphenation and line breaking - 1. Commands

'("babelhyphenation"

[TeX-arg-completing-read-multiple LaTeX-babel-language-list

"Language(s)"]

t)

- ;; 1.23 Selecting scripts

- '("ensureascii" "Text")

+ '("babelhyphen"

+ (TeX-arg-completing-read ("soft" "hard" "repeat" "nobreak" "empty") "Type/Text"))

+ '("babelhyphen*"

+ (TeX-arg-completing-read ("soft" "hard" "repeat" "nobreak" "empty") "Type/Text"))

- ;; 1.25 Language attributes

- '("languageattribute"

+ ;; 5.3. Shorthands – 1. Commands

+ '("shorthandon" "Shorthands list")

+ '("shorthandoff" "Shorthands list")

+ '("shorthandoff*" "Shorthands list")

+ '("useshorthands" "Character")

+ '("useshorthands*" "Character")

+ '("defineshorthand"

+ [TeX-arg-completing-read-multiple (LaTeX-babel-active-languages)

+ "Language(s)"]

+ t nil)

+ '("languageshorthands"

(TeX-arg-completing-read (LaTeX-babel-active-languages)

- "Language")

- t))

+ "Language"))

+ '("babelshorthand" "Short hand")

+ '("ifbabelshorthand" "Character" t nil)

+

+ ;; 5.9. Scripts

+ '("ensureascii" "Text") )

;; Don't increase indentation at various \if* macros:

(let ((exceptions '("ifbabelshorthand"

@@ -357,8 +472,14 @@

(add-to-list 'LaTeX-indent-begin-exceptions-list elt t))

(LaTeX-indent-commands-regexp-make))

- ;; New environments: 1.8 Auxiliary language selectors

+ ;; New environments:

(LaTeX-add-environments

+ ;; 1.9. Basic language selectors

+ '("selectlanguage" LaTeX-env-args

+ (TeX-arg-completing-read (LaTeX-babel-active-languages)

+ "Language"))

+

+ ;; 1.10. Auxiliary language selectors

'("otherlanguage" LaTeX-env-args

(TeX-arg-completing-read (LaTeX-babel-active-languages)

"Language"))

@@ -373,21 +494,45 @@

;; Fontification

(when (and (featurep 'font-latex)

(eq TeX-install-font-lock 'font-latex-setup))

- (font-latex-add-keywords '(("selectlanguage" "{")

+ (font-latex-add-keywords '(;; 1.8. Fonts in Unicode engines

+ ("babelfont" "[{[{")

+ ;; 1.9 Basic language selectors

+ ("selectlanguage" "{")

+ ;; 2.1. A few tools

("babeltags" "{")

("babelensure" "{{")

+ ("AfterBabelLanguage" "{")

+ ;; 2.2. Accessing language info

+ ("languagename" "")

+ ("iflanguage" "{{{")

+ ("localeinfo" "*{")

+ ("getlocaleproperty" "*|{\\{{")

+ ("localeid" "*{")

+ ("ShowLocaleProperties" "{")

+ ("LocaleForEach" "")

+ ;; 2.6. Selection based on BCP 47 tags

+ ("babeladjust" "{")

+ ;; 3.1. Captions

+ ("setlocalecaption" "{{{")

+ ;; 3.3. Language attributes

+ ("languageattribute" "{")

+ ;; 3.6. Hooks

+ ("AddBabelHook" "[{{")

+ ;; 3.7. Manage auxiliary files

+ ("BabelContentsFiles" "")

+ ;; 3.8. Code based on the selector

+ ("IfBabelSelectorTF" "{")

+ ;; 4. Creating a language

+ ("babelprovide" "[{")

+ ("babelhyphenation" "[{")

+ ("babelhyphen" "*{")

+ ;; 5.3. Shorthands – 1. Commands

("shorthandon" "{")

("shorthandoff" "*{")

("useshorthands" "*{")

("languageshorthands" "{")

("babelshorthand" "{")

- ("AfterBabelLanguage" "{")

- ("babelfont" "[{[{")

- ("babelprovide" "[{")

- ("languagename" "")

- ("iflanguage" "{{{")

- ("babelhyphen" "*{")

- ("babelhyphenation" "[{")

+ ;; 5.9. Scripts

("ensureascii" "{"))

'function)

(font-latex-add-keywords '(("defineshorthand" "[{{")

@@ -402,24 +547,13 @@

(progn

(TeX-load-style "fontenc")

(append

+ ;; 2.3. Package options

`(("KeepShorthandsActive")

- ("activeacute")

- ("activegrave")

- ("shorthands" ("off"))

- ("safe" ("none" "ref" "bib"))

- ("math" ("active" "normal"))

- ("config")

- ("main" ,LaTeX-babel-language-list)

("headfoot" ,LaTeX-babel-language-list)

("noconfigs")

- ("nocase")

- ("silent")

+ ("config")

("showlanguages")

- ("nocase")

("silent")

- ("strings" ,(append

- LaTeX-fontenc-package-options

- '("generic" "unicode" "encoded")))

("hyphenmap" ("off" "first" "select"

"other" "other*"))

("bidi" ("default" "basic" "basic-r"

@@ -427,10 +561,21 @@

("layout" ("sectioning" "counters" "lists"

"contents" "footnotes" "captions"

"columns" "graphics" "extras"))

- ("provide" ("*"))

- ("provide+" ("*"))

- ("provide*" ("*"))

- ("base"))

+ ("provide" ("*" "!"))

+ ("provide+" ("*" "!"))

+ ("provide*" ("*" "!"))

+ ("main" ,LaTeX-babel-language-list)

+ ;; 2.4. The baseoption

+ ("base")

+ ;; 5.4. Shorthands - 2. Package options

+ ("activeacute")

+ ("activegrave")

+ ("shorthands" ("off"))

+ ("safe" ("none" "ref" "bib"))

+ ("math" ("active" "normal"))

+ ("strings" ,(append

+ LaTeX-fontenc-package-options

+ '("generic" "unicode" "encoded"))))

(mapcar #'list LaTeX-babel-language-list)))

"Package options for the babel package.")