[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex afd2691e56 19/24: Update style/ltxdoc.el to clas
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex afd2691e56 19/24: Update style/ltxdoc.el to class version 2.1d |
Date: |
Mon, 21 Feb 2022 02:38:47 -0500 (EST) |
branch: externals/auctex
commit afd2691e569ea523383bdcb6ceb43ec4e24f1cca
Author: Arash Esbati <arash@gnu.org>
Commit: Arash Esbati <arash@gnu.org>
Update style/ltxdoc.el to class version 2.1d
* style/ltxdoc.el ("ltxdoc"): Add '|' to `LaTeX-shortvrb-chars'
before running the 'shortvrb' style hook. Add missing symbols to
the style hook incl. fontification.
(LaTeX-ltxdoc-class-options): New variable.
* tex-ispell.el (TeX-ispell-skip-cmds-list): Add one entry "cs".
---
style/ltxdoc.el | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++++----
tex-ispell.el | 3 +++
2 files changed, 63 insertions(+), 4 deletions(-)
diff --git a/style/ltxdoc.el b/style/ltxdoc.el
index 8c8bbc59f6..16c26e1f39 100644
--- a/style/ltxdoc.el
+++ b/style/ltxdoc.el
@@ -1,6 +1,6 @@
;;; ltxdoc.el --- AUCTeX style for `ltxdoc.cls' -*- lexical-binding: t; -*-
-;; Copyright (C) 2004, 2020 Free Software Foundation, Inc.
+;; Copyright (C) 2004--2022 Free Software Foundation, Inc.
;; Author: Frank Küster <frank@kuesterei.ch>
;; Maintainer: auctex-devel@gnu.org
@@ -25,19 +25,75 @@
;;; Commentary:
-;; This file adds support for `ltxdoc.cls'.
+;; This file adds support for `ltxdoc.cls' v2.1d, dated 2021/12/07.
;;; Code:
(require 'tex)
+;; Silence the compiler:
+(declare-function font-latex-add-keywords
+ "font-latex"
+ (keywords class))
+(defvar LaTeX-article-class-options)
+
(TeX-add-style-hook
"ltxdoc"
(lambda ()
- (TeX-run-style-hooks "doc")
- (TeX-run-style-hooks "ltx-base"))
+
+ ;; ltxdoc.cls loads shortvrb.sty and sets '|' as a shorthand. We
+ ;; append it to a local version of `LaTeX-shortvrb-chars' before
+ ;; running the style hook for 'shortvrb' which is done inside
+ ;; 'doc.el':
+ (add-to-list (make-local-variable 'LaTeX-shortvrb-chars) ?| t)
+
+ (TeX-run-style-hooks "doc" "ltx-base" "article")
+
+ (TeX-add-symbols
+ '("cmd" TeX-arg-macro)
+ '("cs" (TeX-arg-eval completing-read
+ (TeX-argument-prompt nil nil "Macro")
+ (TeX-symbol-list)))
+ '("marg" "Mandatory argument")
+ '("oarg" "Optional argument")
+ '("parg" "Picture mode argument")
+
+ '("DocInclude"
+ (TeX-arg-eval
+ (lambda ()
+ (let ((file (file-relative-name
+ (read-file-name
+ "File to include: " nil nil nil nil
+ (lambda (x)
+ (or (file-directory-p x)
+ (string-match "\\.\\(fdd\\|dtx\\)\\'" x))))
+ (TeX-master-directory))))
+ (format "%s" file))))))
+
+ ;; Fontification
+ (when (and (featurep 'font-latex)
+ (eq TeX-install-font-lock 'font-latex-setup))
+ (font-latex-add-keywords '(("cmd" "{")
+ ("cs" "{")
+ ("marg" "{")
+ ("oarg" "{")
+ ("parg" "{"))
+ 'textual)
+ (font-latex-add-keywords '("DocInclude" "{")
+ 'reference)))
TeX-dialect)
+(defvar LaTeX-ltxdoc-class-options
+ (progn
+ (TeX-load-style "article")
+ (append (remove "a5paper" LaTeX-article-class-options)
+ '("nocfg")))
+ "Class options for the ltxdoc class.
+All options are passed to article class, \"a5paper\" is disabled
+by ltxdoc. Therefore it is also removed here.")
+
;; Local Variables:
;; coding: utf-8
;; End:
+
+;;; ltxdoc.el ends here
diff --git a/tex-ispell.el b/tex-ispell.el
index 5becea3c65..ed1ca38337 100644
--- a/tex-ispell.el
+++ b/tex-ispell.el
@@ -56,6 +56,7 @@
;; fontspec.sty
;; hyperref.sty
;; listings.sty
+;; ltxdoc.cls
;; ltxtable.sty
;; mdframed.sty
;; minted.sty
@@ -189,6 +190,8 @@
;; listings.sty
("lstinputlisting" . 1)
("lstset" . 1)
+ ;; ltxdoc.cls
+ ("cs" . 1)
;; ltxtable.sty
("LTXtable" . 2)
;; mdframed.sty
- [elpa] externals/auctex updated (a24ec9d7cb -> 484df614d8), Tassilo Horn, 2022/02/21
- [elpa] externals/auctex 0a2d9be447 01/24: ; Fix some documentations, Tassilo Horn, 2022/02/21
- [elpa] externals/auctex efb39c16c0 15/24: Add NEWS item, Tassilo Horn, 2022/02/21
- [elpa] externals/auctex bf03300296 09/24: Add M-RET support for smallmatrix variants, Tassilo Horn, 2022/02/21
- [elpa] externals/auctex 3cd7a352d3 07/24: Add support for indent for environments with alignment, Tassilo Horn, 2022/02/21
- [elpa] externals/auctex ddb0f08ff1 10/24: Add default entries to LaTeX-indent-environment-list (bug#28405), Tassilo Horn, 2022/02/21
- [elpa] externals/auctex afd2691e56 19/24: Update style/ltxdoc.el to class version 2.1d,
Tassilo Horn <=
- [elpa] externals/auctex 4ad82777c0 08/24: Add new test for indent, Tassilo Horn, 2022/02/21
- [elpa] externals/auctex 9073b5e117 03/24: * tex-ispell.el: Skip the arguments of stabular*? environments., Tassilo Horn, 2022/02/21
- [elpa] externals/auctex b89b8cdd44 18/24: Update footmisc package options to v6.0b, Tassilo Horn, 2022/02/21
- [elpa] externals/auctex 0744b687b3 02/24: Add macros to skip from caption package, Tassilo Horn, 2022/02/21
- [elpa] externals/auctex 497847f193 16/24: Update footmisc package options to v6.0a, Tassilo Horn, 2022/02/21
- [elpa] externals/auctex a3282bbe06 12/24: Adjust entries for completion, Tassilo Horn, 2022/02/21
- [elpa] externals/auctex 8eb3cccba9 20/24: ; Re-prepare for upcoming release, Tassilo Horn, 2022/02/21
- [elpa] externals/auctex c8a176ca7c 22/24: ; Release_13.1, Tassilo Horn, 2022/02/21
- [elpa] externals/auctex 36a6d80e1b 11/24: Improve query for opt. arguments of \parbox and minipage, Tassilo Horn, 2022/02/21
- [elpa] externals/auctex da5bb8e28d 05/24: Re-run LaTeX when .toc|lof|lot is missing, Tassilo Horn, 2022/02/21