aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTassilo Horn2012-08-02 20:24:11 +0200
committerTassilo Horn2012-08-02 20:24:11 +0200
commitcfcc9cc88e564711f3d811b9aaa1d2c3edf476da (patch)
tree19dc2522e5308e0fbf00c486e6133cebf0313c26
parent66ec2442994e36913ab5b256d5b390143bc3196f (diff)
downloademacs-cfcc9cc88e564711f3d811b9aaa1d2c3edf476da.tar.gz
emacs-cfcc9cc88e564711f3d811b9aaa1d2c3edf476da.zip
* textmodes/reftex-vars.el (reftex-default-label-alist-entries):
Add listings, minted, and ctable packages. (reftex-label-alist-builtin): Move listings, minted, and ctable entries before LaTeX.
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/textmodes/reftex-vars.el23
2 files changed, 19 insertions, 11 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 4b0f567ba8e..ce0ee4b9b8b 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,10 @@
12012-08-02 Tassilo Horn <tsdh@gnu.org>
2
3 * textmodes/reftex-vars.el (reftex-default-label-alist-entries):
4 Add listings, minted, and ctable packages.
5 (reftex-label-alist-builtin): Move listings, minted, and ctable
6 entries before LaTeX.
7
12012-08-02 Bastien Guerry <bzg@gnu.org> 82012-08-02 Bastien Guerry <bzg@gnu.org>
2 9
3 * replace.el (occur): Fix docstring (bug#12122). 10 * replace.el (occur): Fix docstring (bug#12122).
diff --git a/lisp/textmodes/reftex-vars.el b/lisp/textmodes/reftex-vars.el
index 187c98af21f..fa316ea760d 100644
--- a/lisp/textmodes/reftex-vars.el
+++ b/lisp/textmodes/reftex-vars.el
@@ -90,6 +90,15 @@
90 (wrapfig "The wrapfigure environment" 90 (wrapfig "The wrapfigure environment"
91 (("wrapfigure" ?f nil nil caption))) 91 (("wrapfigure" ?f nil nil caption)))
92 92
93 (ctable "The ctable package"
94 (("\\ctable[]{}{}{}" ?t "tab:" "\\ref{%s}" 1 ("table" "Tabelle"))))
95
96 (listings "The listings package"
97 (("lstlisting" ?l "lst:" "~\\ref{%s}" nil (regexp "[Ll]isting"))))
98
99 (minted "The minted package"
100 (("minted" ?l "lst:" "~\\ref{%s}" nil (regexp "[Ll]isting"))))
101
93 ;; The LaTeX core stuff 102 ;; The LaTeX core stuff
94 (LaTeX "LaTeX default environments" 103 (LaTeX "LaTeX default environments"
95 (("section" ?s "%S" "~\\ref{%s}" (nil . t) 104 (("section" ?s "%S" "~\\ref{%s}" (nil . t)
@@ -120,16 +129,7 @@
120 129
121 ;; The label macro is hard coded, but it *could* be defined like this: 130 ;; The label macro is hard coded, but it *could* be defined like this:
122 ;;("\\label{*}" nil nil nil nil) 131 ;;("\\label{*}" nil nil nil nil)
123 )) 132 )))
124
125 (ctable "The ctable package"
126 (("\\ctable[]{}{}{}" ?t "tab:" "\\ref{%s}" 1 ("table" "Tabelle"))))
127
128 (listings "The listings package"
129 (("lstlisting" ?l "lst:" "~\\ref{%s}" nil (regexp "[Ll]isting"))))
130
131 (minted "The minted package"
132 (("minted" ?l "lst:" "~\\ref{%s}" nil (regexp "[Ll]isting")))))
133 "The default label environment descriptions. 133 "The default label environment descriptions.
134Lower-case symbols correspond to a style file of the same name in the LaTeX 134Lower-case symbols correspond to a style file of the same name in the LaTeX
135distribution. Mixed-case symbols are convenience aliases.") 135distribution. Mixed-case symbols are convenience aliases.")
@@ -430,7 +430,8 @@ When nil, follow-mode will be suspended for stuff in unvisited files."
430 430
431(defcustom reftex-default-label-alist-entries 431(defcustom reftex-default-label-alist-entries
432 '(amsmath endnotes fancybox floatfig longtable picinpar 432 '(amsmath endnotes fancybox floatfig longtable picinpar
433 rotating sidecap subfigure supertab wrapfig LaTeX) 433 rotating sidecap subfigure supertab wrapfig
434 listings minted ctable LaTeX)
434 "Default label alist specifications. LaTeX should always be the last entry. 435 "Default label alist specifications. LaTeX should always be the last entry.
435The value of this variable is a list of symbols with associations in the 436The value of this variable is a list of symbols with associations in the
436constant `reftex-label-alist-builtin'. Check that constant for a full list 437constant `reftex-label-alist-builtin'. Check that constant for a full list