From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 8AawEhbeh2G4KgEAgWs5BA (envelope-from ) for ; Sun, 07 Nov 2021 15:09:26 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id AJo5Dhbeh2FKWwAAbx9fmQ (envelope-from ) for ; Sun, 07 Nov 2021 14:09:26 +0000 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 8B232C3A9 for ; Sun, 7 Nov 2021 15:09:25 +0100 (CET) Received: from localhost ([::1]:33270 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mjirM-000360-L2 for larch@yhetil.org; Sun, 07 Nov 2021 09:09:24 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:55396) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mjiqT-00033a-IH for emacs-orgmode@gnu.org; Sun, 07 Nov 2021 09:08:29 -0500 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]:50840) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mjiqR-0003n7-Hi for emacs-orgmode@gnu.org; Sun, 07 Nov 2021 09:08:29 -0500 Received: by mail-wm1-x336.google.com with SMTP id 133so10971416wme.0 for ; Sun, 07 Nov 2021 06:08:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=andrew.cmu.edu; s=google-2021; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=WEio17FZn/qGw+74DbqZkh80JFjPN5nWTDw9Bkbe2Hc=; b=jLhfbKaGaT05BD2ZZWT9jyoAiBPRIlmSV2JJaT+vtH71PtnTmIwfubdMVUbJtujlNB N8dfms1ljrODlL1pprqrzFXJtvc0fAEmj5Cu4jEnCbIsZg32jYzt2GUV+X4Xc6FezaPc j54qgs4gyUF7Ah8zMmvmJ8RQdwjDz80gmqMBIP0xnYLhvZ7+69QnL5HXsT4QVr0vBffQ fWw144N6NDqC+K0ODyvyh/DL+xMT6iRWwQ/NEYZZsUEdjjAevTkAJdCgTMANPGwNoczH fzBWp06EXAaDzXF+DpqBQd9Wy6FotosTz+Zgn9V0Roq6dYKhbJGVDTXIboWij8ghLCIe SIbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=WEio17FZn/qGw+74DbqZkh80JFjPN5nWTDw9Bkbe2Hc=; b=qrvvla1VbBr9pLcnM+O6qdVMNNXyExkd1M8dUbAi9uyOpF5jpnk4KgYNxRJabBqMk3 p3G2C0inYRe0Tri17kpqWxJdWQ8Ghjou5Vpa9RUt0nVYC8Hn1lBhM9Yp+Jrl5/zyjMub 2eElcLM5WtNUSTatw9162Q94ecZrR8HP3e6PRdEMRzGhvxSQEyljO1l+4XWzK1ECiWSY bmouOWvbwpeHBO3J42Jjs0Xh33EP/aa2IeciRqAfI1QN5sQ6WDC6B2qSCTnJHK2gTaU3 Fd9PD/UXPeqTWChpoRbIXSvC6KJH7yPsbdqja5wQo5Z9W67u+pAq3l/c29OQaXTpnF0D dAUA== X-Gm-Message-State: AOAM532vnNrMqzvlt6XHBCRm0mx2s9dozwK4X7BU4n7LalTF3W8O6qT+ EM/mkI61zhFbmhy7aDT2bGHnh9n5pOxxY//OOwe2A4Y6Jhc= X-Google-Smtp-Source: ABdhPJwIwhWJZyCie6AuEoINBc7pxZMstYjj4f7SxYlxcIRJI2zp6dQnDZXBoa4lhumqbxux+d4MFJqKiix5ywjh+co= X-Received: by 2002:a05:600c:21c3:: with SMTP id x3mr45608218wmj.13.1636294105582; Sun, 07 Nov 2021 06:08:25 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: John Kitchin Date: Sun, 7 Nov 2021 09:08:14 -0500 Message-ID: Subject: Re: issue using org-export-before-parsing-hook in a src-block To: org-mode-email Content-Type: multipart/alternative; boundary="000000000000e950e505d0336822" Received-SPF: pass client-ip=2a00:1450:4864:20::336; envelope-from=johnrkitchin@gmail.com; helo=mail-wm1-x336.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.248, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1636294165; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=WEio17FZn/qGw+74DbqZkh80JFjPN5nWTDw9Bkbe2Hc=; b=gcqBgNWkQwI2b+FGHQdFCV6SU2+4r0uS/tdRdzgU8otGcPgCgoyULRtNPRdtqmU23aPihS CR38Vir57/SJ56Hu7Xb0wB4QN1pGPDUKKmNvtf9BlL0aMLjfg7BTH7GqC+tTBt2dy9DIQn WhhrNS1AmyOdx3Tjn3wdl27CjHcXk6bUj/9sWG2d9DK3GdiGISHgaghLgw0wLbTP+9UeiY 8M/LajLHCyf9wfiEtZH9aL+Ejl6hSY38+KG5lSVad0Bn2SBYyf6xXVp3vaPT1Zq5GsDNG1 XOKQGt90TAR+q7q6vUDTt3ywjekv61ee7WnLIVOkzb5FoXlzt+zOJv9HiCtfag== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1636294165; a=rsa-sha256; cv=none; b=RvAAqhzBHBWESCmZ2whBm5LkpjkfCANSAetzfk94Jpr5YQ26k3AJjEEMDusQvc+B5u5hGd iF+/bEtV0usBioLteVT4GtYDzy7/oyRaxavOHhQcYtx1bKEYliPE27m4sDfZMxcM2ssppn GBwgCiGKmRafluKe1PvdjCEahqCNtZrDlk5U2OlH7qCsGhbaV9VYGFtMryLGZmRcqzcm7j LPXQ2iWhch2EZhmOKJeS95y1g6DYrF/qxJP04LCNXIpBWaYw4wGglgMvwENfo0FDzPRY/7 eYk6sLUSXLWvn4nCQ7jTRrAgNX/EpwJgjr0N0as2qAZzTpTGHW9sjTPWCUSykg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=andrew.cmu.edu header.s=google-2021 header.b=jLhfbKaG; dmarc=pass (policy=none) header.from=andrew.cmu.edu; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -3.12 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=andrew.cmu.edu header.s=google-2021 header.b=jLhfbKaG; dmarc=pass (policy=none) header.from=andrew.cmu.edu; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 8B232C3A9 X-Spam-Score: -3.12 X-Migadu-Scanner: scn0.migadu.com X-TUID: zWDUk5+Rqv55 --000000000000e950e505d0336822 Content-Type: text/plain; charset="UTF-8" I should also add I see the same error if I just run #+BEGIN_SRC emacs-lisp (org-org-export-as-org) #+END_SRC and I see the same behavior with an emacs -q session. John ----------------------------------- Professor John Kitchin (he/him/his) Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu On Sun, Nov 7, 2021 at 9:04 AM John Kitchin wrote: > If I run this block in an org file: > > #+BEGIN_SRC emacs-lisp > (let ((org-export-before-parsing-hook '((lambda (_backend) nil)))) > (org-org-export-as-org)) > #+END_SRC > > I get a traceback that starts with > Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p nil) > goto-char(nil) > (if existing-result (goto-char existing-result) (goto-char > (org-element-property :end inline)) (skip-chars-backward " \11")) > > that seems to originate in > > org-babel-insert-result(# ("value" "replace") > ("emacs-lisp" "(let ((org-export-before-parsing-hook '((lambda (_..." > ((:colname-names) (:rowname-names) (:result-params "value" "replace") > (:result-type . value) (:results . "value replace") (:exports . "both") > (:session . "none") (:cache . "no") (:noweb . "no") (:hlines . "no") > (:tangle . "no") (:eval . "never-export")) "" nil 1 "(ref:%s)") nil > "emacs-lisp") > > If I put :results silent that doesn't happen. Is this a bug? > > The org-file is empty in this case except for that block, but that doesn't > seem to matter. > > John > > ----------------------------------- > Professor John Kitchin (he/him/his) > Doherty Hall A207F > Department of Chemical Engineering > Carnegie Mellon University > Pittsburgh, PA 15213 > 412-268-7803 > @johnkitchin > http://kitchingroup.cheme.cmu.edu > > --000000000000e950e505d0336822 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I should also add I see the same error if I just run
<= br>
#+BEGIN_SRC emacs-lisp
(org-org-export-as-org)
#+END_SR= C

