1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-30 12:21:25 -08:00

(delete-minibuffer-contents): Delete all minibuffer contents instead

of just the current field.
This commit is contained in:
Chong Yidong 2008-10-29 21:30:44 +00:00
parent 623e480f94
commit 8c9f211fd5

View file

@ -300,7 +300,9 @@ That is what completion commands operate on."
(defun delete-minibuffer-contents ()
"Delete all user input in a minibuffer.
If the current buffer is not a minibuffer, erase its entire contents."
(delete-field))
;; We used to do `delete-field' here, but when file name shadowing
;; is on, the field doesn't cover the entire minibuffer contents.
(delete-region (minibuffer-prompt-end) (point-max)))
(defcustom completion-auto-help t
"Non-nil means automatically provide help for invalid completion input.