aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/textmodes/reftex.el
diff options
context:
space:
mode:
authorStefan Monnier2003-05-13 20:42:19 +0000
committerStefan Monnier2003-05-13 20:42:19 +0000
commitea6a015d2ec79ac6ce3614f0ef3cb62d8baa2e7b (patch)
tree6750e5ac8e0cef1057c0c180a452d7700722173a /lisp/textmodes/reftex.el
parent4a9699d8c8c58515a8723e207d0cdef6054a46d0 (diff)
downloademacs-ea6a015d2ec79ac6ce3614f0ef3cb62d8baa2e7b.tar.gz
emacs-ea6a015d2ec79ac6ce3614f0ef3cb62d8baa2e7b.zip
(reftex-select-with-char): Don't assume that point-min == 1.
Diffstat (limited to 'lisp/textmodes/reftex.el')
-rw-r--r--lisp/textmodes/reftex.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/textmodes/reftex.el b/lisp/textmodes/reftex.el
index f484b1da9e2..72d670e6655 100644
--- a/lisp/textmodes/reftex.el
+++ b/lisp/textmodes/reftex.el
@@ -1,5 +1,5 @@
1;;; reftex.el --- minor mode for doing \label, \ref, \cite, \index in LaTeX 1;;; reftex.el --- minor mode for doing \label, \ref, \cite, \index in LaTeX
2;; Copyright (c) 1997, 1998, 1999, 2000 Free Software Foundation, Inc. 2;; Copyright (c) 1997, 1998, 1999, 2000, 2003 Free Software Foundation, Inc.
3 3
4;; Author: Carsten Dominik <dominik@science.uva.nl> 4;; Author: Carsten Dominik <dominik@science.uva.nl>
5;; Version: 4.18 5;; Version: 4.18
@@ -1965,12 +1965,12 @@ When DIE is non-nil, throw an error if file not found."
1965 (switch-to-buffer-other-window "*RefTeX Select*") 1965 (switch-to-buffer-other-window "*RefTeX Select*")
1966 (insert help-string) 1966 (insert help-string)
1967 (goto-char 1) 1967 (goto-char 1)
1968 (unless (and (pos-visible-in-window-p 1) 1968 (unless (and (pos-visible-in-window-p (point-min))
1969 (pos-visible-in-window-p (point-max))) 1969 (pos-visible-in-window-p (point-max)))
1970 (enlarge-window (1+ (- (count-lines 1 (point-max)) 1970 (enlarge-window (1+ (- (count-lines (point-min) (point-max))
1971 (reftex-window-height))))) 1971 (reftex-window-height)))))
1972 (setq truncate-lines t)) 1972 (setq truncate-lines t))
1973 (if (and (pos-visible-in-window-p 1) 1973 (if (and (pos-visible-in-window-p (point-min))
1974 (pos-visible-in-window-p (point-max))) 1974 (pos-visible-in-window-p (point-max)))
1975 nil 1975 nil
1976 (setq prompt (concat prompt (if scroll " (SPC/DEL=Scroll)" "")))) 1976 (setq prompt (concat prompt (if scroll " (SPC/DEL=Scroll)" ""))))