From 1d4c12573891112e58eb74035bc1f3fe213e0ca2 Mon Sep 17 00:00:00 2001 From: Juanma Barranquero Date: Thu, 6 May 2004 00:43:33 +0000 Subject: [PATCH] (electric-help-command-loop): Check whether the last character is visible, not (point-max). --- lisp/ehelp.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/ehelp.el b/lisp/ehelp.el index 641faca557a..e80c129d3ea 100644 --- a/lisp/ehelp.el +++ b/lisp/ehelp.el @@ -215,7 +215,7 @@ BUFFER is put into `default-major-mode' (or `fundamental-mode') when we exit." ;beginning-of-buffer - otherwise pos-visible-in-window-p ;will yield a wrong result. (let ((min (pos-visible-in-window-p (point-min))) - (max (pos-visible-in-window-p (point-max)))) + (max (pos-visible-in-window-p (1- (point-max))))) (cond (isearch-mode 'noprompt) ((and min max) (cond (standard "Press q to exit, r to retain ") -- 2.39.2