[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex dbeb71f 04/26: Improve style.
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex dbeb71f 04/26: Improve style. |
Date: |
Fri, 13 Nov 2015 17:00:32 +0000 |
branch: externals/auctex
commit dbeb71fcb1c1922819cfc7671dc3e9522939796a
Author: Arash Esbati <address@hidden>
Commit: Tassilo Horn <address@hidden>
Improve style.
* style/enumitem.el (LaTeX-enumitem-auto-cleanup): Move some
operations from style hook into this function.
(LaTeX-enumitem-newlist-list-item-arg-local): Delete now unused
variable.
---
ChangeLog | 5 +++++
style/enumitem.el | 29 ++++++++++-------------------
2 files changed, 15 insertions(+), 19 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 4178918..3f5aec6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2015-10-24 Arash Esbati <address@hidden>
+ * style/enumitem.el (LaTeX-enumitem-auto-cleanup): Move some
+ operations from style hook into this function.
+ (LaTeX-enumitem-newlist-list-item-arg-local): Delete now unused
+ variable.
+
* style/amsthm.el (LaTeX-amsthm-theoremstyle-list): New variable
replacing the deleted function
`LaTeX-amsthm-complete-theoremstyle'.
diff --git a/style/enumitem.el b/style/enumitem.el
index dff94aa..a527c86 100644
--- a/style/enumitem.el
+++ b/style/enumitem.el
@@ -116,11 +116,6 @@ plus available through `enumitem' package.")
"List of description like environments defined by command
`\\newlist' from `enumitem' package.")
-(defvar LaTeX-enumitem-newlist-list-item-arg-local nil
- "Local list of all description like environments defined by command
-`\\newlist' plus available through `enumitem' package.")
-(make-variable-buffer-local 'LaTeX-enumitem-newlist-list-item-arg-local)
-
(defvar LaTeX-auto-enumitem-newlist nil
"Temporary for parsing the arguments of `\\newlist' from
`enumitem' package.")
@@ -183,7 +178,16 @@ package.")
(when (or (string-equal type "description")
(string-equal type "description*"))
(add-to-list 'LaTeX-enumitem-newlist-list-item-arg
- (list env))))))
+ (list env)))))
+ ;; Now add the parsed env's to the local list.
+ (when LaTeX-enumitem-newlist-list
+ (setq LaTeX-enumitem-newlist-list-local
+ (append LaTeX-enumitem-newlist-list
+ LaTeX-enumitem-newlist-list-local)))
+ ;; Tell AUCTeX about parsed description like environments.
+ (when LaTeX-enumitem-newlist-list-item-arg
+ (dolist (env LaTeX-enumitem-newlist-list-item-arg)
+ (add-to-list 'LaTeX-item-list `(,(car env) . LaTeX-item-argument)))))
(add-hook 'TeX-auto-prepare-hook #'LaTeX-enumitem-auto-prepare t)
(add-hook 'TeX-auto-cleanup-hook #'LaTeX-enumitem-auto-cleanup t)
@@ -302,19 +306,6 @@ in `enumitem'-completions."
(append '(("itemize*") ("enumerate*") ("description*"))
LaTeX-enumitem-newlist-list-local)))
- ;; Now add the parsed env's to the local list.
- (setq LaTeX-enumitem-newlist-list-local
- (append LaTeX-enumitem-newlist-list
- LaTeX-enumitem-newlist-list-local))
-
- ;; Move parsed description like env's into a local variable.
- (setq LaTeX-enumitem-newlist-list-item-arg-local
- LaTeX-enumitem-newlist-list-item-arg)
-
- ;; Tell AUCTeX about special items parsed
- (dolist (env LaTeX-enumitem-newlist-list-item-arg-local)
- (add-to-list 'LaTeX-item-list `(,(car env) . LaTeX-item-argument)))
-
;; Standard env's take key-val as optional argument.
(LaTeX-add-environments
'("itemize" LaTeX-enumitem-env-with-opts)
- [elpa] externals/auctex updated (35a4cfc -> 7363de1), Tassilo Horn, 2015/11/13
- [elpa] externals/auctex b10ca71 01/26: Fix docstring., Tassilo Horn, 2015/11/13
- [elpa] externals/auctex 90ea1a0 02/26: Remove SmallCaps font declaration command., Tassilo Horn, 2015/11/13
- [elpa] externals/auctex dbeb71f 04/26: Improve style.,
Tassilo Horn <=
- [elpa] externals/auctex b4f95f9 07/26: Disable special filling of math constructs, Tassilo Horn, 2015/11/13
- [elpa] externals/auctex 6351078 09/26: Use LaTeX-style-list for default classes completion., Tassilo Horn, 2015/11/13
- [elpa] externals/auctex 9dba8fd 15/26: Make View command work no matter how emacs started, Tassilo Horn, 2015/11/13
- [elpa] externals/auctex c39c63f 13/26: Add new style hologo.el., Tassilo Horn, 2015/11/13
- [elpa] externals/auctex d56502e 05/26: Support node name completion in texinfo, Tassilo Horn, 2015/11/13
- [elpa] externals/auctex a2f8bc6 08/26: Fix Texinfo-make-node-list, Tassilo Horn, 2015/11/13
- [elpa] externals/auctex 52275f9 03/26: Improve style., Tassilo Horn, 2015/11/13
- [elpa] externals/auctex b3153ec 16/26: Add function for reverting document buffer, Tassilo Horn, 2015/11/13
- [elpa] externals/auctex 4527e8a 10/26: Update documentation., Tassilo Horn, 2015/11/13
- [elpa] externals/auctex f52479b 11/26: Improve checking of a TeX distribution and make it optional, Tassilo Horn, 2015/11/13