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
aorsoiet
When I create a source block, pressing ENTER (RET) at the end of the
first line indents the cursor visually about 10 characters to the
right. If I press RET again to create a new line, it re-indents the
previously displaced line, but the new line is also incorrectly placed.
Steps to reproduce:
1.
For instance, i have a command that starts with an asterisk, and i want
to put it in a source block. However, doing so creates a heading.
Shouldn't the code block serve as a clear logical indicator that i don't
intend for that line to become a heading?
Example:
#+BEGIN_SRC
* hard nofile 2
#+E
Reproduction is in the attachment file.
Also, i've already written a similar report like a month and a half ago and
after the fix the bug disappeared. And now it's apparently here again.
Emacs : GNU Emacs 30.0.60 (build 4, x86_64-pc-linux-gnu, GTK+ Version 3.24.43,
cairo version 1.18.0)
of 2024-
Accidentally have written the wrong reproduction instructions.
So the text commented code should uncommented with 'uncomment region' and then
and 'undo' should be used.
Sent with [Proton Mail](https://proton.me/) secure email.
On Monday, August 19th, 2024 at 22:33, t
Reproduction:
1. emacs -Q
2. In the scratch buffer enable to org-mode.
3. Enable electric-pair-mode.
4. Paste this code:
#+begin_src emacs-lisp
;; (if (eq major-mode 'org-mode)
;; (org-cycle)
;; (yas-expand)))
;; ;; (my-completion-preview-insert)))
#+end_src
5. Then in the first line of the co