From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id kOcxEEDeF2L7GwEAgWs5BA (envelope-from ) for ; Thu, 24 Feb 2022 20:36:32 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id wC6fDUDeF2L1PwEA9RJhRA (envelope-from ) for ; Thu, 24 Feb 2022 20:36:32 +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 D2F2F30F27 for ; Thu, 24 Feb 2022 20:36:31 +0100 (CET) Received: from localhost ([::1]:51424 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nNJug-0000Mp-Hl for larch@yhetil.org; Thu, 24 Feb 2022 14:36:30 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34662) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nNJmH-0001gs-SZ for emacs-orgmode@gnu.org; Thu, 24 Feb 2022 14:27:50 -0500 Received: from [2607:f8b0:4864:20::102d] (port=53973 helo=mail-pj1-x102d.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nNJmG-0002s7-7A for emacs-orgmode@gnu.org; Thu, 24 Feb 2022 14:27:49 -0500 Received: by mail-pj1-x102d.google.com with SMTP id bx5so2847411pjb.3 for ; Thu, 24 Feb 2022 11:27:47 -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=h0Rb5rttwV/FSPCY9/pK/CryDONLjb2Mx3WTMBI7ia0=; b=WEjdado1nnq4FDu9isv6NeOfWEMQ1SKcLbiQOgm4fAMXV1QmGgxnGckodbXjNVDrg9 ajPBeVKNVlV14CmGyEMZRlB3UPZU14/PdR0dXp12SVq22Fh80NO5QH/FsTfbSB6RBenq OBV0cWPIveyaVToGgn6mvUuz/eYNMuaZW6EHgCIf9TG64aXV8ALOjgyWeOZGe4ooOGMB xLy5CEyZobRfwsEs1QEU4fzTi5S4QZcyskhMRE/nGlt/N4vFhjw8KleEmx0N+kqpfDel 9Vf2Fm3XIq5qBsdlJdZdfPbj7em5xizg0+S+klcj/v9ztMkFE9bXqcQqlxba6dXPiFsn ewuw== 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=h0Rb5rttwV/FSPCY9/pK/CryDONLjb2Mx3WTMBI7ia0=; b=L1f+jjc1FZN0KvnCwzg/Y3AGBDdBlQBgLT2gQz4MRDg//9tRab6nK8dAhktwyptw/5 3GbYikg8E0zynxucapxgFB0ZKjGSJHvsszwfnKTOIalUPvKNXpSyzMCoPkLy8p2dff4N kbDeWbPYLD7M6FJuGODPIDLYdCPWb5vfuN4HfooiOJ3gKk7Ay1zBqSgN3jCdQrUQIBaW 1nTIOD0fq5LhjUCqUem+ersyT3Dy1fehAl74zatwhVay/UuWBeu0AhoSBH9FgugX7h6n toIZFBKGlXTExHGZJhwU/+fmbEbL1BUcVTDrrTq+vdL1DmMbAFj0eXx6Hl7nY/vNqpSM 4Zqg== X-Gm-Message-State: AOAM531gmiczVaNMAmhhW2CWvCYIppML7U9fLwxxC9JJuBpvIbNdK0OX mKmuhKulz5cpSkrg9KGdsWk= X-Google-Smtp-Source: ABdhPJzs0dPrs80qiZmXkFJbu0cpeexuYx34SCUfrV2TX+UJ3KGEByPT5+TbvdJCNzNlKvhHDsQeGQ== X-Received: by 2002:a17:90a:f8c:b0:1bc:cf23:2319 with SMTP id 12-20020a17090a0f8c00b001bccf232319mr3270910pjz.67.1645730865505; Thu, 24 Feb 2022 11:27:45 -0800 (PST) Received: from smtpclient.apple (casbs-pc-carballo.stanford.edu. [171.66.240.201]) by smtp.gmail.com with ESMTPSA id mu10-20020a17090b388a00b001bcc2d6f6a5sm121945pjb.10.2022.02.24.11.27.44 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 Feb 2022 11:27:45 -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: <87o82wo02a.fsf@localhost> Date: Thu, 24 Feb 2022 11:27:43 -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::102d (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::102d; envelope-from=apcarballo@gmail.com; helo=mail-pj1-x102d.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=1645731391; 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=h0Rb5rttwV/FSPCY9/pK/CryDONLjb2Mx3WTMBI7ia0=; b=MdK9Q1qRpV/hP4wBEkYtCrGlyKWZCKsG9Asd+JnmThvmu+srYiDQcSO801sZkIht2Mkd4o fUSrdOmWjLZrT8PUbtO3qfrcQDG5H3kG1sn2R9e47yo1+wO04Eg3DMB9kW19ItzdzKplXP Oyf4oJYO91UVx2lEW/0/PXN03j+9/F95wrDSoF7JZ6/DH8eu1RT6M/dX+JHKhYBj//QFOq zEq1cfzUaD97iw0P1lob4I9/BOMW7ihGTgazpbMzWP0GgOVj0OqcCT3uP/8HicvpJZxKl5 SZmX2tumzr7hDK0NAMiHksx0OUBHZKDXPWPGwBugfikJDhfULybEZAFEqvLbEw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1645731391; a=rsa-sha256; cv=none; b=FbEpZ0r1nBDS8foDUi4oOgW8+tVjxlAzx3ydCx44Ddx1Zam66NPuHIpLpIFyFeQPB3nwJd M1Ysjbsamf5RcWUk91IyEG7DlSAAg3QfNen/rXzZAmbxYp3x3zIERqL4ezTitvypTZ+o+G qt989kq4hhxVth8BMSebZZ3JT0XaA2qxwtL4eZt9dqP9gtyC/egFaiPq79opexVH9UF84L PZlimyoPB/RK6PyMyujQkKGPkaqanM1KypgyTDR13fbsfscMnwLGxNn+ZgEbHwe0OTtH78 hoUf+zl15jGgH2LvNt+3+OJTn8C6oxe9yIoRGjis6RidL/RQeqVavSvzwsWT1g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=WEjdado1; 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=WEjdado1; 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: D2F2F30F27 X-Spam-Score: -3.83 X-Migadu-Scanner: scn1.migadu.com X-TUID: khv+lIP+p2Pi 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 ``` (add-hook 'electric-quote-inhibit-functions #'org-in-src-block-p) ``` 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 Best,=20 Alejandro > 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