>From f6d174941a5d1396827392135082b20698a02067 Mon Sep 17 00:00:00 2001 From: Arash Esbati Date: Tue, 17 May 2016 14:30:12 +0200 Subject: [PATCH 4/5] Respect both "xcolor" and "color" for query to "shadecolor" * style/ntheorem.el ("ntheorem"): Respect both "xcolor" and "color" for query to "shadecolor" command. --- style/ntheorem.el | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/style/ntheorem.el b/style/ntheorem.el index 068f40d..2cfd4f5 100644 --- a/style/ntheorem.el +++ b/style/ntheorem.el @@ -1,6 +1,6 @@ ;;; ntheorem.el --- AUCTeX style for `ntheorem.sty' (v1.33) -;; Copyright (C) 2015 Free Software Foundation, Inc. +;; Copyright (C) 2015, 2016 Free Software Foundation, Inc. ;; Author: Arash Esbati ;; Maintainer: address@hidden @@ -289,8 +289,10 @@ make them available as new environments. Update (TeX-arg-eval (lambda () (let ((color - (if (fboundp 'LaTeX-color-definecolor-list) - (completing-read "color: " (LaTeX-color-definecolor-list)) + (if (or (member "xcolor" (TeX-style-list)) + (member "color" (TeX-style-list))) + (completing-read "color: " (or (LaTeX-xcolor-definecolor-list) + (LaTeX-color-definecolor-list))) (TeX-read-string "color: ")))) (format "%s" color))))) -- 2.8.1