# HG changeset patch # User Stefan Monnier # Date 943027504 0 # Node ID 8548cb8ad6e24e1f87c343f8341d68ae12ba2e9a # Parent aabdfbf65c68a016878df04df73e59777c92bf10 (PC-do-complete-and-exit): use minibuffer-prompt-end to detect an empty prompt. diff -r aabdfbf65c68 -r 8548cb8ad6e2 lisp/ChangeLog --- 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 + + * complete.el (PC-do-complete-and-exit): use minibuffer-prompt-end to + detect an empty prompt. + 1999-11-18 Dave Love * simple.el (input-mode-8-bit): Fix the customization. diff -r aabdfbf65c68 -r 8548cb8ad6e2 lisp/complete.el --- 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