diff options
| author | Stefan Monnier | 1999-11-19 16:05:04 +0000 |
|---|---|---|
| committer | Stefan Monnier | 1999-11-19 16:05:04 +0000 |
| commit | d7a0208b27e7e63262c6f6edb1b3575b76ed7fee (patch) | |
| tree | a2bad64c475b313e42b9ba568c13c922cd3c1656 | |
| parent | c8b04710a0e1415a526757b3dcd6d6bb6c03a175 (diff) | |
| download | emacs-d7a0208b27e7e63262c6f6edb1b3575b76ed7fee.tar.gz emacs-d7a0208b27e7e63262c6f6edb1b3575b76ed7fee.zip | |
(PC-do-complete-and-exit): use minibuffer-prompt-end to
detect an empty prompt.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/complete.el | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 31a23836fd2..80b23efa48e 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 1999-11-19 Stefan Monnier <monnier@cs.yale.edu> | ||
| 2 | |||
| 3 | * complete.el (PC-do-complete-and-exit): use minibuffer-prompt-end to | ||
| 4 | detect an empty prompt. | ||
| 5 | |||
| 1 | 1999-11-18 Dave Love <fx@gnu.org> | 6 | 1999-11-18 Dave Love <fx@gnu.org> |
| 2 | 7 | ||
| 3 | * simple.el (input-mode-8-bit): Fix the customization. | 8 | * simple.el (input-mode-8-bit): Fix the customization. |
diff --git a/lisp/complete.el b/lisp/complete.el index 5d457e27069..5b77c72ff01 100644 --- a/lisp/complete.el +++ b/lisp/complete.el | |||
| @@ -326,7 +326,7 @@ See `PC-complete' for details." | |||
| 326 | (PC-do-complete-and-exit))) | 326 | (PC-do-complete-and-exit))) |
| 327 | 327 | ||
| 328 | (defun PC-do-complete-and-exit () | 328 | (defun PC-do-complete-and-exit () |
| 329 | (if (= (buffer-size) 0) ; Duplicate the "bug" that Info-menu relies on... | 329 | (if (= (point-max) (minibuffer-prompt-end)) ; Duplicate the "bug" that Info-menu relies on... |
| 330 | (exit-minibuffer) | 330 | (exit-minibuffer) |
| 331 | (let ((flag (PC-do-completion 'exit))) | 331 | (let ((flag (PC-do-completion 'exit))) |
| 332 | (and flag | 332 | (and flag |