From dcd4830cb9b716c0d055df84f5106b14585eb879 Mon Sep 17 00:00:00 2001 From: Tassilo Horn Date: Wed, 25 Feb 2015 11:45:20 +0100 Subject: [PATCH] Handle customizations of reftex-include-file-commands * reftex.texi (Multifile Documents): Document reftex-include-file-commands. (Options): Mention that non-customize changes might require calling reftex-compile-variables. * textmodes/reftex-vars.el (reftex-include-file-commands): Call reftex-set-dirty on changes. --- doc/misc/ChangeLog | 7 +++++++ doc/misc/reftex.texi | 10 ++++++++++ lisp/ChangeLog | 5 +++++ lisp/textmodes/reftex-vars.el | 1 + 4 files changed, 23 insertions(+) diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog index d04a8bbb083..448c7f26c1a 100644 --- a/doc/misc/ChangeLog +++ b/doc/misc/ChangeLog @@ -1,3 +1,10 @@ +2015-02-25 Tassilo Horn + + * reftex.texi (Multifile Documents): Document + reftex-include-file-commands. + (Options): Mention that non-customize changes might require + calling reftex-compile-variables. + 2015-02-21 Paul Eggert * texinfo.tex: Update from gnulib. diff --git a/doc/misc/reftex.texi b/doc/misc/reftex.texi index 567063f2c3b..facfb4376db 100644 --- a/doc/misc/reftex.texi +++ b/doc/misc/reftex.texi @@ -2961,6 +2961,12 @@ label itself in order to be processed correctly by @RefTeX{}. The only exception is that section labels referring to a section statement outside the current file can still use that section title as context. + +@item +@vindex reftex-include-file-commands +@RefTeX{} knows about the @code{\include} and @code{\input} macros. +In case you use different commands to include files in a multifile +document, customize the variable @code{reftex-include-file-commands}. @end itemize @node Language Support @@ -3893,6 +3899,10 @@ Lisp (and even if you are) you might find it more comfortable to use @code{customize} to look at and change these variables. @kbd{M-x reftex-customize} will get you there. +In case you don't use the @code{customize} interface, here's a caveat: +Changing (mostly parsing-related) options might require a call to +@code{reftex-compile-variables} in order to become effective. + @menu * Options - Table of Contents:: * Options - Defining Label Environments:: diff --git a/lisp/ChangeLog b/lisp/ChangeLog index fc2893e1c1d..fb8b1f7fc94 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2015-02-25 Tassilo Horn + + * textmodes/reftex-vars.el (reftex-include-file-commands): Call + reftex-set-dirty on changes. + 2015-02-25 Stefan Monnier * emacs-lisp/edebug.el (edebug--display): Save-excursion (bug#19611). diff --git a/lisp/textmodes/reftex-vars.el b/lisp/textmodes/reftex-vars.el index 115c1e0cde4..7fe6882d3ca 100644 --- a/lisp/textmodes/reftex-vars.el +++ b/lisp/textmodes/reftex-vars.el @@ -263,6 +263,7 @@ distribution. Mixed-case symbols are convenience aliases.") The file name is expected after the command, either in braces or separated by whitespace." :group 'reftex-table-of-contents-browser + :set 'reftex-set-dirty :type '(repeat string)) (defcustom reftex-max-section-depth 12 -- 2.39.2