[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex 87e8cb0369 05/39: Simplify implementation of sty
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex 87e8cb0369 05/39: Simplify implementation of style/pythontex.el |
Date: |
Thu, 20 Jul 2023 04:21:48 -0400 (EDT) |
branch: externals/auctex
commit 87e8cb03696e6dfac20d79677a07f818f5ef96e4
Author: Arash Esbati <arash@gnu.org>
Commit: Arash Esbati <arash@gnu.org>
Simplify implementation of style/pythontex.el
* style/pythontex.el (LaTeX-env-pythontex): Delete function and
move the functionality into the hook.
---
style/pythontex.el | 24 ++++--------------------
1 file changed, 4 insertions(+), 20 deletions(-)
diff --git a/style/pythontex.el b/style/pythontex.el
index 610a6341ec..8c1399f0de 100644
--- a/style/pythontex.el
+++ b/style/pythontex.el
@@ -1,6 +1,6 @@
;;; pythontex.el --- AUCTeX style for `pythontex.sty' (v0.16) -*-
lexical-binding: t; -*-
-;; Copyright (C) 2018--2022 Free Software Foundation, Inc.
+;; Copyright (C) 2018--2023 Free Software Foundation, Inc.
;; Author: Arash Esbati <arash@gnu.org>
;; Maintainer: auctex-devel@gnu.org
@@ -113,24 +113,6 @@ Update the variable `LaTeX-pythontex-language-list' if
still nil."
'("py" "sympy" "pylab" "rb" "ruby" "jl" "julia" "octave")
"List of language families provided by pythontex package.")
-(defun LaTeX-env-pythontex (environment)
- "Insert ENVIRONMENT provided by pythontex package."
- (let ((session (TeX-read-string
- (TeX-argument-prompt t nil "Session")))
- (fvkeyval (TeX-read-key-val t (LaTeX-fancyvrb-key-val-options))))
- (LaTeX-insert-environment environment
- (concat
- (when (and session (not (string= session "")))
- (concat LaTeX-optop session LaTeX-optcl))
- ;; We need an extra pair of brackets
- ;; when no session is given but
- ;; key=vals are available
- (when (and session (string= session "")
- fvkeyval (not (string= fvkeyval "")))
- (concat LaTeX-optop LaTeX-optcl))
- (when (and fvkeyval (not (string= fvkeyval "")))
- (concat LaTeX-optop fvkeyval LaTeX-optcl))))))
-
;; Setup for \saveprintpythontex & \savestdoutpythontex &
;; \savestderrpythontex
(TeX-auto-add-type "pythontex-savecontent" "LaTeX")
@@ -248,7 +230,9 @@ a list of strings."
verb-macs))
(apply #'LaTeX-add-environments
(mapcar (lambda (env)
- (list env #'LaTeX-env-pythontex))
+ (list env #'LaTeX-env-args
+ [ "Session" ]
+ [TeX-arg-key-val
(LaTeX-fancyvrb-key-val-options)]))
verb-envs))
;; Filling:
(dolist (mac verb-macs)
- [elpa] externals/auctex updated (9d47b0a1bd -> 1c3360b162), Tassilo Horn, 2023/07/20
- [elpa] externals/auctex 3b38bd625b 04/39: Fontify \sloppy and \fussy, Tassilo Horn, 2023/07/20
- [elpa] externals/auctex 2017d97b0e 09/39: Rewrite *-unload-hook to *-unload-function, Tassilo Horn, 2023/07/20
- [elpa] externals/auctex 6439edca63 12/39: Clean up Texinfo mode, Tassilo Horn, 2023/07/20
- [elpa] externals/auctex c9ab5d58f3 19/39: Update style/babel.el to package version 3.88, Tassilo Horn, 2023/07/20
- [elpa] externals/auctex cdd0cbf33a 03/39: Add new style/soul.el, Tassilo Horn, 2023/07/20
- [elpa] externals/auctex 22ba857c53 06/39: Improve fontification within shortvrb delimiters, Tassilo Horn, 2023/07/20
- [elpa] externals/auctex 87e8cb0369 05/39: Simplify implementation of style/pythontex.el,
Tassilo Horn <=
- [elpa] externals/auctex befc4a49bb 07/39: Fix style/changelog.el, Tassilo Horn, 2023/07/20
- [elpa] externals/auctex 7e420cff9b 08/39: ; * style/soul.el ("soul"): Use `LaTeX-soul-auto-cleanup'., Tassilo Horn, 2023/07/20
- [elpa] externals/auctex 0cb158fd96 21/39: Improve fontification of verbatim macros with braces, Tassilo Horn, 2023/07/20
- [elpa] externals/auctex 715a88a5f2 22/39: Treat backslash in verbatim macro arguments correctly, Tassilo Horn, 2023/07/20
- [elpa] externals/auctex e1290af3e7 25/39: Remove definition of `LaTeX-label-list' in bib-cite.el, Tassilo Horn, 2023/07/20
- [elpa] externals/auctex fe42de7cf6 26/39: Obey buffer-local value of TeX-error-overview-open-after-TeX-run, Tassilo Horn, 2023/07/20
- [elpa] externals/auctex 11e9dbfdf3 30/39: Track last change for \newtheorem macro in styles, Tassilo Horn, 2023/07/20
- [elpa] externals/auctex 658340b188 32/39: Remove requiring a match during `completing-read', Tassilo Horn, 2023/07/20
- [elpa] externals/auctex 6d34e1f1ae 34/39: Simplify implementation of style/paralist.el, Tassilo Horn, 2023/07/20
- [elpa] externals/auctex d6fb3c58ce 01/39: Be more resilient when parsing arguments, Tassilo Horn, 2023/07/20