branch: master
commit 25ecdd413c7e0fcdb18b02444c511f35cb8c00d6
Author: Arash Esbati <[email protected]>
Commit: Arash Esbati <[email protected]>
; Fix last change
* style/diagbox.el (LaTeX-diagbox-key-val-options): Check also if
the styles are actually loaded.
Fix comment.
---
style/diagbox.el | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/style/diagbox.el b/style/diagbox.el
index d73ece7a..3690c262 100644
--- a/style/diagbox.el
+++ b/style/diagbox.el
@@ -1,4 +1,4 @@
-;;; geometry.el --- AUCTeX style for `diagbox.sty' (v2.3) -*-
lexical-binding: t; -*-
+;;; diagbox.el --- AUCTeX style for `diagbox.sty' (v2.3) -*- lexical-binding:
t; -*-
;; Copyright (C) 2024 Free Software Foundation, Inc.
@@ -60,9 +60,11 @@
(defun LaTeX-diagbox-key-val-options ()
"Return updated key=val options for the \\diagbox macro."
(append
- `(("linecolor" ,(cond ((fboundp 'LaTeX-xcolor-definecolor-list)
+ `(("linecolor" ,(cond ((and (fboundp 'LaTeX-xcolor-definecolor-list)
+ (member "xcolor" (TeX-style-list)))
(mapcar #'car (LaTeX-xcolor-definecolor-list)))
- ((fboundp 'LaTeX-color-definecolor-list)
+ ((and (fboundp 'LaTeX-color-definecolor-list)
+ (member "color" TeX-active-styles))
(mapcar #'car (LaTeX-color-definecolor-list))))))
LaTeX-diagbox-key-val-options))