[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master e83a4b87: Use the correct function to retrieve the key=vals
From: |
Arash Esbati |
Subject: |
master e83a4b87: Use the correct function to retrieve the key=vals |
Date: |
Wed, 9 Nov 2022 04:42:09 -0500 (EST) |
branch: master
commit e83a4b87b3bb147ae4d00b567fb804901c226fdf
Author: Arash Esbati <arash@gnu.org>
Commit: Arash Esbati <arash@gnu.org>
Use the correct function to retrieve the key=vals
* style/siunitx.el (LaTeX-siunitx-key-val-options): Delete
unnecessary `and' when checking for a color package.
("siunitx"): Use the correct function
`LaTeX-siunitx-key-val-options' for the old commands.
---
style/siunitx.el | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/style/siunitx.el b/style/siunitx.el
index b1164a1f..da09a7e3 100644
--- a/style/siunitx.el
+++ b/style/siunitx.el
@@ -1,6 +1,6 @@
;;; siunitx.el --- AUCTeX style for `siunitx.sty' version 3.3.36. -*-
lexical-binding: t; -*-
-;; Copyright (C) 2012-2021 Free Software Foundation, Inc.
+;; Copyright (C) 2012-2022 Free Software Foundation, Inc.
;; Maintainer: auctex-devel@gnu.org
;; Author: Mosè Giordano <mose@gnu.org>
@@ -260,8 +260,8 @@ string."
(defun LaTeX-siunitx-key-val-options ()
"Return an updated list of key=vals from siunitx package."
(append
- (when (and (or (member "xcolor" (TeX-style-list))
- (member "color" TeX-active-styles)))
+ (when (or (member "xcolor" (TeX-style-list))
+ (member "color" TeX-active-styles))
(let* ((colorcmd (if (member "xcolor" TeX-active-styles)
#'LaTeX-xcolor-definecolor-list
#'LaTeX-color-definecolor-list))
@@ -331,12 +331,12 @@ string."
;; but are not recommended for use in new documents. We provide
;; them in this file anyway since they are also needed when other
;; packages like physics or units are loaded:
- '("si" [TeX-arg-key-val (LaTeX-siunitx-package-options)]
LaTeX-arg-siunitx-unit)
- '("SI" [TeX-arg-key-val (LaTeX-siunitx-package-options)]
+ '("si" [TeX-arg-key-val (LaTeX-siunitx-key-val-options)]
LaTeX-arg-siunitx-unit)
+ '("SI" [TeX-arg-key-val (LaTeX-siunitx-key-val-options)]
"Value" ["Pre-unit"] LaTeX-arg-siunitx-unit)
- '("SIlist" [TeX-arg-key-val (LaTeX-siunitx-package-options)]
+ '("SIlist" [TeX-arg-key-val (LaTeX-siunitx-key-val-options)]
"Values" LaTeX-arg-siunitx-unit)
- '("SIrange" [TeX-arg-key-val (LaTeX-siunitx-package-options)]
+ '("SIrange" [TeX-arg-key-val (LaTeX-siunitx-key-val-options)]
"Value 1" "Value 2" LaTeX-arg-siunitx-unit))
;; 8 Compatibility with other packages
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master e83a4b87: Use the correct function to retrieve the key=vals,
Arash Esbati <=