aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/textmodes/reftex-parse.el
diff options
context:
space:
mode:
authorVincent Belaïche2012-11-25 06:05:34 +0100
committerVincent Belaïche2012-11-25 06:05:34 +0100
commite2cb57f5f5794d75cd237e2d6ec2b4d16157c2cd (patch)
tree0f863f509fe1c2ea0ed8d1b3e3fdf0a0b5d49dfd /lisp/textmodes/reftex-parse.el
parent1c4f115d4c4eb1aa71c25d21e8bdec2f8da97700 (diff)
downloademacs-e2cb57f5f5794d75cd237e2d6ec2b4d16157c2cd.tar.gz
emacs-e2cb57f5f5794d75cd237e2d6ec2b4d16157c2cd.zip
* textmodes/reftex-parse.el (reftex-parse-from-file): Use variable reftex-section-info-function in order to be compatible with Texinfo integration.
* textmodes/reftex.el (reftex-section-pre-regexp, reftex-section-post-regexp, reftex-section-info-function): New variable. (reftex-compile-variables): Use variables reftex-section-pre-regexp, reftex-section-post-regexp, and reftex-section-info-function in order to be compatible with Texinfo integration. * textmodes/reftex-toc.el (reftex-toc-promote-action): use reftex-section-pre-regexp variable in order to be compatible with Texinfo integration.
Diffstat (limited to 'lisp/textmodes/reftex-parse.el')
-rw-r--r--lisp/textmodes/reftex-parse.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/textmodes/reftex-parse.el b/lisp/textmodes/reftex-parse.el
index 791b5d7b945..7169e70d6c4 100644
--- a/lisp/textmodes/reftex-parse.el
+++ b/lisp/textmodes/reftex-parse.el
@@ -251,7 +251,7 @@ of master file."
251 ;; the next parsing iteration. 251 ;; the next parsing iteration.
252 (when (eq (char-before) ?\\) (backward-char)) 252 (when (eq (char-before) ?\\) (backward-char))
253 ;; Insert in List 253 ;; Insert in List
254 (setq toc-entry (reftex-section-info file)) 254 (setq toc-entry (funcall reftex-section-info-function file))
255 (when toc-entry 255 (when toc-entry
256 ;; It can happen that section info returns nil 256 ;; It can happen that section info returns nil
257 (setq level (nth 5 toc-entry)) 257 (setq level (nth 5 toc-entry))