From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id mNIUMHQLGGI1qAAAgWs5BA (envelope-from ) for ; Thu, 24 Feb 2022 23:49:24 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id sBvKKHQLGGLCZwEAG6o9tA (envelope-from ) for ; Thu, 24 Feb 2022 23:49:24 +0100 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 2AAFA41D29 for ; Thu, 24 Feb 2022 23:49:24 +0100 (CET) Received: from localhost ([::1]:38236 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nNMvL-0002Or-25 for larch@yhetil.org; Thu, 24 Feb 2022 17:49:23 -0500 Received: from eggs.gnu.org ([209.51.188.92]:56816) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nNMuY-0002OS-SC for emacs-orgmode@gnu.org; Thu, 24 Feb 2022 17:48:35 -0500 Received: from [2607:f8b0:4864:20::52d] (port=42708 helo=mail-pg1-x52d.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nNMuV-0004w3-Uw for emacs-orgmode@gnu.org; Thu, 24 Feb 2022 17:48:34 -0500 Received: by mail-pg1-x52d.google.com with SMTP id o8so2975028pgf.9 for ; Thu, 24 Feb 2022 14:48:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=wKYaTbrOXTLVlplmWTuVxDx/h7FYKt1HJffLHiz/x+8=; b=nYcR886Uelpr3jHrQSEYgddmKoY+bSmroHtrPjPv4jQRgAR2K6+GDCV4zuwl3NFoRw C5DnJDK01ewaUTypqjqg2jNdXJUObWkYMrNLlOccRcompm6Q/l9f1770d1NQFMqPiek+ /r265ir5HBHYqCm88bvCuQVLCzOLR2QVUzbqzd59AtXwHmaxVvfRIIt2ncdEHkcsgU7W Ts+XP8dJCj3+t1akbC+S4+jYn3a1lE6hUv+JIYLkdPeZoe8CUUQz308TwYNAo5NMme6e tX5k+2x1/kcfNwE1+r2sX5O5zUzDSL0dyn3udJ0Dy8K4wccp7U8R44qhitKwX5b/8hwo qvOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=wKYaTbrOXTLVlplmWTuVxDx/h7FYKt1HJffLHiz/x+8=; b=NIMTQVSg0ivZIAB3LHkRbw8e37+LvJde8H0fzd0uu/Cz29UCJF3SNpBOm1JgNP2xWr rMpOdg2nfR8L9XkqaNbkSje87YCghY2CrTmi7ZMS0AG/lccSUDwglzC+nAVnBOl3SFFh wrd+ILyI8qyb2cziYHUywndSJFSGTZNMZHKV/Ikua69ZsMq9m8uzkcoUujYVxZa1o4ZG jnIEN3OeKIybyLMGFu1TBNjIBLZ8NRi/8JfNoDNhYEmqjpbqQSUDtUa4gukBBIr2wLDL waHg9w1dB75ru/+aRLtHaEhHyj+wvkEdT5yVcgWgIWmAV1OVOaMmHK/qt2rk44CU8zpK iUoQ== X-Gm-Message-State: AOAM531Dc0oOzh8FKz17OlruE4fg8IC4EQ1v5MW1vFXp2jfIJstrXNQ/ yH2GUxGBs0HCST+g4tcj3oI= X-Google-Smtp-Source: ABdhPJx/b33lzPw0SC20IOdLAFhjySm5l0TXoWnpwV+OfBzLom9oo2OD4sWN3vHX96a4LVCQyOnrsQ== X-Received: by 2002:a63:5063:0:b0:372:fafe:7bd6 with SMTP id q35-20020a635063000000b00372fafe7bd6mr3776768pgl.70.1645742910456; Thu, 24 Feb 2022 14:48:30 -0800 (PST) Received: from smtpclient.apple (casbs-pc-carballo.stanford.edu. [171.66.240.201]) by smtp.gmail.com with ESMTPSA id v22-20020a17090ad59600b001b7deb42251sm6922497pju.15.2022.02.24.14.48.29 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 Feb 2022 14:48:30 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 15.0 \(3693.60.0.1.1\)) Subject: Re: [BUG] Prompted to submit (unsure what happened) [9.5.2 (9.5.2-g072523 @ /Users/apc/.emacs.d/straight/build/org/)] From: =?utf-8?Q?Alejandro_P=C3=A9rez_Carballo?= In-Reply-To: Date: Thu, 24 Feb 2022 14:48:28 -0800 Content-Transfer-Encoding: quoted-printable Message-Id: References: <4CD31E9A-7E0C-4638-B15A-EED9097C6B79@gmail.com> <875yp6p3xm.fsf@localhost> <87o82wo02a.fsf@localhost> To: Ihor Radchenko X-Mailer: Apple Mail (2.3693.60.0.1.1) X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::52d (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::52d; envelope-from=apcarballo@gmail.com; helo=mail-pg1-x52d.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1645742964; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=wKYaTbrOXTLVlplmWTuVxDx/h7FYKt1HJffLHiz/x+8=; b=gMda7boSRsD1midmsPCFKxMV5mEa5LBUudx9+0657ZSLuQ1xsXOK7a7JLxuXn4QBTbQ/G0 RACmfHOF2dJYq6O+bw1bQq7giQaqhZ5pKMZRVVd5ESPM4cXR7usFq6xKkig5n+CUYYFK2m G4057aidkKmK+Fsd9HK0cK2uoZQGt2xmfTJ5RAgoBp78tEq6MCttnFMIYkcsUkCxYlZhP1 GrvhuXN8Mv/uHSU2gFfWjGGW/xi99+g+gWqrDgnlUM5udi0xvUttOWpPXGnzWoAqsMcQnU nDnSI2r1aJvGI4N2TQTBwAzod1AJB38JXQTH0bRhDT4zCAn5EOzczCezUfuPzA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1645742964; a=rsa-sha256; cv=none; b=j/lzs+7gCQEB8cMWiAr8gSnFa8rCJKFY29GKeoXLTsBijqwI7eqknnlBfvRxJmzt3MPsK1 7btYP0Sn9zxxr0VACxrOBhn2abF/FmufNakPCsQOuvADI9VI5QnyljXRZFBF6b8x89tTXw gblBImo0o8CAKPYNtTI7YeB4ROicDIEe3rYD6BvOgA31wE3njomS/piCNFROJRRrpvbFLe 9jRaEs2EZkxsW3fcdv2ScMmAw7X9t99bMiU5QT4H8NjKl+YQsz0F15yxT1q4KWZqLZGlm6 +46d8i8tEllV0Q+5XUCs/fx3w0Lnx76OJin/MExVxnqEEawQa9HwREXXC+GQDw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=nYcR886U; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Spam-Score: -3.83 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=nYcR886U; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Queue-Id: 2AAFA41D29 X-Spam-Score: -3.83 X-Migadu-Scanner: scn1.migadu.com X-TUID: gdNDG00KoUPS One more question: wouldn't replacing `org-in-src-block-p' with a = function that calls `org-in-src-block-p' only when in org-mode and = returns `nil' elsewhere suffice to make something that's like = `org-in-src-block-p' but that will work outside org-mode? E.g.:=20 (defun my/org-in-src-block-p (&optional arg) (if (derived-mode-p 'org-mode) (org-in-src-block-p) nil)) I'm using this for now as a replacement and it seems to do the trick, at = least for my present purposes.=20 Best,=20 Alejandro > On Feb 24, 2022, at 11:27 AM, Alejandro P=C3=A9rez Carballo = wrote: >=20 > I found the source of the problem. I was trying to disable = `electric-quote-mode' when in a src block, and found this snippet = somewhere:=20 >=20 > ``` > (add-hook 'electric-quote-inhibit-functions #'org-in-src-block-p) > ``` >=20 > Any thoughts on alternative ways of achieving similar behavior? = Presumably I'd need to find a way to make = `electric-quote-inhibit-functions` vary depending on whether I am in = org-mode. But I'm very much an Elisp illiterate, so I'd appreciate any = suggestions here.=20 >=20 > Best,=20 >=20 > Alejandro >=20 >> On Feb 24, 2022, at 5:39 AM, Ihor Radchenko = wrote: >>=20 >> Alejandro P=C3=A9rez Carballo writes: >>=20 >>> Sorry about the unclear report. I was indeed _not_ in an org buffer. = I do not think I was using minibuffer completion, but I cannot remember. = I now just got a similar error message, this time when working on an = Elisp buffer. The error message says:=20 >>>=20 >>> Warning (org-element-cache): org-element--cache: Org parser error in = setup-biblio.el::5918. Resetting. >>> The error was: (error "rx =E2=80=98**=E2=80=99 range error") >>> Backtrace: >>> " backtrace-to-string(nil) >>> org-element-at-point() >>> org-in-src-block-p() >>> run-hook-with-args-until-success(org-in-src-block-p) >>> electric-quote-post-self-insert-function() >>> self-insert-command(1 34) >>> funcall-interactively(self-insert-command 1 34) >>> call-interactively(self-insert-command nil nil) >>> command-execute(self-insert-command) >>> " >>=20 >> Thanks for the backtrace! It is very clear that something in=20 >> electric-quote-mode-hook (or maybe in = electric-quote-inhibit-functions) >> is calling org-in-src-block-p. >>=20 >> org-in-src-block-p does not work outside Org mode. It used to (at = least, >> it did not throw an error), but it is not the case anymore and it was >> never guaranteed that Org functions can reliably work outside Org = mode. >>=20 >> I do not see explicit customisation adding org-in-src-block-p in your >> config from the first email. I presume that some third-party package = is >> adding org-in-src-block-p to electric-quote-mode. I would first try = to >> check the values of electric-quote-inhibit-functions and >> electric-quote-mode-hook and check if they contain org-* staff. Then, = I >> would bisect the config to find out which package is doing it. What = you >> are seeing is a bug in that package and should be reported. >>=20 >> Best, >> Ihor >=20