Function: unix-word-rubout
unix-word-rubout is an interactive and byte-compiled function defined
in simple.el.gz.
Signature
(unix-word-rubout ARG)
Documentation
Kill ARG Unix-words backwards.
A Unix-word is whitespace-delimited. Interactively, ARG is the numeric prefix argument, defaulting to 1. A negative ARG means to kill forwards.
Unix-words differ from Emacs words in that they are always delimited by
whitespace, regardless of the buffer's syntax table.
Thus, this command emulates C-w at the Unix terminal or shell.
See also this command's namesake in Info node
(readline)Commands For Killing.
Probably introduced at or before Emacs version 31.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/simple.el.gz
(defun unix-word-rubout (arg)
"Kill ARG Unix-words backwards.
A Unix-word is whitespace-delimited.
Interactively, ARG is the numeric prefix argument, defaulting to 1.
A negative ARG means to kill forwards.
Unix-words differ from Emacs words in that they are always delimited by
whitespace, regardless of the buffer's syntax table.
Thus, this command emulates C-w at the Unix terminal or shell.
See also this command's namesake in Info node
`(readline)Commands For Killing'."
(interactive "^p")
(let ((start (point)))
(forward-unix-word (- arg))
(kill-region start (point))))