From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id MA9cMsumCGegBgAAe85BDQ:P1 (envelope-from ) for ; Fri, 11 Oct 2024 04:17:16 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id MA9cMsumCGegBgAAe85BDQ (envelope-from ) for ; Fri, 11 Oct 2024 06:17:15 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1728620235; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=IdBP2/6aQA5wWFUkpoEhzB5Im5JMAdyF7KM3rJtix4U=; b=OiruEA/SLJFYt+3atm5r3KRiJG+GrlquTiyQp6Vjcdc1vcbIS0oJBriI8fbCmtZg1jU0jG mAjh/hH+I9/sSq7jqHkqcNzxOQV5OJyQTezzdM5oHHdmSOkhyyL3EM4URljZ+NV7Syonwq 11JdBbFLqS9bw6OgLS3yE1a6EtkYT0Qs1bNbkkPuxrNmZ53GP+cznaqnLuFPvmnj8HrbnE tSiZpdViNj+6Qs5+L3UQ+kMmH4PSDhqE5jiPAoT9eNCgao8ZcgYMltXNl1svUZIei6vFDr DALtrXUDdvJFOiyoDZYQnFkcIyrFldxoZjryytqHnI6e02/g4g5CijJIA52Nzg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1728620235; a=rsa-sha256; cv=none; b=sco1oM31JDNESeLalfhKQM3wcjnRPyr/kMShboH7fTD/HgyTgve+6wPgYaHkr9K+vTaL9/ rns2C8ky5rIIBG5Xf7wevg+365NQOJiZBdKmlGB3jwmSf7G9dVL6V/7yTebS7GgjHiYV7O iWcISOBt1g2+hK7braVMsjL3CczQCnv83iumKnaV8eOCGfwOF8kCaoa5B5rBzhfVFyDQl4 TscoGJx/x7QGWMOUgZFzF5Rn9Bw9AoiuHLkjwgd5LgnG2qrKsjMH0FfLgK3yZ63fQEgzZA U7BiyuLT6TnEwj6uJ/T55/sFaNTSJKMhXmI62JwYkcwgoooz25XlJklhpVwqtQ== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 2E1028026A for ; Fri, 11 Oct 2024 06:17:15 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sz74b-0008NS-BP; Fri, 11 Oct 2024 00:16:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sz74Z-0008Mb-Vr for emacs-orgmode@gnu.org; Fri, 11 Oct 2024 00:16:16 -0400 Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sz74W-000844-Vi for emacs-orgmode@gnu.org; Fri, 11 Oct 2024 00:16:15 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1sz74R-000AW4-BP for emacs-orgmode@gnu.org; Fri, 11 Oct 2024 06:16:07 +0200 X-Injected-Via-Gmane: http://gmane.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 Message-ID: <871q0n8ebi.fsf@protonmail.com> References: Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:Y9GUw3uPxsd4DtDfDIoT03gVLDk= Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -5 X-Spam_score: -0.6 X-Spam_bar: / X-Spam_report: (-0.6 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, INVALID_DATE=1.096, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Dilip From: Dilip via "General discussions about Org-mode." Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: 2.46 X-Spam-Score: 2.46 X-Migadu-Queue-Id: 2E1028026A X-TUID: DRtRvcB8yzsi 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