diff options
| author | Chong Yidong | 2008-10-29 21:30:44 +0000 |
|---|---|---|
| committer | Chong Yidong | 2008-10-29 21:30:44 +0000 |
| commit | 8c9f211fd5a666aa3fb28931b00a6f0edb6902f7 (patch) | |
| tree | ad0e2ffccf2c4c93654990af2d58084b9922165d | |
| parent | 623e480f94461503bd9d1a372a1f1a0c20e502b5 (diff) | |
| download | emacs-8c9f211fd5a666aa3fb28931b00a6f0edb6902f7.tar.gz emacs-8c9f211fd5a666aa3fb28931b00a6f0edb6902f7.zip | |
(delete-minibuffer-contents): Delete all minibuffer contents instead
of just the current field.
| -rw-r--r-- | lisp/minibuffer.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el index 7626b5d1352..eb78bba80fc 100644 --- a/lisp/minibuffer.el +++ b/lisp/minibuffer.el | |||
| @@ -300,7 +300,9 @@ That is what completion commands operate on." | |||
| 300 | (defun delete-minibuffer-contents () | 300 | (defun delete-minibuffer-contents () |
| 301 | "Delete all user input in a minibuffer. | 301 | "Delete all user input in a minibuffer. |
| 302 | If the current buffer is not a minibuffer, erase its entire contents." | 302 | If the current buffer is not a minibuffer, erase its entire contents." |
| 303 | (delete-field)) | 303 | ;; We used to do `delete-field' here, but when file name shadowing |
| 304 | ;; is on, the field doesn't cover the entire minibuffer contents. | ||
| 305 | (delete-region (minibuffer-prompt-end) (point-max))) | ||
| 304 | 306 | ||
| 305 | (defcustom completion-auto-help t | 307 | (defcustom completion-auto-help t |
| 306 | "Non-nil means automatically provide help for invalid completion input. | 308 | "Non-nil means automatically provide help for invalid completion input. |