[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex 1e59481512 18/23: Improve interaction between fa
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex 1e59481512 18/23: Improve interaction between fancyvrb.el and fvextra.el |
Date: |
Thu, 20 Oct 2022 14:53:24 -0400 (EDT) |
branch: externals/auctex
commit 1e59481512cacefeb59f26e06d6b11025e870691
Author: Arash Esbati <arash@gnu.org>
Commit: Arash Esbati <arash@gnu.org>
Improve interaction between fancyvrb.el and fvextra.el
* style/fancyvrb.el ("fancyvrb"): Check if the fvextra package is
loaded which allows \Verb and \SaveVerb macros to take the
mandatory argument in braces.
Add starred version of \Verb and \UseVerb macros.
Adjust fontification entry for \UseVerb.
---
style/fancyvrb.el | 29 +++++++++++++++++++++--------
1 file changed, 21 insertions(+), 8 deletions(-)
diff --git a/style/fancyvrb.el b/style/fancyvrb.el
index 22e52c269f..a9ea0a44bf 100644
--- a/style/fancyvrb.el
+++ b/style/fancyvrb.el
@@ -1,6 +1,6 @@
-;;; fancyvrb.el --- AUCTeX style for `fancyvrb.sty' version 3.6. -*-
lexical-binding: t; -*-
+;;; fancyvrb.el --- AUCTeX style for `fancyvrb.sty' version 4.5. -*-
lexical-binding: t; -*-
-;; Copyright (C) 2013, 2014, 2016-2021 Free Software Foundation, Inc.
+;; Copyright (C) 2013, 2014, 2016-2022 Free Software Foundation, Inc.
;; Maintainer: auctex-devel@gnu.org
;; Author: Mosè Giordano <mose@gnu.org>
@@ -25,7 +25,7 @@
;;; Commentary:
-;; This file adds support for `fancyvrb.sty' version 3.6.
+;; This file adds support for `fancyvrb.sty' version 4.5.
;; This style has some capabilities to parse user defined macros,
;; environments and saved blocks with `SaveVerbatim' environments and
@@ -571,9 +571,15 @@ ENV is the name of current environment as a string."
;; Verbatim material in footnotes
"VerbatimFootnotes"
;; Improved verbatim commands
- '("Verb" [TeX-arg-key-val (LaTeX-fancyvrb-key-val-options)] TeX-arg-verb)
- ;; \Verb also has a starred version:
- '("Verb*" [TeX-arg-key-val (LaTeX-fancyvrb-key-val-options)] TeX-arg-verb)
+ '("Verb" [TeX-arg-key-val (LaTeX-fancyvrb-key-val-options)]
+ (TeX-arg-conditional (member "fvextra" (TeX-style-list))
+ (TeX-arg-verb-delim-or-brace)
+ (TeX-arg-verb)))
+ ;; \Verb also has a starred version
+ '("Verb*" [TeX-arg-key-val (LaTeX-fancyvrb-key-val-options)]
+ (TeX-arg-conditional (member "fvextra" (TeX-style-list))
+ (TeX-arg-verb-delim-or-brace)
+ (TeX-arg-verb)))
'("DefineShortVerb" (TeX-arg-eval
TeX-read-string
(TeX-argument-prompt nil nil "Character")
@@ -618,11 +624,18 @@ ENV is the name of current environment as a string."
(TeX-argument-prompt nil nil "Save name"))))
(LaTeX-add-fancyvrb-saveverbs name)
(format "%s" name))))
- TeX-arg-verb)
+ (TeX-arg-conditional (member "fvextra" (TeX-style-list))
+ (TeX-arg-verb-delim-or-brace)
+ (TeX-arg-verb)))
'("UseVerb" (TeX-arg-eval
completing-read
(TeX-argument-prompt nil nil "Saved name")
(LaTeX-fancyvrb-saveverb-list)))
+ ;; \UseVerb also has a starred version
+ '("UseVerb*" (TeX-arg-eval
+ completing-read
+ (TeX-argument-prompt nil nil "Saved name")
+ (LaTeX-fancyvrb-saveverb-list)))
'("UseVerbatim" (TeX-arg-eval completing-read
(TeX-argument-prompt nil nil "Saved name")
(LaTeX-fancyvrb-saveverbatim-list)))
@@ -758,7 +771,7 @@ ENV is the name of current environment as a string."
'reference)
(font-latex-add-keywords '(("Verb" "*[") ; The second argument is
verbatim.
("SaveVerb" "[{")
- ("UseVerb" "{")
+ ("UseVerb" "*{")
("UseVerbatim" "{")
("LUseVerbatim" "{")
("BUseVerbatim" "{"))
- [elpa] externals/auctex 10dbae9ab1 08/23: Add support for catchfilebetweentags package, (continued)
- [elpa] externals/auctex 10dbae9ab1 08/23: Add support for catchfilebetweentags package, Tassilo Horn, 2022/10/20
- [elpa] externals/auctex 567458f54f 07/23: Silence byte-compiler., Tassilo Horn, 2022/10/20
- [elpa] externals/auctex 6b5f00bfac 01/23: Unquote lambdas in font-latex.el & tex-bar.el; add some FIXMEs, Tassilo Horn, 2022/10/20
- [elpa] externals/auctex 99470f080d 06/23: Close over list-strings from outer scope., Tassilo Horn, 2022/10/20
- [elpa] externals/auctex d22387d0d2 23/23: Merge remote-tracking branch 'origin/master' into externals/auctex, Tassilo Horn, 2022/10/20
- [elpa] externals/auctex 4a843073c5 22/23: Don't use `eval' on code, Tassilo Horn, 2022/10/20
- [elpa] externals/auctex 1e2e097106 12/23: * style/l3doc.el ("l3doc"): Fix entry for the "env" macro., Tassilo Horn, 2022/10/20
- [elpa] externals/auctex 9fc41106dc 17/23: Add new style/parskip.el, Tassilo Horn, 2022/10/20
- [elpa] externals/auctex 4c26ef9b0b 21/23: ; Delete ineffective string escapes, Tassilo Horn, 2022/10/20
- [elpa] externals/auctex 07a8a3cf98 13/23: ; Use `TeX-dialect' in style/tcolorboxlib-theorems.el, Tassilo Horn, 2022/10/20
- [elpa] externals/auctex 1e59481512 18/23: Improve interaction between fancyvrb.el and fvextra.el,
Tassilo Horn <=
- [elpa] externals/auctex ae2922ce76 14/23: Update style/amsart.el, Tassilo Horn, 2022/10/20
- [elpa] externals/auctex b302fdce1d 20/23: Add missing argument for `TeX-argument-prompt', Tassilo Horn, 2022/10/20
- [elpa] externals/auctex 4004dc6b8f 09/23: Simplify the function `LaTeX-array-update-column-letters', Tassilo Horn, 2022/10/20
- [elpa] externals/auctex e2ce8ae4db 19/23: Improve style/fvextra.el, Tassilo Horn, 2022/10/20
- [elpa] externals/auctex d58f4fdd7e 05/23: Don't use RESULT arg of dolist., Tassilo Horn, 2022/10/20