and I see the same behavior with an emacs -q ses= sion.

John

-----------------------------------
Professor John Kitch= in (he/him/his)
Doherty Hall A207F
Department of Chemical Engineering=
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803<= /div>


On Sun, Nov 7, 2021 at 9:04 AM John = Kitchin <jkitchin@andrew.cmu.= edu> wrote:
If I run this block in an org file:

=
#+BEGIN_SRC emacs-lisp
(let ((org-export-before-parsing-hook = '((lambda (_backend) nil))))
=C2=A0 (org-org-export-as-org))
#+EN= D_SRC

I get a traceback that starts with
=
Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p= nil)
=C2=A0 goto-char(nil)
=C2=A0 (if existing-result (goto-char exi= sting-result) (goto-char (org-element-property :end inline)) (skip-chars-ba= ckward " \11"))

that seems to origin= ate in=C2=A0

=C2=A0 org-babel-insert-result(#<b= uffer *Org ORG Export*> ("value" "replace") ("e= macs-lisp" "(let ((org-export-before-parsing-hook '((lambda (= _..." ((:colname-names) (:rowname-names) (:result-params "value&q= uot; "replace") (:result-type . value) (:results . "value re= place") (:exports . "both") (:session . "none") (:= cache . "no") (:noweb . "no") (:hlines . "no"= ) (:tangle . "no") (:eval . "never-export")) "&quo= t; nil 1 "(ref:%s)") nil "emacs-lisp")
If I put :results silent that doesn't happen. Is this a bu= g?

The org-file is empty in this case except for t= hat block, but that doesn't seem to matter.

John

------= -----------------------------
Professor John Kitchin (he/him/his)
Doh= erty Hall A207F
Department of Chemical Engineering
Carnegie Mellon Un= iversity
Pittsburgh, PA 15213
412-268-7803
--000000000000e950e505d0336822--