[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: |
Tue, 03 Sep 2024 17:27:59 +0300 |
> From: Robert Pluim <rpluim@gmail.com>
> Cc: Philip Kaludercic <philipk@posteo.net>, rms@gnu.org,
> 69097@debbugs.gnu.org, juri@linkov.net, stefankangas@gmail.com,
> acorallo@gnu.org, spwhitton@spwhitton.name
> Date: Tue, 03 Sep 2024 15:53:39 +0200
>
> >>>>> On Tue, 03 Sep 2024 15:21:54 +0300, Eli Zaretskii <eliz@gnu.org> said:
>
> >> From: Philip Kaludercic <philipk@posteo.net>
> >> Cc: Eli Zaretskii <eliz@gnu.org>, Stefan Kangas
> <stefankangas@gmail.com>,
> >> Andrea Corallo <acorallo@gnu.org>, juri@linkov.net, rms@gnu.org,
> >> 69097@debbugs.gnu.org
> >> Date: Mon, 02 Sep 2024 21:12:01 +0000
> >>
> >> I had misremembered the last state of this patch. It is easier to just
> >> have a tristate option. Here is the updated proposal:
>
> Eli> Thanks.
>
> >> +(defcustom kill-word-if-no-region nil
>
> Eli> I would call this 'kill-region-dwim' instead.
>
> >> + "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
> >> +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)
>
> Eli> :version tag is missing.
>
> Is it worth allowing a user-specified function?
I don't understand what you are asking, sorry. Allow a function where
and to do what?
- bug#69097: [PATCH] Add 'kill-region-or-word' command, (continued)
- bug#69097: [PATCH] Add 'kill-region-or-word' command, Eli Zaretskii, 2024/09/02
- bug#69097: [PATCH] Add 'kill-region-or-word' command, Stefan Kangas, 2024/09/02
- bug#69097: [PATCH] Add 'kill-region-or-word' command, Philip Kaludercic, 2024/09/02
- bug#69097: [PATCH] Add 'kill-region-or-word' command, Sean Whitton, 2024/09/02
- bug#69097: [PATCH] Add 'kill-region-or-word' command, Philip Kaludercic, 2024/09/02
- bug#69097: [PATCH] Add 'kill-region-or-word' command, Sean Whitton, 2024/09/02
- bug#69097: [PATCH] Add 'kill-region-or-word' command, Philip Kaludercic, 2024/09/02
- bug#69097: [PATCH] Add 'kill-region-or-word' command, Eli Zaretskii, 2024/09/03
- bug#69097: [PATCH] Add 'kill-region-or-word' command, Robert Pluim, 2024/09/03
- bug#69097: [PATCH] Add 'kill-region-or-word' command,
Eli Zaretskii <=
- bug#69097: [PATCH] Add 'kill-region-or-word' command, Robert Pluim, 2024/09/03
- bug#69097: [PATCH] Add 'kill-region-or-word' command, Eli Zaretskii, 2024/09/03
- bug#69097: [PATCH] Add 'kill-region-or-word' command, Philip Kaludercic, 2024/09/03
- bug#69097: [PATCH] Add 'kill-region-or-word' command, Robert Pluim, 2024/09/03
- bug#69097: [PATCH] Add 'kill-region-or-word' command, Eli Zaretskii, 2024/09/04
- bug#69097: [PATCH] Add 'kill-region-or-word' command, Sean Whitton, 2024/09/04
- bug#69097: [PATCH] Add 'kill-region-or-word' command, Eli Zaretskii, 2024/09/04
- bug#69097: [PATCH] Add 'kill-region-or-word' command, Philip Kaludercic, 2024/09/05
- bug#69097: [PATCH] Add 'kill-region-or-word' command, Eli Zaretskii, 2024/09/05
- bug#69097: [PATCH] Add 'kill-region-or-word' command, Philip Kaludercic, 2024/09/05