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

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

[elpa] externals/auctex 4cfd116 65/67: Add support for w and W column sp


From: Tassilo Horn
Subject: [elpa] externals/auctex 4cfd116 65/67: Add support for w and W column specifiers
Date: Fri, 8 Feb 2019 11:40:41 -0500 (EST)

branch: externals/auctex
commit 4cfd1167b148eea1a8ea1957c650f3e527e4e7cb
Author: Arash Esbati <address@hidden>
Commit: Arash Esbati <address@hidden>

    Add support for w and W column specifiers
    
    * style/array.el ("array"): Add column specifiers w and W to
    `LaTeX-array-column-letters'.
    
    * doc/changes.texi: Mention that counting columns is supported
    only if the align parameter is enclosed in braces.
---
 doc/changes.texi | 7 +++++++
 style/array.el   | 6 +++---
 2 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/doc/changes.texi b/doc/changes.texi
index ba38bf4..8475ced 100644
--- a/doc/changes.texi
+++ b/doc/changes.texi
@@ -50,6 +50,13 @@ In addition, the option @code{TeX-electric-escape} is now 
effective in
 Texinfo mode.  When it is enabled, typing @kbd{@@} will invoke
 @code{TeX-electric-macro} offering completion in similar style with
 other TeX modes of @AUCTeX{}.
+
address@hidden
+Support for column specifiers @samp{w} and @samp{W} provided by
address@hidden package is added to @file{array.el}.  The correct counting
+of columns only works when the @samp{align} parameter is enclosed in
+braces, e.g., @address@hidden@address@hidden@}}.  The short version 
@address@hidden@}}
+is not supported.
 @end itemize
 
 @heading News in 12.1
diff --git a/style/array.el b/style/array.el
index b841f8d..d6df2eb 100644
--- a/style/array.el
+++ b/style/array.el
@@ -1,6 +1,6 @@
 ;;; array.el --- AUCTeX style for `array.sty'
 
-;; Copyright (C) 2013, 2015, 2018 Free Software Foundation, Inc.
+;; Copyright (C) 2013, 2015, 2018, 2019 Free Software Foundation, Inc.
 
 ;; Author: Mads Jensen <address@hidden>
 ;; Maintainer: address@hidden
@@ -62,7 +62,7 @@ and make it buffer local. "
                  (TeX-delete-duplicate-strings
                   (split-string
                    (concat LaTeX-array-column-letters
-                           (mapconcat 'car (LaTeX-array-newcolumntype-list) 
""))
+                           (mapconcat #'car (LaTeX-array-newcolumntype-list) 
""))
                    "" t))
                  "")))
 
@@ -95,7 +95,7 @@ and make it buffer local. "
 
    ;; `array.sty' adds some new column specification letters.
    (set (make-local-variable 'LaTeX-array-column-letters)
-       (concat LaTeX-array-column-letters "m" "b"))
+       (concat LaTeX-array-column-letters "m" "b" "w" "W"))
 
    ;; Fontification
    (when (and (featurep 'font-latex)



reply via email to

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