Previous: Inserting Completions, Up: Basic Completion Commands


4.2.2 Deleting Characters

completion-delete-char
(<delete>) Delete forwards and, after deleting, reject any completion at the point. A prefix argument sets the number of characters to delete.
completion-backward-delete-char
Reject current completion, if there is one, and delete backwards. A prefix argument sets the number of characters to delete. If this deletes into a word and auto-completion-mode is enabled, complete what remains of that word.
completion-backward-delete-char-untabify
(DEL) Similar to completion-backward-delete-char, but changes tabs to spaces as it deletes.
completion-kill-word (C-<delete>)
completion-kill-sentence
completion-kill-sexp
completion-kill-paragraph
Similar to completion-delete-char, but kill forward until the end of the word/sentence/sexp/paragraph, instead of deleting individual characters.
completion-backward-kill-word (C-DEL)
completion-backward-kill-sentence
completion-backward-kill-sexp
completion-backward-kill-paragraph
Similar to completion-backward-delete-char, but kill backward until the end of the word/sentence/sexp/paragraph, instead of deleting individual characters.

These commands replace the standard Emacs deletion and kill commands, so that they deal sensibly with any provisional completion that might be encountered in the region being deleted. If auto-completion-mode is enabled, the backwards deletion commands also re-complete any remaining prefix when they delete backwards into part of a word (see Auto-Completion Mode). In all other respects, these commands are identical to the equivalent standard Emacs deletion commands with corresponding names.