(PC-do-complete-and-exit): use minibuffer-prompt-end to
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 19 Nov 1999 16:05:04 +0000 (16:05 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 19 Nov 1999 16:05:04 +0000 (16:05 +0000)
detect an empty prompt.

lisp/ChangeLog
lisp/complete.el

index 31a2383..80b23ef 100644 (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.
index 5d457e2..5b77c72 100644 (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