[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex ac8d479 69/78: Support newfloat.el.
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex ac8d479 69/78: Support newfloat.el. |
Date: |
Mon, 19 Oct 2015 09:11:15 +0000 |
branch: externals/auctex
commit ac8d4795781144d9ebc3ec0629efb77bc4d9b9d6
Author: Arash Esbati <address@hidden>
Commit: Mosè Giordano <address@hidden>
Support newfloat.el.
* style/wrapfig.el ("wrapfig"): Check for new floating
environments definded through "newfloat.el" and offer them as
completion to "wrapfloat" environment.
Signed-off-by: Mosè Giordano <address@hidden>
---
ChangeLog | 6 ++++++
style/wrapfig.el | 15 +++++++++++++--
2 files changed, 19 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index b287587..62199eb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2015-10-08 Arash Esbati <address@hidden>
+
+ * style/wrapfig.el ("wrapfig"): Check for new floating
+ environments definded through "newfloat.el" and offer them as
+ completion to "wrapfloat" environment.
+
2015-10-05 Mos� Giordano <address@hidden>
* context.el (TeX-ConTeXt-sentinel): Parse ConTeXt Mark IV output.
diff --git a/style/wrapfig.el b/style/wrapfig.el
index 097e5ad..64bb265 100644
--- a/style/wrapfig.el
+++ b/style/wrapfig.el
@@ -1,6 +1,6 @@
;;; wrapfig.el --- AUCTeX style for `wrapfig.sty' version v3.6
-;; Copyright (C) 2014 Free Software Foundation, Inc.
+;; Copyright (C) 2014, 2015 Free Software Foundation, Inc.
;; Author: Arash Esbati <esbati'at'gmx.de>
;; Maintainer: address@hidden
@@ -78,11 +78,22 @@
(format "{%s}" width))))))
;;
;; \begin{wrapfloat}{<Type>}[No.lines]{Placement}[Overhang]{Width} ...
\end{wrapfloat}
+ ;;
+ ;; <Type> can be a new floating environment defined with
+ ;; "\DeclareFloatingEnvironment" from newfloat.el. We check if
+ ;; the function `LaTeX-newfloat-DeclareFloatingEnvironment-list'
+ ;; is bound and returns non-nil before offering environment for
+ ;; completion. Otherwise, just ask user without completion.
'("wrapfloat"
(lambda (env &rest ignore)
(LaTeX-insert-environment
env
- (let ((floattype (TeX-read-string "Float type: "))
+ (let ((floattype (if (and (fboundp
'LaTeX-newfloat-DeclareFloatingEnvironment-list)
+
(LaTeX-newfloat-DeclareFloatingEnvironment-list))
+ (completing-read
+ "Float type: "
+ (mapcar 'car
(LaTeX-newfloat-DeclareFloatingEnvironment-list)))
+ (TeX-read-string "Float type: ")))
(narrow (TeX-read-string "(Optional) Number of narrow lines:
"))
(placement (completing-read
"Placement: " '(("r") ("R")
- [elpa] externals/auctex 2b648fe 38/78: Remove one TODO in style/polyglossia.el., (continued)
- [elpa] externals/auctex 2b648fe 38/78: Remove one TODO in style/polyglossia.el., Tassilo Horn, 2015/10/19
- [elpa] externals/auctex 22c7d9f 27/78: Implement "run-all" for regions and sections, Tassilo Horn, 2015/10/19
- [elpa] externals/auctex 6b3cbea 32/78: Suggest to run Index when appropriate., Tassilo Horn, 2015/10/19
- [elpa] externals/auctex a76afdf 49/78: Add abstract env only to classes defining it., Tassilo Horn, 2015/10/19
- [elpa] externals/auctex a864241 55/78: Fixup space-before-tab git warned about., Tassilo Horn, 2015/10/19
- [elpa] externals/auctex 9b5827c 44/78: Fix typo in error message., Tassilo Horn, 2015/10/19
- [elpa] externals/auctex 3bb1cbe 56/78: Add font-latex specific prettify-symbols-compose-predicate, Tassilo Horn, 2015/10/19
- [elpa] externals/auctex 8a2bd0b 68/78: Fix previous commit., Tassilo Horn, 2015/10/19
- [elpa] externals/auctex e85968c 66/78: Support caption.el and some other fixes., Tassilo Horn, 2015/10/19
- [elpa] externals/auctex cac89e9 63/78: Start supporting ConTeXt Mark IV., Tassilo Horn, 2015/10/19
- [elpa] externals/auctex ac8d479 69/78: Support newfloat.el.,
Tassilo Horn <=
- [elpa] externals/auctex 320de59 53/78: Apply some fixes to caption.el., Tassilo Horn, 2015/10/19
- [elpa] externals/auctex ce8981a 64/78: Fontify math environment, Tassilo Horn, 2015/10/19
- [elpa] externals/auctex 0c4e740 62/78: Fix typo in comment., Tassilo Horn, 2015/10/19
- [elpa] externals/auctex 3b5f047 67/78: Add supporto to ConTeXt Mark IV in some sentinels., Tassilo Horn, 2015/10/19
- [elpa] externals/auctex 4a12225 72/78: Use `LaTeX-add-counters' on "LTchunksize"., Tassilo Horn, 2015/10/19
- [elpa] externals/auctex 1f116b8 74/78: Fill $...$ like \(...\) (bug#21645), Tassilo Horn, 2015/10/19
- [elpa] externals/auctex 93d50ea 75/78: Do not disable PDF when using pstricks with XeTeX., Tassilo Horn, 2015/10/19
- [elpa] externals/auctex f9a7928 59/78: Add new style newfloat.el., Tassilo Horn, 2015/10/19
- [elpa] externals/auctex 5ee567c 60/78: Append entries to LaTeX-label-alist in newfloat.el., Tassilo Horn, 2015/10/19
- [elpa] externals/auctex 96639fb 61/78: Fix previous commit., Tassilo Horn, 2015/10/19