emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Dilip via "General discussions about Org-mode." <emacs-orgmode@gnu.org>
To: emacs-orgmode@gnu.org
Subject: Re: Elecrtic-pair-mode works incorrectly in code blocks
Date: Fri,11 Oct 2024 09:46:01 +0530	[thread overview]
Message-ID: <871q0n8ebi.fsf@protonmail.com> (raw)
In-Reply-To: FXM2VZuwpiwURtnPBGKJmafdNYRRUZ0UuRUX6jrlVmXD_sw5e5w8sBvF316gyQWTSZ_RVB1EH7VBrY3u4KXZXixWbk_sWBRIwm0vgCIbhGQ=@proton.me

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)
>   ;;     (org-cycle)
>   ;;   (yas-expand)))
>   ;;   ;; (my-completion-preview-insert)))
    () ### there was closing bracket here
> #+end_src

> Writing a closing bracket will make the cursor to jump to the next
> bracket.

I did not face this, writing closing bracket in first few lines anywhere
did not jump me, it inserted at point itself.

Although, I'd like to point that in ~org-edit-special~ the pairing works
as expected.

Emacs: GNU Emacs 31.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.43, cairo version 1.18.0)
Org: Org mode version 9.7.11 (9.7.11-6a5d0e @ /nix/store/8ci96509yzbng9nyb8wa9pfmp4ldmr2m-emacs-packages-deps/share/emacs/site-lisp/elpa/org-9.7.11/)

-- 
Best,
Dilip




  reply	other threads:[~2024-10-11  4:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-30 17:31 Elecrtic-pair-mode works incorrectly in code blocks the_wurfkreuz
2024-10-11  4:16 ` Dilip via General discussions about Org-mode. [this message]
2024-10-11 18:19   ` Dilip via General discussions about Org-mode.
2024-10-12  8:32 ` Ihor Radchenko

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=871q0n8ebi.fsf@protonmail.com \
    --to=emacs-orgmode@gnu.org \
    --cc=idlip@protonmail.com \
    /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).