From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id sKVDEUvAXGOLegEAbAwnHQ (envelope-from ) for ; Sat, 29 Oct 2022 07:55:23 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id yGEkEUvAXGMxMgAAauVa8A (envelope-from ) for ; Sat, 29 Oct 2022 07:55:23 +0200 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 0958D222E0 for ; Sat, 29 Oct 2022 07:55:23 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ooemg-0004Qn-2b; Sat, 29 Oct 2022 01:53:30 -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 1oodj4-00025O-Db for emacs-orgmode@gnu.org; Sat, 29 Oct 2022 00:45:42 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oodj2-0002IJ-7f for emacs-orgmode@gnu.org; Sat, 29 Oct 2022 00:45:42 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 76D6B240027 for ; Sat, 29 Oct 2022 06:45:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1667018736; bh=cetwVbd9pd4UAH6OSIxedrcIG/3CubOdE2cXY+W62ZY=; h=From:To:Cc:Subject:Date:From; b=bZGbJNL3xGPZNJroDOzE6+G8o3CrCGXZ5J827Aq0SuuwazuPHi5PwokoNZZUSH/dU hxySTnu0D+/wjYTDjYkMSVD17rORqeT9BYi/N6sP+lW3PZClLzhpfXFjXpSYIK2gfh k0add7h/f0jFDRNy2rP16h2CBIwjSiSARL0dWLjqWuNezGO8ZK2NINDiTP/Hh/Fmxm hFPumxU/3TG6YJOgDOXBY2U0YTR2OrFUUrYJMpj5fZYc4cBpw52VTcLx6gWDjI/nWR MPiWKSPeSd+KPWuroMVQgwfYyvZI3VrajTexbCOmCBhypjI42OYkbIHv1KZswt5yyQ w5SBoeV7hWzoA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Mzn0b1QPpz6tnP; Sat, 29 Oct 2022 06:45:34 +0200 (CEST) From: Ihor Radchenko To: John Kitchin Cc: org-mode-email Subject: Re: issue using org-export-before-parsing-hook in a src-block In-Reply-To: References: Date: Sat, 29 Oct 2022 04:46:17 +0000 Message-ID: <87ilk3jkyu.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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: , Sender: "Emacs-orgmode" Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org 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=1667022923; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Qn8r9VTSve10jJ/9kvgkoLdVacQ9UPmeWBMdHB0u7yw=; b=MpJiDuHnIeAGtzYbUgJ3Uah3nV5FJqyvUhVaCEH0xXLf3/vEtncoPXgellWycHhXlWd0ra hOgHsZNYybRSP/QwTg8DkUUzvRohNpYKWOKkRVaISqLKNbV3RtzSjUB19QOasERUPDGUfp +c0HZJkxX6NBu6xO8/HqH98l5n3YdnKOAuP/6v2UHJ3xMkjjrI43MeWBZV5iD9lT9YRu7p 1Ps5U9FEMG9pzpbWtO/XaoHZyfcb85+R/TcrZ+c1VwGckgThDUnujBnmmlBQ2E9UkX8k3p SsBqDsDH/EGd+Q7njKJQ1A1BKh/3xNYsSjX/oi1bfpx2OAQEiC3coxifOEY0bA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667022923; a=rsa-sha256; cv=none; b=RmONn+jWjOSVbYV/+6LMwCQ3h+8FtFLPdPwAEn9jtI2Llykyfa675LFwjZUBCYSGANm/88 zfci5V2rqFSXXFBCcC4pbPA5J+TmQfkTKEjgM8/9zJOwtraWBB/MtHUrDaXeV4UkgLIkRA 4UFZft5s8wWNSjjnTSlIJg6FWw8uFr8FSO5j72WOYRbeZ3WGh+PfPRxm/i2LV7ieI0QbUV Eqn3RPpVFf3vS5GRs1U9FEgga80wAKFA14/a/RpzXQDUsHv+q7kW2zZJPTL17VCoEvrlAz eBTQAq0CNdUCQJCV/YxFE5PHPuo904ZKFU/4zr9c34eiz98ToshrpTUAjvtUOA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=bZGbJNL3; dmarc=pass (policy=none) header.from=posteo.net; 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.63 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=bZGbJNL3; dmarc=pass (policy=none) header.from=posteo.net; 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: 0958D222E0 X-Spam-Score: -3.63 X-Migadu-Scanner: scn1.migadu.com X-TUID: lhRklr6tJdwU John Kitchin writes: > 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? Thanks for reporting, and sorry for the late reply. Fixed on main. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=c70a422082eca3545adc73ba4905360bb6d371b7 -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at