changeset 26508:8548cb8ad6e2

(PC-do-complete-and-exit): use minibuffer-prompt-end to detect an empty prompt.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Fri, 19 Nov 1999 16:05:04 +0000
parents aabdfbf65c68
children 26958042b58d
files lisp/ChangeLog lisp/complete.el
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Fri Nov 19 12:46:32 1999 +0000
+++ b/lisp/ChangeLog	Fri Nov 19 16:05:04 1999 +0000
@@ -1,3 +1,8 @@
+1999-11-19  Stefan Monnier  <monnier@cs.yale.edu>
+
+	* complete.el (PC-do-complete-and-exit): use minibuffer-prompt-end to
+	detect an empty prompt.
+
 1999-11-18  Dave Love  <fx@gnu.org>
 
 	* simple.el (input-mode-8-bit): Fix the customization.
--- a/lisp/complete.el	Fri Nov 19 12:46:32 1999 +0000
+++ b/lisp/complete.el	Fri Nov 19 16:05:04 1999 +0000
@@ -326,7 +326,7 @@
     (PC-do-complete-and-exit)))
 
 (defun PC-do-complete-and-exit ()
-  (if (= (buffer-size) 0)  ; Duplicate the "bug" that Info-menu relies on...
+  (if (= (point-max) (minibuffer-prompt-end))  ; Duplicate the "bug" that Info-menu relies on...
       (exit-minibuffer)
     (let ((flag (PC-do-completion 'exit)))
       (and flag