emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/auctex 581002f 08/57: Add LaTeX core command \oldstylen


From: Tassilo Horn
Subject: [elpa] externals/auctex 581002f 08/57: Add LaTeX core command \oldstylenums
Date: Tue, 25 Jul 2017 14:02:27 -0400 (EDT)

branch: externals/auctex
commit 581002f508fc49bd7c290d4fd3c4dec543d6ab9c
Author: Arash Esbati <address@hidden>
Commit: Arash Esbati <address@hidden>

    Add LaTeX core command \oldstylenums
    
    * font-latex.el (font-latex-built-in-keyword-classes): Add
    \oldstylenums to "type-command" keyword class.
    
    * latex.el (LaTeX-common-initialization): Add \oldstylenums to
    LaTeX core commands.
    
    * style/textcomp.el ("textcomp"): Remove \oldstylenums from
    textcomp.el which is provided by LaTeX core.
---
 font-latex.el     |  2 +-
 latex.el          |  1 +
 style/textcomp.el | 11 ++---------
 3 files changed, 4 insertions(+), 10 deletions(-)

diff --git a/font-latex.el b/font-latex.el
index 83e2115..4b687af 100644
--- a/font-latex.el
+++ b/font-latex.el
@@ -400,7 +400,7 @@ variable `font-latex-fontify-sectioning'." ',num)
      (("ensuremath" "|{\\"))
      font-latex-math-face 1 command)
     ("type-command"
-     (("texttt" "{") ("textsf" "{") ("textrm" "{") ("textmd" "{"))
+     (("texttt" "{") ("textsf" "{") ("textrm" "{") ("textmd" "{") 
("oldstylenums" "{"))
      font-lock-type-face 1 command)
     ("bold-declaration"
      ("bf" "bfseries" "sc" "scshape" "upshape")
diff --git a/latex.el b/latex.el
index fa87c98..4613d36 100644
--- a/latex.el
+++ b/latex.el
@@ -6429,6 +6429,7 @@ function would return non-nil and `(match-string 1)' 
would return
    '("tiny" -1) '("scriptsize" -1) '("footnotesize" -1) '("small" -1)
    '("normalsize" -1) '("large" -1) '("Large" -1) '("LARGE" -1) '("huge" -1)
    '("Huge" -1)
+   '("oldstylenums" "Numbers")
    "pounds" "copyright"
    "hfil" "hfill" "vfil" "vfill" "hrulefill" "dotfill"
    "indent" "noindent" "today"
diff --git a/style/textcomp.el b/style/textcomp.el
index 8a6df9b..3f0feb0 100644
--- a/style/textcomp.el
+++ b/style/textcomp.el
@@ -1,6 +1,6 @@
 ;;; textcomp.el --- AUCTeX style for `textcomp.sty' (v1.99g)
 
-;; Copyright (C) 2014 Free Software Foundation, Inc.
+;; Copyright (C) 2014, 2017 Free Software Foundation, Inc.
 
 ;; Author: Arash Esbati <address@hidden>
 ;; Maintainer: address@hidden
@@ -161,14 +161,7 @@
     '("textdiv"                  0)     ; Type: Symbol -- Slot: 246
     '("textcircled"              1)     ; Type: Command -- Slot: N/A
     '("capitalcedilla"           1)     ; Type: Command -- Slot: N/A
-    '("capitalogonek"            1)     ; Type: Command -- Slot: N/A
-    '("oldstylenums" "Numbers"    ))    ; Type: Command -- Slot: N/A
-
-   ;; Fontification
-   (when (and (featurep 'font-latex)
-              (eq TeX-install-font-lock 'font-latex-setup))
-     (font-latex-add-keywords '(("oldstylenums"  "{"))
-                              'type-command)))
+    '("capitalogonek"            1)))   ; Type: Command -- Slot: N/A
  LaTeX-dialect)
 
 (defvar LaTeX-textcomp-package-options



reply via email to

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