Function: unix-filename-rubout
unix-filename-rubout is an interactive and byte-compiled function
defined in simple.el.gz.
Signature
(unix-filename-rubout ARG)
Documentation
Kill ARG Unix-words backwards, also treating slashes as word delimiters.
A Unix-word is whitespace-delimited. Interactively, ARG is the numeric prefix argument, defaulting to 1. A negative ARG means to kill forwards.
This is like unix-word-rubout (which see), but / and \ are also
treated as delimiting words. See 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-filename-rubout (arg)
"Kill ARG Unix-words backwards, also treating slashes as word delimiters.
A Unix-word is whitespace-delimited.
Interactively, ARG is the numeric prefix argument, defaulting to 1.
A negative ARG means to kill forwards.
This is like `unix-word-rubout' (which see), but `/' and `\\' are also
treated as delimiting words. See this command's namesake in Info node
`(readline)Commands For Killing'."
(interactive "^p")
(let ((start (point)))
(forward-unix-word (- arg) "\\\\/\s\f\n\r\t\v")
(kill-region start (point))))