changeset 110444:6cf93d8fc391

* lisp/textmodes/reftex-parse.el (reftex-what-macro): Don't hardcode point-min==1.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Mon, 20 Sep 2010 15:27:59 +0200
parents f6272822d94c
children 8035d26918c9
files lisp/ChangeLog lisp/textmodes/reftex-parse.el
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Mon Sep 20 13:53:42 2010 +0200
+++ b/lisp/ChangeLog	Mon Sep 20 15:27:59 2010 +0200
@@ -1,5 +1,8 @@
 2010-09-20  Stefan Monnier  <monnier@iro.umontreal.ca>
 
+	* textmodes/reftex-parse.el (reftex-what-macro): Don't hardcode
+	point-min==1.
+
 	* textmodes/ispell.el: Fix commenting convention.
 	(ispell-parse-output): Simplify, use push.
 	(ispell-region): Use match-string-no-properties.
--- a/lisp/textmodes/reftex-parse.el	Mon Sep 20 13:53:42 2010 +0200
+++ b/lisp/textmodes/reftex-parse.el	Mon Sep 20 15:27:59 2010 +0200
@@ -775,7 +775,7 @@
           pos cmd-list cmd cnt cnt-opt entry)
       (save-restriction
         (save-excursion
-          (narrow-to-region (max 1 bound) (point-max))
+          (narrow-to-region (max (point-min) bound) (point-max))
           ;; move back out of the current parenthesis
           (while (condition-case nil
                      (progn (up-list -1) t)