diff options
author | Tassilo Horn <tsdh@gnu.org> | 2013-04-25 14:01:09 +0200 |
---|---|---|
committer | Tassilo Horn <tsdh@gnu.org> | 2013-04-25 14:01:09 +0200 |
commit | d79d37bd136542193dc61ac2e0163245058c4a13 (patch) | |
tree | cd83c40e5c14e0d47b92aa42a16f521678e78b08 /lisp/textmodes/reftex-vars.el | |
parent | ced3fc5d2f65236af6595db93b064b77a5cdedfd (diff) | |
download | emacs-d79d37bd136542193dc61ac2e0163245058c4a13.tar.gz |
* textmodes/reftex-vars.el
(reftex-label-ignored-macros-and-environments): New defcustom.
* textmodes/reftex-parse.el (reftex-parse-from-file): Use it.
Diffstat (limited to 'lisp/textmodes/reftex-vars.el')
-rw-r--r-- | lisp/textmodes/reftex-vars.el | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lisp/textmodes/reftex-vars.el b/lisp/textmodes/reftex-vars.el index 7343d86b06f..ab085a3085a 100644 --- a/lisp/textmodes/reftex-vars.el +++ b/lisp/textmodes/reftex-vars.el @@ -885,6 +885,25 @@ effective." :group 'reftex-defining-label-environments :type '(repeat (regexp :tag "Regular Expression"))) +(defcustom reftex-label-ignored-macros-and-environments nil + "List of macros and environments to be ignored when searching for labels. +The purpose is to ignore environments and macros that use keyval +style label=foo arguments, but the label has a different meaning +than a \\label{foo}. Standard \\label{...} definitions are never +ignored. + +E.g., TikZ defines several macros/environments where [label=foo] +defines the label to be printed at some node or edge, but it's +not a label used for referencing. + +Note that this feature is only supported if you are using AUCTeX +and the functions `TeX-current-macro' and +`LaTeX-current-environment' are bound. Also note that this +feature might slow down the reftex parsing process for large TeX +files." + :group 'reftex-defining-label-environments + :type '(repeat string)) + (defcustom reftex-label-illegal-re "[^-a-zA-Z0-9_+=:;,.]" "Regexp matching characters not valid in labels." :group 'reftex-making-and-inserting-labels |