auctex-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[AUCTeX-diffs] Changes to reftex/lisp/reftex-parse.el,v


From: Ralf Angeli
Subject: [AUCTeX-diffs] Changes to reftex/lisp/reftex-parse.el,v
Date: Sun, 13 Apr 2008 13:24:37 +0000

CVSROOT:        /sources/auctex
Module name:    reftex
Changes by:     Ralf Angeli <angeli>    08/04/13 13:24:37

Index: reftex-parse.el
===================================================================
RCS file: /sources/auctex/reftex/lisp/reftex-parse.el,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -b -r1.36 -r1.37
--- reftex-parse.el     23 Aug 2007 21:36:02 -0000      1.36
+++ reftex-parse.el     13 Apr 2008 13:24:37 -0000      1.37
@@ -239,7 +239,12 @@
 
                 ((match-end 3)
                  ;; It is a section
-                 (setq bound (point))
+
+                ;; Use the beginning as bound and not the end
+                ;; (i.e. (point)) because the section command might
+                ;; be the start of the current environment to be
+                ;; found by `reftex-label-info'.
+                 (setq bound (match-beginning 0))
 
                  ;; Insert in List
                  (setq toc-entry (reftex-section-info file))




reply via email to

[Prev in Thread] Current Thread [Next in Thread]