]> git.eshelyaron.com Git - emacs.git/commitdiff
; * lisp/simple.el (kill-region-dwim): Try to simplify docstring.
authorSean Whitton <spwhitton@spwhitton.name>
Sat, 14 Sep 2024 16:09:48 +0000 (17:09 +0100)
committerEshel Yaron <me@eshelyaron.com>
Sat, 14 Sep 2024 20:35:36 +0000 (22:35 +0200)
(cherry picked from commit a6631eaec3c9eba7fd495b33377574bbe44ba215)

lisp/simple.el

index ff62ea62e0da894151a4653db3be6a9db5b631bf..f80c531cf7a77db7fff77504e1194075ef52dc9a 100644 (file)
@@ -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))