emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: the_wurfkreuz <the_wurfkreuz@proton.me>
To: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Elecrtic-pair-mode works incorrectly in code blocks
Date: Mon, 30 Sep 2024 17:31:47 +0000	[thread overview]
Message-ID: <FXM2VZuwpiwURtnPBGKJmafdNYRRUZ0UuRUX6jrlVmXD_sw5e5w8sBvF316gyQWTSZ_RVB1EH7VBrY3u4KXZXixWbk_sWBRIwm0vgCIbhGQ=@proton.me> (raw)

[-- Attachment #1: Type: text/plain, Size: 726 bytes --]

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/)

[-- Attachment #2: Type: text/html, Size: 1499 bytes --]

                 reply	other threads:[~2024-09-30 17:33 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='FXM2VZuwpiwURtnPBGKJmafdNYRRUZ0UuRUX6jrlVmXD_sw5e5w8sBvF316gyQWTSZ_RVB1EH7VBrY3u4KXZXixWbk_sWBRIwm0vgCIbhGQ=@proton.me' \
    --to=the_wurfkreuz@proton.me \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).