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 code block try to insert an opening
bracket - '('. It wont be closed. Writing a closing bracket will make
the cursor to jump to the next bracket. At the same time i don't have
such problem outside of org-mode.

Emacs : GNU Emacs 31.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.43, 
cairo version 1.18.2)
of 2024-09-15
Package: Org mode version 9.8-pre (release_9.7.11-145-g28b631 @ 
/home/wurfkreuz/.source/org-mode/lisp/)

Reply via email to