[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX-devel] PATCH: Remove "table" and "table*" from LaTeX-indent-envi
From: |
Matthew Leach |
Subject: |
[AUCTeX-devel] PATCH: Remove "table" and "table*" from LaTeX-indent-environment |
Date: |
Tue, 08 Mar 2016 17:25:53 +0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
Hi all,
I noticed the other day that AucTeX would fill the argument to a
\caption macro inside the `figure' environment but not the `table'
environment when using M-q.
I propose the attached patch which removes the `table' and `table*'
members of the LaTeX-indent-environment alist and allows the \caption
macro to be filled inside those environments. I feel this is a
justified change as all the strange filling logic needs to occur inside
the `tabular' environment, which is usually enclosed within the `table'
environments. Personally I only use the `table' environments for
setting captions, labels and centering a table. However if there are
some quirky macros that are commonly used inside these environments I
will concede and remove these elements in my .emacs :-).
Thanks all!
--
Matt
>From 7eda4c72689f8b2d64d74cc7fc40ec1b7f5de780 Mon Sep 17 00:00:00 2001
From: Matthew Leach <address@hidden>
Date: Tue, 8 Mar 2016 17:08:39 +0000
Subject: [PATCH] Remove "table" and "table*" from
LaTeX-indent-environment-list
* latex.el (LaTeX-indent-environment-list): Remove the "table" and
"table*" elements.
---
latex.el | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/latex.el b/latex.el
index d684120..7221fce 100644
--- a/latex.el
+++ b/latex.el
@@ -2941,9 +2941,7 @@ consideration just as is in the non-commented source
code."
("equation")
("equation*")
("picture")
- ("tabbing")
- ("table")
- ("table*"))
+ ("tabbing"))
"Alist of environments with special indentation.
The second element in each entry is the function to calculate the
indentation level in columns."
--
2.7.2
- [AUCTeX-devel] PATCH: Remove "table" and "table*" from LaTeX-indent-environment,
Matthew Leach <=