> I am not sure if two undos are unexpected in this particular scenario.

I mean, if i try to do the same thing outside of org-mode, like in the 
conf-mode, for example, then i would need to do a single undo. But here i need 
to do it 2 times.


On Wednesday, November 5th, 2025 at 22:17, Ihor Radchenko <[email protected]> 
wrote:

> the_wurfkreuz [email protected] writes:
> 
> > Steps to reproduce:
> > 1. Launch emacs `emacs -Q -L path/to/org-mode/lisp`
> > 2. Execute `org-mode`3. Past this into the scratch buffer:
> > #+begin_src conf
> > ...
> > # one two three four five six seven eight nine ten eleven twelve thirtheen 
> > fourteen
> > ...
> > 4. Move the cursor to the comment line "# one two three four...".
> > 5. Exectue this sequence of commands: move-end-of-line -> new-line
> > 6. Now try to undo the newline action by using the 'undo' command. You have 
> > to use it 3 times in order to do that.
> 
> 
> Two times for me: (1) undo block indentation; (2) undo the newline
> 
> > Expected behavior:
> > 
> > Using undo only once should reverse the changes from the newline command.
> 
> 
> I am not sure if two undos are unexpected in this particular scenario.
> 
> --
> Ihor Radchenko // yantar92,
> Org mode maintainer,
> 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

Reply via email to