branch: externals/auctex commit e83a4b87b3bb147ae4d00b567fb804901c226fdf Author: Arash Esbati <ar...@gnu.org> Commit: Arash Esbati <ar...@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 b1164a1f68..da09a7e390 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-de...@gnu.org ;; Author: Mosè Giordano <m...@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