Re: Elecrtic-pair-mode works incorrectly in code blocks

2024-10-12 Thread Ihor Radchenko
the_wurfkreuz writes: > 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)))

Re: Elecrtic-pair-mode works incorrectly in code blocks

2024-10-11 Thread General discussions about Org-mode.
Quoting the reply: >> I confirm that it did not insert the closing bracket near those comment >> blocks. > So this is a bug that needs to fixed, isn't it? I'm not sure if this is bug or intended near comment block or how org handles/preserves the src block editing (indentation, pairs, other pr

Re: Elecrtic-pair-mode works incorrectly in code blocks

2024-10-10 Thread General discussions about Org-mode.
Hi the_wurfkreuz, I tried with the code block. I confirm that it did not insert the closing bracket near those comment blocks. But it did create pair brackets when I inserted after those 4 lines. > #+begin_src emacs-lisp ( ### No closing bracket here > ;; (if (eq major-mode 'org-mode) > ;

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