From d33232d8e6c8c536a6a84ca9735270af09471c50 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Sat, 14 Sep 2024 17:09:48 +0100 Subject: [PATCH] ; * lisp/simple.el (kill-region-dwim): Try to simplify docstring. (cherry picked from commit a6631eaec3c9eba7fd495b33377574bbe44ba215) --- lisp/simple.el | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lisp/simple.el b/lisp/simple.el index ff62ea62e0d..f80c531cf7a 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -5698,11 +5698,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)) -- 2.39.2