Elecrtic-pair-mode works incorrectly in code blocks

2024-09-30 Thread the_wurfkreuz
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

Re: [BUG] Incorrect cursor on using undo inside a source block [9.7.10 (release_9.7.10 @ /home/wurfkreuz/.source/emacs/lisp/org/)]

2024-08-19 Thread the_wurfkreuz
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

[BUG] Incorrect cursor on using undo inside a source block [9.7.10 (release_9.7.10 @ /home/wurfkreuz/.source/emacs/lisp/org/)]

2024-08-19 Thread the_wurfkreuz
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-

Org headings trigger is code blocks

2024-07-30 Thread the_wurfkreuz
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

[BUG] Incorrect source block indentation [9.8-pre (release_9.7.6-86-g571f1c)]

2024-07-08 Thread the_wurfkreuz
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.

Incorrect cursor placement after using 'undo'

2024-07-08 Thread the_wurfkreuz
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