Function: backward-delete-char

backward-delete-char is a function alias and interactive for delete-backward-char, defined in simple.el.gz.

Signature

(backward-delete-char N &optional KILLFLAG)

Documentation

Delete the previous N characters (following if N is negative).

If Transient Mark mode is enabled, the mark is active, and N is 1, delete the text in the region and deactivate the mark instead. To disable this, set option delete-active-region(var)/delete-active-region(fun) to nil.

Optional second arg KILLFLAG, if non-nil, means to kill (save in kill ring) instead of delete. If called interactively, a numeric prefix argument specifies N, and KILLFLAG is also set if a prefix argument is used.

When killing, the killed text is filtered by filter-buffer-substring before it is saved in the kill ring, so the actual saved text might be different from what was killed.

In Overwrite mode, single character backward deletion may replace tabs with spaces so as to back over columns, unless point is at the end of the line.

Probably introduced at or before Emacs version 24.4.

Key Bindings

Aliases

backward-delete-char