* Incorrect cursor placement after using 'undo'
@ 2024-07-01 7:08 the_wurfkreuz
2024-07-09 18:53 ` Ihor Radchenko
0 siblings, 1 reply; 2+ messages in thread
From: the_wurfkreuz @ 2024-07-01 7:08 UTC (permalink / raw)
To: emacs-orgmode@gnu.org
[-- Attachment #1: Type: text/plain, Size: 1122 bytes --]
When i comment something inside a source block but then decide to undo
the commenting, the cursor ends up on the very first line of the block.
Steps to reproduce:
1. emacs -Q
2. In a scratch buffer activate org-mode and paste this:
#+begin_src fundamental
aoisretnoairsetn
oarisetnoairse
aorsoietnoairsent
arsnthi
arisentnhairsnht
aoirsetnaoi
oairsetnoarisetn
#+end_src
3. Apply commenting using 'comment-region' with any characters of you
choice on the lines on the bottom half of the block:
#+begin_src fundamental
aoisretnoairsetn
oarisetnoairse
aorsoietnoairsent
arsnthi
;; arisentnhairsnht
;; aoirsetnaoi
;; oairsetnoarisetn
#+end_src
4. After that press 'C-x u' to execute 'undo'. The cursor will end up at
the start of the block. I expect it to be somewhere within the commented
lines: on the line where the commenting initially applied or on the line where
the commenting ended.
Emacs : GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.41, cairo version 1.18.0)
of 2024-04-23
Package: Org mode version 9.8-pre (release_9.7.6-86-g571f1c @ /home/wurfkreuz/.emacs.d/straight/build/org/)
[-- Attachment #2: Type: text/html, Size: 3079 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Incorrect cursor placement after using 'undo'
2024-07-01 7:08 Incorrect cursor placement after using 'undo' the_wurfkreuz
@ 2024-07-09 18:53 ` Ihor Radchenko
0 siblings, 0 replies; 2+ messages in thread
From: Ihor Radchenko @ 2024-07-09 18:53 UTC (permalink / raw)
To: the_wurfkreuz; +Cc: emacs-orgmode@gnu.org
the_wurfkreuz <the_wurfkreuz@proton.me> writes:
> When i comment something inside a source block but then decide to undo
> the commenting, the cursor ends up on the very first line of the block.
>
> Steps to reproduce:
> ...
Thanks for reporting!
Fixed, on main.
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=2d9e70b80
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-07-09 18:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-01 7:08 Incorrect cursor placement after using 'undo' the_wurfkreuz
2024-07-09 18:53 ` Ihor Radchenko
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.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).