bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#69097: [PATCH] Add 'kill-region-or-word' command


From: Eli Zaretskii
Subject: bug#69097: [PATCH] Add 'kill-region-or-word' command
Date: Thu, 05 Sep 2024 12:52:40 +0300

> From: Philip Kaludercic <philipk@posteo.net>
> Cc: Eli Zaretskii <eliz@gnu.org>,  stefankangas@gmail.com,
>   acorallo@gnu.org,  juri@linkov.net,  rms@gnu.org,  69097@debbugs.gnu.org
> Date: Thu, 05 Sep 2024 09:39:32 +0000
> 
> >> I think I'm missing something here.  When it's nil and there is no
> >> *active* region, but there is a region, it should kill that, surely?
> >> With or without TMM.
> >
> > Yes, you are right.  It sounds like we made wrong assumptions about
> > what happens in that case, and should rethink this.
> >
> > C-w signals an error only if there's no mark in the buffer.
> >
> > So I guess we need a new command after all.
> 
> Not necessarily (unless I am mistaken above), but I am not opposed to it 
> either.

If we don't introduce a new command, then what will be the modified
behavior of kill-region?  Specifically, when will it delete the last
word?  In Emacs buffers, it is very rare not to have the mark, so it
sounds like the Bash-like behavior will very rarely if ever available,
no?





reply via email to

[Prev in Thread] Current Thread [Next in Thread]