GNU bug report logs -
#65734
29.1.50; kill-whole-line and visibility of Org subtrees
Previous Next
Reported by: Sebastian Miele <iota <at> whxvd.name>
Date: Mon, 4 Sep 2023 14:49:02 UTC
Severity: normal
Found in version 29.1.50
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #98 received at 65734 <at> debbugs.gnu.org (full text, mbox):
> From: Sebastian Miele <iota <at> whxvd.name>
> Cc: 65734 <at> debbugs.gnu.org, yantar92 <at> posteo.net
> Date: Mon, 25 Dec 2023 19:53:36 +0100
>
> Attached are two patches. The first patch introduces the tests,
> including two tests that are expected to be failing for the current
> `kill-whole-line'.
>
> The test `kill-whole-line-read-only' does not fail because of the bug
> reported in this bug report, but because of another bug that I stumbled
> upon while investigating and testing: `kill-whole-line' always kills by
> two calls to `kill-region'. When the buffer is readonly, the first of
> the two calls to `kill-region' errors out / exits non-locally. That
> causes `kill-region' to omit to put the remaining stuff (from the second
> `kill-region') into the kill ring.
>
> The second patch fixes both bugs, and removes the corresponding
> `:expected-result :failed' from the tests.
Thanks.
The patches lack suitable ChangeLog-style commit log messages (see
CONTRIBUTE for details and you can use "git log" to show examples of
how we do this).
I'd also ask Stefan Monnier and Stefan Kangas to review the patch,
since this is an important command and I would like to avoid breaking
it.
This bug report was last modified 329 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.