From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 2DR/GTPdh2FaJwEAgWs5BA (envelope-from ) for ; Sun, 07 Nov 2021 15:05:39 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id COskFTPdh2FbJQAAB5/wlQ (envelope-from ) for ; Sun, 07 Nov 2021 14:05:39 +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 07DB613FAC for ; Sun, 7 Nov 2021 15:05:38 +0100 (CET) Received: from localhost ([::1]:55312 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mjing-0007Ha-Bv for larch@yhetil.org; Sun, 07 Nov 2021 09:05:36 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:54546) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mjin1-0007DJ-Tf for emacs-orgmode@gnu.org; Sun, 07 Nov 2021 09:04:55 -0500 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]:36769) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mjimx-0002zG-T8 for emacs-orgmode@gnu.org; Sun, 07 Nov 2021 09:04:55 -0500 Received: by mail-wr1-x432.google.com with SMTP id s13so22132530wrb.3 for ; Sun, 07 Nov 2021 06:04:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=andrew.cmu.edu; s=google-2021; h=mime-version:from:date:message-id:subject:to; bh=s9n0sB9Wi/tQWWg0VkjttBn7eIdmsdgDd7jrYjeXPWw=; b=MPPcgTrPSCEEiZwPtYH5+L3gV6ZR/RcLqozGVjRC5rST41H0V90J7TXh9+fwD85X6B jW+iykKC5qUUutJ/MCElx6GeGiaA4YmyT2mItJgMsMZ6jD4M6OlhVod1tqmQo6WmEkrM HwWrz/BISVDMaixsrOcfvrGCzTW6MOJZbDVnMONDnXzIWKGEQOzJQq5FOeAsikd3ClxX vc7yATwvg4nlxmgQt5rVpp6c5baK9Ou0goWp1QJ5oXyzH3URGvYUDinzi65EiCNIAieG j+9sDQhUN1yu5u/94XHWkj8VVTONdlRUhJNddxssHIaYctz4PjZQS77eTGwAQ2tipTTi O8YA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=s9n0sB9Wi/tQWWg0VkjttBn7eIdmsdgDd7jrYjeXPWw=; b=EXEWd0ZVe4Tj262d+8B1a4+66ilVxl5oXdvyLySkWytNTTfO3UgFC78eXsWr0Pjg2Y XlQIItht3FeskzWVKZQ6eAqmn4RMTq9y45/yFzHh7n4aUe7CDZ0rU0VOxvg1szJVTGQg gKvF2Ggo6Y4JFdZtbmLKoYV2VKNUWxl1qfsV0gCOvQhU0LNDuf+gxOIlqam/uNOuSTB2 kf2DxqBaqWM07h/4hDjJ4gLummRb+2Ai0MqPAc5q4sCyyKMdlptTLYKAAhd2LgXbMLBY PPhe/QyLL1uhXcjWKfZm2uKCKRhm2vmuXncq0V0egubMGl/4BKEM/0S+oGefPCwLPTCL M+xA== X-Gm-Message-State: AOAM531rbxcBpWxaBBOiNFCUknC/ZJ3gEnRepEnOwnu1gmHfRr99D/AF JMuj8/neeBDPAnrk6MxdQyLppYiWUeQ0DtAAcZx41NuLaE0= X-Google-Smtp-Source: ABdhPJyH6AOwHj4SKsuNVoQwSYDRBpkVarCVns95Ak3aKqrS+asKnGV3AkAOA241u2+fXIcN+0IpXvjHbUe3ue9VVfg= X-Received: by 2002:adf:b748:: with SMTP id n8mr89574200wre.133.1636293889294; Sun, 07 Nov 2021 06:04:49 -0800 (PST) MIME-Version: 1.0 From: John Kitchin Date: Sun, 7 Nov 2021 09:04:38 -0500 Message-ID: Subject: issue using org-export-before-parsing-hook in a src-block To: org-mode-email Content-Type: multipart/alternative; boundary="0000000000000505d205d0335c0a" Received-SPF: pass client-ip=2a00:1450:4864:20::432; envelope-from=johnrkitchin@gmail.com; helo=mail-wr1-x432.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=1636293938; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=s9n0sB9Wi/tQWWg0VkjttBn7eIdmsdgDd7jrYjeXPWw=; b=aCG5z+M8Y00Kz7mWzEoCtgXafimguRN5sSDYkrom/JBdxwNvptVzVHb6ILdG54o/B8IZIb NAR8BC6vmrdT8WEpWMWie5SH4S57VDNczlQci7rIdTcHcwa4RlaDNr2Af9ew4EOuNrSEwd L+ccgUyilEz27g/rouvy+Gp0GgDJwmKulsPwaglmKVbczR+hcjMvXgXYcAbM6THf+Kf1po 8wGPgY1QEVr7AtA44Z9xqJBmHQYJGuzRivQnUMKruotGSx2rdKn6o8sIlnyJyd1wOy1wX9 YPr0v4IQruaSjy3BqRILwZMyZVcEMLb8WLig3yjRrKvHXlwmEWJQPut2VcpXAw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1636293938; a=rsa-sha256; cv=none; b=c4uC7yU57yVSoiKW7p54Jjqq6bUKcwcpQaGg56iY5aOE980YN1vQ1QOVS1SFQgD/RzNv3u O/Jsdmhd5G85blBRrFF3gSfI0YclWEaByke8rPCUKhq4WbKjC5n1tpO/i51CWTu+wO4K+E ZLUigzHnNZpIwpzN3jYeot+7VGyTT5v0FSN8ldYO1J3lpqgmJdyO/mCdLSzLKwsuYHnu2n pXh0eoGwmUTmGBJZleo+QUOGmPsiiHX5Fy0Ua/cmqDenngAXOMlTAY+CIuo/AF23qPxbDR WjoVlbb7R2JYI16xccECFn8Q+iDhe9QXhiGksnxBYeMW4ZNKBvliL+3fWylkZg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=andrew.cmu.edu header.s=google-2021 header.b=MPPcgTrP; 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=MPPcgTrP; 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: 07DB613FAC X-Spam-Score: -3.12 X-Migadu-Scanner: scn0.migadu.com X-TUID: UESzo48bimwK --0000000000000505d205d0335c0a Content-Type: text/plain; charset="UTF-8" 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 --0000000000000505d205d0335c0a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
If I run this block in an org file:

#+BEGIN_SRC emacs-lisp
(let ((org-export-before-parsing-hook = 9;((lambda (_backend) nil))))
=C2=A0 (org-org-export-as-org))
#+END_S= RC

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

that seems to originate= in=C2=A0

=C2=A0 org-babel-insert-result(#<buff= er *Org ORG Export*> ("value" "replace") ("emac= s-lisp" "(let ((org-export-before-parsing-hook '((lambda (_..= ." ((:colname-names) (:rowname-names) (:result-params "value"= ; "replace") (:result-type . value) (:results . "value repla= ce") (:exports . "both") (:session . "none") (:cac= he . "no") (:noweb . "no") (:hlines . "no") (= :tangle . "no") (:eval . "never-export")) "" = nil 1 "(ref:%s)") nil "emacs-lisp")

<= /div>
If I put :results silent that doesn't happen. Is this a bug?<= /div>

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 A207FDepartment of Chemical Engineering
Carnegie Mellon University
Pitts= burgh, PA 15213
412-268-7803
--0000000000000505d205d0335c0a--