[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Incorrect cursor placement after using 'undo'
From: |
the_wurfkreuz |
Subject: |
Incorrect cursor placement after using 'undo' |
Date: |
Mon, 01 Jul 2024 07:08:24 +0000 |
When i comment something inside a source block but then decide to undothe 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/)
- Incorrect cursor placement after using 'undo',
the_wurfkreuz <=