From de558d10c284d496921ee6a2c53274fa883f4770 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Mon, 20 Sep 2010 15:27:59 +0200 Subject: [PATCH] * lisp/textmodes/reftex-parse.el (reftex-what-macro): Don't hardcode point-min==1. --- lisp/ChangeLog | 3 +++ lisp/textmodes/reftex-parse.el | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index eb85c0dc262..d73f03a2cf1 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,8 @@ 2010-09-20 Stefan Monnier + * 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. diff --git a/lisp/textmodes/reftex-parse.el b/lisp/textmodes/reftex-parse.el index 58aaaa47a38..4854ca7ba3b 100644 --- a/lisp/textmodes/reftex-parse.el +++ b/lisp/textmodes/reftex-parse.el @@ -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) -- 2.11.4.GIT