GNU bug report logs - #69097
[PATCH] Add 'kill-region-or-word' command

Previous Next

Package: emacs;

Reported by: Philip Kaludercic <philipk <at> posteo.net>

Date: Tue, 13 Feb 2024 09:57:02 UTC

Severity: normal

Tags: patch

Done: Sean Whitton <spwhitton <at> spwhitton.name>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Philip Kaludercic <philipk <at> posteo.net>
Cc: rms <at> gnu.org, 69097 <at> debbugs.gnu.org, juri <at> linkov.net, stefankangas <at> gmail.com, acorallo <at> gnu.org, spwhitton <at> spwhitton.name
Subject: bug#69097: [PATCH] Add 'kill-region-or-word' command
Date: Wed, 04 Sep 2024 14:08:51 +0300
> From: Philip Kaludercic <philipk <at> posteo.net>
> Cc: spwhitton <at> spwhitton.name,  stefankangas <at> gmail.com,  acorallo <at> gnu.org,
>   juri <at> linkov.net,  rms <at> gnu.org,  69097 <at> debbugs.gnu.org
> Date: Tue, 03 Sep 2024 16:32:46 +0000
> 
> I've added the NEWS entry from the last iteration of the patch (now
> actually as a patch, not just a diff):

Thanks.

> +---
> +** New user option 'kill-word-if-no-region'.
                       ^^^^^^^^^^^^^^^^^^^^^^
This is not the right name...

> +(defcustom kill-region-dwim nil
> +  "Behaviour when `kill-region' is invoked without an active region.
> +If set to nil (default), then an error occurs and nothing is killed.  If
> +set to `emacs-word', then kill a the last word as defined by the current
                             ^^^^^^^^^^
The "a" part should be removed.

> +major mode.  If set to `unix-word', then kill the last word in the style
> +of a shell like Bash, disregarding the major mode."
> +  :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))
> +  :group 'killing)

:version still missing.




This bug report was last modified 243 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.