(PC-do-complete-and-exit): use minibuffer-prompt-end to

detect an empty prompt.
This commit is contained in:
Stefan Monnier 1999-11-19 16:05:04 +00:00
parent c8b04710a0
commit d7a0208b27
2 changed files with 6 additions and 1 deletions

View file

@ -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.

View file

@ -326,7 +326,7 @@ See `PC-complete' for details."
(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