]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/textmodes/reftex-parse.el (reftex-what-macro): Don't hardcode
authorStefan Monnier <monnier@iro.umontreal.ca>
Mon, 20 Sep 2010 13:27:59 +0000 (15:27 +0200)
committerStefan Monnier <monnier@iro.umontreal.ca>
Mon, 20 Sep 2010 13:27:59 +0000 (15:27 +0200)
point-min==1.

lisp/ChangeLog
lisp/textmodes/reftex-parse.el

index eb85c0dc2622fabd5d5026a5832bcda8b9e0f623..d73f03a2cf1f43fc34551d791d49b81183396a9a 100644 (file)
@@ -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.
index 58aaaa47a3870a8909997450f56522767b6cad1e..4854ca7ba3b530a1dd23c7a06def008b4eb106cf 100644 (file)
@@ -775,7 +775,7 @@ of master file."
           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)