* bug#45947: 28.0.50; comment-dwim and undo in active region
@ 2021-01-18 5:53 Bodertz
2022-06-07 14:14 ` Lars Ingebrigtsen
0 siblings, 1 reply; 2+ messages in thread
From: Bodertz @ 2021-01-18 5:53 UTC (permalink / raw)
To: 45947
Undoing with an active region does not always work as expected if
`comment-dwim' is used. From emacs -Q:
1. Create a new buffer (C-x b new-buffer RET)
2. Insert A, B, and C on seperate lines as below
('*' represents point)
A
B
C*
3. Create an active region over the last two lines (C-SPC C-p C-a)
4. Use comment-dwim (M-; ; RET)
5. Create an active region over the last two lines (C-SPC M->)
6. Undo (C-/):
A
; *
; C
7. Undo again (C-/):
A
;*
; C
8. Undo again (C-/):
A
*
; C
In GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.23, cairo version 1.16.0)
Windowing system distributor 'System Description: openSUSE Tumbleweed
Configured using:
'configure
CONFIG_SHELL=/gnu/store/pwcp239kjf7lnj5i4lkdzcfcxwcfyk72-bash-minimal-5.0.16/bin/bash
SHELL=/gnu/store/pwcp239kjf7lnj5i4lkdzcfcxwcfyk72-bash-minimal-5.0.16/bin/bash
--prefix=/gnu/store/k327dvhl6d897r3jz7gyhdyf0rdvdarh-emacs-next-pgtk-28.0.50-0.d46a223
--enable-fast-install --with-pgtk --with-xwidgets --with-modules
--with-cairo --disable-build-details'
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#45947: 28.0.50; comment-dwim and undo in active region
2021-01-18 5:53 bug#45947: 28.0.50; comment-dwim and undo in active region Bodertz
@ 2022-06-07 14:14 ` Lars Ingebrigtsen
0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2022-06-07 14:14 UTC (permalink / raw)
To: Bodertz; +Cc: 45947
Bodertz <bodertz@gmail.com> writes:
> Undoing with an active region does not always work as expected if
> `comment-dwim' is used. From emacs -Q:
>
> 1. Create a new buffer (C-x b new-buffer RET)
>
> 2. Insert A, B, and C on seperate lines as below
> ('*' represents point)
>
> A
> B
> C*
>
> 3. Create an active region over the last two lines (C-SPC C-p C-a)
> 4. Use comment-dwim (M-; ; RET)
> 5. Create an active region over the last two lines (C-SPC M->)
> 6. Undo (C-/):
>
> A
> ; *
> ; C
(I'm going through old bug reports that unfortunately weren't resolved
at the time.)
I can reproduce this in Emacs 29, too. I wonder whether it's related to
bug#21523 -- it, too, mis-computes the active region at the edges and
includes the wrong thing.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-06-07 14:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-18 5:53 bug#45947: 28.0.50; comment-dwim and undo in active region Bodertz
2022-06-07 14:14 ` Lars Ingebrigtsen
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).