branch: externals/auctex
commit 48093faaf5ae972728d19ff0a36019bf8b0f983a
Author: Arash Esbati <[email protected]>
Commit: Mosè Giordano <[email protected]>
Use LaTeX-add-lengths for LaTeX-lengths.
* style/longtable.el ("longtable"): Make package lengths available
through `LaTeX-add-lengths' and not `TeX-add-symbol'.
Signed-off-by: Mosè Giordano <[email protected]>
---
ChangeLog | 5 +++++
style/longtable.el | 13 ++++++-------
2 files changed, 11 insertions(+), 7 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index aaa44d9..91c6bc5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-09-27 Arash Esbati <[email protected]>
+
+ * style/longtable.el ("longtable"): Make package lengths available
+ through `LaTeX-add-lengths' and not `TeX-add-symbol'.
+
2015-09-26 Mos� Giordano <[email protected]>
* tex.el (TeX-search-files-kpathsea): Remove duplicates
diff --git a/style/longtable.el b/style/longtable.el
index 353336d..3363119 100644
--- a/style/longtable.el
+++ b/style/longtable.el
@@ -1,6 +1,6 @@
;;; longtable.el --- AUCTeX style for `longtable.sty'.
-;; Copyright (C) 2013, 2014 Free Software Foundation, Inc.
+;; Copyright (C) 2013--2015 Free Software Foundation, Inc.
;; Maintainer: [email protected]
;; Author: Mosè Giordano <[email protected]>
@@ -58,12 +58,7 @@
(LaTeX-newline)
(indent-according-to-mode)))))))
(TeX-add-symbols
- ;; Parameters
- '("LTleft" 0)
- '("LTright" 0)
- '("LTpre" 0)
- '("LTpost" 0)
- '("LTcapwidth" 0)
+ ;; Parameter
'("LTchunksize" 0)
;; Commands to end table rows
'("endhead" 0)
@@ -73,6 +68,10 @@
;; Caption commands
'("caption*" 1))
+ ;; These parameters are set with \setlength
+ (LaTeX-add-lengths
+ "LTleft" "LTright" "LTpre" "LTpost" "LTcapwidth")
+
;; Use the enhanced table formatting
(add-to-list 'LaTeX-indent-environment-list
'("longtable" LaTeX-indent-tabular))