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


Message #119 received at 69097 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>, Philip Kaludercic <philipk <at> posteo.net>,
 Andrea Corallo <acorallo <at> gnu.org>
Cc: juri <at> linkov.net, rms <at> gnu.org, 69097 <at> debbugs.gnu.org,
 spwhitton <at> spwhitton.name
Subject: Re: bug#69097: [PATCH] Add 'kill-region-or-word' command
Date: Mon, 2 Sep 2024 11:30:14 -0700
Eli Zaretskii <eliz <at> gnu.org> writes:

>> From: Philip Kaludercic <philipk <at> posteo.net>
>> Cc: Sean Whitton <spwhitton <at> spwhitton.name>,  juri <at> linkov.net,  rms <at> gnu.org,
>>   69097 <at> debbugs.gnu.org
>> Date: Sun, 01 Sep 2024 20:06:00 +0000
>>
>> Ping.  I am not sure how to proceed on this patch.  IIRC the issue was
>> that the notion of a word differs in Emacs and in Bash.  I am still in
>> favour of utilising Emacs's definition, as it remains more useful
>> for some given major mode and the fact that it is easier to implement.
>
> Or you could make the defcustom a tristate, and implement both
> behaviors...
>
> As for how to proceed: Stefan and Andrea, do you have an opinion on
> this?

Binding C-w to backward-kill-word, or some version thereof, is an old
Emacs power user trick that has been recommended in many places over the
years.  See, for example:
https://sites.google.com/site/steveyegge2/effective-emacs#h.p_ID_193
https://emacs-fu.blogspot.com/2009/11/copying-lines-without-selecting-them.html

So I think this command would be a good addition.  Making the word
boundary behaviour into a tristate option sounds like a reasonable way
forward, which should make everyone happy and let people experiment with
what works best for them.




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.