From: Stefan Monnier Date: Tue, 13 May 2003 20:40:11 +0000 (+0000) Subject: (reftex-what-macro): Don't assume that point-min == 1. X-Git-Tag: ttn-vms-21-2-B4~10177 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=bd31028ffc2cc49dbc5f535b4a80a8894252364f;p=emacs.git (reftex-what-macro): Don't assume that point-min == 1. --- diff --git a/lisp/textmodes/reftex-parse.el b/lisp/textmodes/reftex-parse.el index 5d44767eab5..90a0ae3e6cf 100644 --- a/lisp/textmodes/reftex-parse.el +++ b/lisp/textmodes/reftex-parse.el @@ -1,5 +1,5 @@ ;;; reftex-parse.el --- parser functions for RefTeX -;; Copyright (c) 1997, 1998, 1999, 2000 Free Software Foundation, Inc. +;; Copyright (c) 1997, 1998, 1999, 2000, 2003 Free Software Foundation, Inc. ;; Author: Carsten Dominik ;; Version: 4.18 @@ -773,7 +773,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)