auctex-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master a617944b 1/7: Fix style/xspace.el


From: Arash Esbati
Subject: master a617944b 1/7: Fix style/xspace.el
Date: Thu, 3 Nov 2022 18:04:56 -0400 (EDT)

branch: master
commit a617944b4bea2d14e717a7376cc4aeb82e3cc4be
Author: Arash Esbati <arash@gnu.org>
Commit: Arash Esbati <arash@gnu.org>

    Fix style/xspace.el
    
    * style/xspace.el ("xspace"): Fix the name of the macro
    \xspaceaddexceptions, insert braces for the argument.
    Query for a token after \xspaceremoveexception.
    Remove "xspace" from fontification since it's used only in a
    macro argument itself.
---
 style/xspace.el | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/style/xspace.el b/style/xspace.el
index 5f04c5be..889d17d3 100644
--- a/style/xspace.el
+++ b/style/xspace.el
@@ -1,6 +1,6 @@
 ;;; xspace.el --- AUCTeX style for `xspace.sty'  -*- lexical-binding: t; -*-
 
-;; Copyright (C) 2011, 2018, 2020 Free Software Foundation, Inc.
+;; Copyright (C) 2011--2022 Free Software Foundation, Inc.
 
 ;; Author: Mads Jensen <mje@inducks.org>
 ;; Maintainer: auctex-devel@gnu.org
@@ -42,14 +42,13 @@
  (lambda ()
    (TeX-add-symbols
     '("xspace" 0)
-    "xspaceaddexception"
-    "xspaceremoveexception")
+    '("xspaceaddexceptions" t)
+    '("xspaceremoveexception" "Token"))
 
    ;; Fontification
    (when (and (featurep 'font-latex)
               (eq TeX-install-font-lock 'font-latex-setup))
-     (font-latex-add-keywords '(("xspace" "")
-                                ("xspaceaddexception" "{")
+     (font-latex-add-keywords '(("xspaceaddexceptions"   "{")
                                 ("xspaceremoveexception" "{"))
                               'function)))
  TeX-dialect)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]