[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX-diffs] [elpa] externals/auctex 42dd1f1 22/36: Support RefTeX wit
From: |
Tassilo Horn |
Subject: |
[AUCTeX-diffs] [elpa] externals/auctex 42dd1f1 22/36: Support RefTeX with `reftex-add-index-macros' in style/splitidx.el |
Date: |
Thu, 22 Dec 2016 13:08:12 +0000 (UTC) |
branch: externals/auctex
commit 42dd1f1bbd55361be0494e2f8456c2535aecb855
Author: Arash Esbati <address@hidden>
Commit: Arash Esbati <address@hidden>
Support RefTeX with `reftex-add-index-macros' in style/splitidx.el
* style/splitidx.el ("splitidx"): Support RefTeX with
`reftex-add-index-macros' and not by appending macros to
`reftex-index-macros'.
---
style/splitidx.el | 16 ++++++----------
1 file changed, 6 insertions(+), 10 deletions(-)
diff --git a/style/splitidx.el b/style/splitidx.el
index a2d9be7..554c7a3 100644
--- a/style/splitidx.el
+++ b/style/splitidx.el
@@ -230,12 +230,10 @@
(add-to-list 'TeX-complete-list
'("|see{\([^{}
]*\)" 1 LaTeX-index-entry-list))
- ;; Append our defintion to `reftex-index-macros' in order not to
- ;; override any user customizations.
- (when (boundp 'reftex-index-macros)
- (add-to-list 'reftex-index-macros
- `("\sindex[]{*}" 1
- ,LaTeX-splitidx-sindex-reftex-quick-id-key "" nil t)))
+ ;; Tell RefTeX with `reftex-add-index-macros'
+ (when (fboundp 'reftex-add-index-macros)
+ (reftex-add-index-macros
+ `(("\sindex[]{*}" 1 ,LaTeX-splitidx-sindex-reftex-quick-id-key "" nil
t))))
;; 3.2 Marking up index entries
;; \index should be an alias for \sindex
@@ -247,10 +245,8 @@
(LaTeX-splitidx-newindex-list) ]
(TeX-arg-index)))
;; Tell RefTeX to look in the optional arg. for the index short cut
- (when (boundp 'reftex-index-macros)
- (add-to-list 'reftex-index-macros
- '("\index[]{*}" 1 ?i "" nil t)
- t))
+ (when (fboundp 'reftex-add-index-macros)
+ (reftex-add-index-macros '(("\index[]{*}" 1 ?i "" nil t))))
(add-to-list 'LaTeX-auto-regexp-list
`(,(concat
"\\index\(?:\[[^{}]*\]\)?"
- [AUCTeX-diffs] [elpa] externals/auctex 66ed2ac 30/36: Add test for new column counting code, (continued)
- [AUCTeX-diffs] [elpa] externals/auctex 66ed2ac 30/36: Add test for new column counting code, Tassilo Horn, 2016/12/22
- [AUCTeX-diffs] [elpa] externals/auctex f04e5f7 09/36: Add style file for amsfonts package, Tassilo Horn, 2016/12/22
- [AUCTeX-diffs] [elpa] externals/auctex 1aa46c3 23/36: ; Use third argument of `TeX-argument-insert', Tassilo Horn, 2016/12/22
- [AUCTeX-diffs] [elpa] externals/auctex 40da84e 20/36: Support RefTeX with `reftex-add-label-environments' in style/empheq.el, Tassilo Horn, 2016/12/22
- [AUCTeX-diffs] [elpa] externals/auctex d6890e8 04/36: Improve caption and label insertion in style/subcaption.el, Tassilo Horn, 2016/12/22
- [AUCTeX-diffs] [elpa] externals/auctex b44d524 35/36: Uniform font-lock updates/don't break prettify (bug#25245), Tassilo Horn, 2016/12/22
- [AUCTeX-diffs] [elpa] externals/auctex 79c8264 19/36: Fix query for defined colors in style/textpos.el, Tassilo Horn, 2016/12/22
- [AUCTeX-diffs] [elpa] externals/auctex 8a14439 11/36: Add style file for subfiles package., Tassilo Horn, 2016/12/22
- [AUCTeX-diffs] [elpa] externals/auctex 6ec185e 16/36: Do not spell-check arguments of \LTXtable, Tassilo Horn, 2016/12/22
- [AUCTeX-diffs] [elpa] externals/auctex 6a31d4e 14/36: Support new floats defined with newfloat package, Tassilo Horn, 2016/12/22
- [AUCTeX-diffs] [elpa] externals/auctex 42dd1f1 22/36: Support RefTeX with `reftex-add-index-macros' in style/splitidx.el,
Tassilo Horn <=
- [AUCTeX-diffs] [elpa] externals/auctex b59075b 06/36: Do not insert a new line if \label is omitted, Tassilo Horn, 2016/12/22
- [AUCTeX-diffs] [elpa] externals/auctex 945035c 24/36: Append tabular[xy] to `LaTeX-item-list', Tassilo Horn, 2016/12/22
- [AUCTeX-diffs] [elpa] externals/auctex 0265793 25/36: Add "s" and "S" to `LaTeX-array-column-letters', Tassilo Horn, 2016/12/22
- [AUCTeX-diffs] [elpa] externals/auctex c5d1d02 13/36: Append entry to `LaTeX-label-alist' for new "verbatim" floats, Tassilo Horn, 2016/12/22
- [AUCTeX-diffs] [elpa] externals/auctex e3c60cf 08/36: Add new style/bicaption.el, Tassilo Horn, 2016/12/22
- [AUCTeX-diffs] [elpa] externals/auctex 76db91e 27/36: Accept non-letter characters as column specifier, Tassilo Horn, 2016/12/22
- [AUCTeX-diffs] [elpa] externals/auctex c265fc9 02/36: Add new style/FiraMono.el, Tassilo Horn, 2016/12/22
- [AUCTeX-diffs] [elpa] externals/auctex 25e4f33 03/36: Add new style/FiraSans.el, Tassilo Horn, 2016/12/22
- [AUCTeX-diffs] [elpa] externals/auctex 0d26aba 01/36: Suggest to display warnings when there are no errors in error overview, Tassilo Horn, 2016/12/22
- [AUCTeX-diffs] [elpa] externals/auctex a833aff 26/36: Use `LaTeX-item-longtable' while inserting longtable's, Tassilo Horn, 2016/12/22