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

2024-09-01 Thread Sean Whitton
ful > for some given major mode and the fact that it is easier to implement. Please take a look at my longer message. I don't think it has been addressed. -- Sean Whitton

bug#72952: 30.0.90; Want way to break out of Eshell for loop

2024-09-02 Thread Sean Whitton
, you could use 'break'. Thanks. -- Sean Whitton

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

2024-09-02 Thread Sean Whitton
(next-single-char-property-change (point) 'read-only nil start)))) (goto-char beg)) (kill-region start (point -- Sean Whitton

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

2024-09-02 Thread Sean Whitton
ch with the simpler version, and then Sean can add his behaviour in a > second patch so that the attribution remains correct. I think a tristate option is preferable to this. If the user wants something of their own they can just write their own command. -- Sean Whitton

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

2024-09-02 Thread Sean Whitton
Hello, On Mon 02 Sep 2024 at 09:42pm +01, Sean Whitton wrote: > Hello, > > On Mon 02 Sep 2024 at 08:39pm GMT, Philip Kaludercic wrote: > >> How about this suggestion: We add a generic kill-region-or-word >> command, and a user option for a function (set to either &g

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

2024-09-04 Thread Sean Whitton
gion-extract-function 'delete)) > + ((filter-buffer-substring beg end 'delete) Shall I rather commit this as an independent unix-word-rubout? Improves attribution, and it's independently useful. -- Sean Whitton

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

2024-09-05 Thread Sean Whitton
(funcall region-extract-function 'delete)) >>> + ((filter-buffer-substring beg end 'delete) >> >> Shall I rather commit this as an independent unix-word-rubout? >> >> Improves attribution, and it's independently useful. > > As a standalone command? I mean, yeah, I have had it on my C-w for years. Probably some other people have implementations too. -- Sean Whitton

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

2024-09-06 Thread Sean Whitton
. unix-word-rubout to follow. -- Sean Whitton >From 4cb701150976cdb91658a1c82edd6e8270fd26c8 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Fri, 6 Sep 2024 11:35:46 +0100 Subject: [PATCH] New command forward-unix-word * lisp/simple.el (forward-unix-word): New command. * doc/lispref/position

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

2024-09-06 Thread Sean Whitton
Hello, On Fri 06 Sep 2024 at 11:36am +01, Sean Whitton wrote: > diff --git a/doc/lispref/positions.texi b/doc/lispref/positions.texi > index 37cfe264157..b576df82382 100644 > --- a/doc/lispref/positions.texi > +++ b/doc/lispref/positions.texi > @@ -275,6 +275,19 @@ Word Motion &

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

2024-09-06 Thread Sean Whitton
ord-rubout. I've also included a second readline command which I have bound in my own init. It demonstrates why there is a need for DELIM. By the way, forward-unix-word could also be a plain function. I made it a command because, well, why not. Let me know if you think it should be switched ba

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

2024-09-07 Thread Sean Whitton
7;s fine. I've turned it back into a function. > Should we also treat a backslash as delimiter, for MS-Windows? Good idea. That's more useful. -- Sean Whitton >From 9163f6ab16816702f8bc6acb6f22734eb57acfc7 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Fri, 6 Sep 2024 11:35

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

2024-09-07 Thread Sean Whitton
Hello, On Sat 07 Sep 2024 at 10:08pm +01, Sean Whitton wrote: > Hello, > > Thank you both for the feedback. Attached is an updated version. I neglected to update the docstring for adding backslashes as delimiters in unix-filename-rubout. Fixed in the attached, along with a another

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

2024-09-09 Thread Sean Whitton
Hello Eli, Any comments on v4? I'd like to commit to unblock Philip. Thanks! -- Sean Whitton

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

2024-09-09 Thread Sean Whitton
Hello, On Mon 09 Sep 2024 at 10:03pm +03, Eli Zaretskii wrote: >> From: Sean Whitton >> Cc: phil...@posteo.net, stefankan...@gmail.com, acora...@gnu.org, >> j...@linkov.net, r...@gnu.org, 69...@debbugs.gnu.org >> Date: Mon, 09 Sep 2024 18:54:16 +0100 >> >&

bug#72952: 30.0.90; Want way to break out of Eshell for loop

2024-09-12 Thread Sean Whitton
Hello, On Sun 08 Sep 2024 at 05:59pm -07, Jim Porter wrote: > On 9/2/2024 1:26 AM, Sean Whitton wrote: >> X-debbugs-cc: jporterb...@gmail.com >> I am trying to run a series of tests like this: >> % for test in tests/tests/tagupl* { tests/using-intree $test } >> I