branch: externals/auctex
commit 4cfd1167b148eea1a8ea1957c650f3e527e4e7cb
Author: Arash Esbati <[email protected]>
Commit: Arash Esbati <[email protected]>
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{}.
+
+@item
+Support for column specifiers @samp{w} and @samp{W} provided by
+@samp{array} 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., @samp{w@{l@}@{3cm@}}. The short version @samp{wl@{3cm@}}
+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 <[email protected]>
;; Maintainer: [email protected]
@@ -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)