; * lisp/simple.el (kill-region-dwim): Try to simplify docstring.

This commit is contained in:
Sean Whitton 2024-09-14 17:09:48 +01:00
parent 7451bd6e39
commit a6631eaec3

View file

@ -5819,11 +5819,12 @@ move the yanking point; just return the Nth kill forward."
(defcustom kill-region-dwim nil
"Behavior when `kill-region' is invoked without an active region.
If set to nil (default), then the behavior of `kill-region' will not
change. If set to `emacs-word', then kill the last word as defined by
the current major mode. If set to `unix-word', then kill the last word
in the style of a shell like Bash, disregarding the major mode like with
`unix-word-rubout'."
If set to nil (default), kill the region even if it is inactive,
signalling an error if there is no region.
If set to `emacs-word', kill the last word as defined by the
current major mode.
If set to `unix-word', kill the last word in the style of a shell like
Bash. This ignores the major mode like `unix-word-rubout' (which see)."
:type '(choice (const :tag "Kill a word like `backward-kill-word'" emacs-word)
(const :tag "Kill a word like Bash would" unix-word)
(const :tag "Do not kill anything" nil))