From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id UDPWCh9Ma2PH6gAAbAwnHQ (envelope-from ) for ; Wed, 09 Nov 2022 07:43:43 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id IKfECh9Ma2MXWgEAauVa8A (envelope-from ) for ; Wed, 09 Nov 2022 07:43:43 +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 CD7293756B for ; Wed, 9 Nov 2022 07:43:42 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1osen9-0006D9-3n; Wed, 09 Nov 2022 01:42:31 -0500 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 1osen7-0006D1-40 for emacs-orgmode@gnu.org; Wed, 09 Nov 2022 01:42:29 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1osen4-00046r-JU for emacs-orgmode@gnu.org; Wed, 09 Nov 2022 01:42:28 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 7B147240101 for ; Wed, 9 Nov 2022 07:42:21 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1667976143; bh=xfvuWvEZ6HW1gXJ3DjjToSdUjz1PrqxKfoVwwRHM1ek=; h=From:To:Cc:Subject:Date:From; b=Mh3H04CEpUPCDloH5eFs6ZVpWBuDaet1OwDFUo08uvVFBRKiRfSapVP5F3map8wGY /nSRuAtYDc9IoAzsfCk/zy5uAIT98DgQG5nsKOiLS7viPgjcxw3mMKepc6mB6UVqf3 7C6o2+IP82P8qa4RymVd6xlC6IrwUSt4lKct3hWYQ4CoTuFObWkRqxDl6EPGFen1jw +whru5lY092WBqENPnDE3Wvv8vhm8ySxlf3vmxaDV0SG0MheTTIQVmGLLL5+MmVV0G cUvI0J8lqa9u6/iBnZ1dHAqQHsWYsF8+gVWnbO3/NK8ZDCUQZgjdcA9L3s16RZtx0L vvxbv6qqxOYBg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4N6b4C5vT3z9rxD; Wed, 9 Nov 2022 07:42:19 +0100 (CET) From: Ihor Radchenko To: Bruno Barbier Cc: emacs-orgmode@gnu.org Subject: Re: [PATCH] org-babel-insert-result: Fix wrong-type-argument markerp nil In-Reply-To: References: <87v8noc0wx.fsf@localhost> Date: Wed, 09 Nov 2022 06:42:58 +0000 Message-ID: <87tu38aarx.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, 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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: 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=1667976223; 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=5Zj5HbDhG83N+QRjngz8AWI/uv6iZ8FZOUWqtYQmG+M=; b=GJS1RbbqyFPjcbqS3zrnKmhe/A4QybxvXUegCgoGgT1xVMI2YW/86I0gR99RRE/lFp50YI EZkpLYGXtzjm2vWBvCw2koaAJdH3Hlag7PvUtsPNWA5/9qb09IqJ9amXdadIl8JIG96FUT PsrcoqAzvZry0BCECiSZuywhIEAd6HfAvPiGAZrVkzrY/7zZAs8xr7+UTmGw4Ai/7W+hoO T43nUuyzbRHvpMHyht2g94H5ISzLUb7cGYsECivwFSLuhfFExMCjb+gDkS+OtfvO08ypTG er5RwWWYeYFOkkk3Emts+YGIUvgfYnUhn1t0rMGtOt4y9hPw+IqcBZWlPOwR6Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667976223; a=rsa-sha256; cv=none; b=RYYi/F43vw8BPTaKf70WTBk9+TNo3sV6Tn78NYCKMW3B1w4wTLXgQQeiogF+Is+z4IyFoN F2dpdnV56pI6H+y17GZgVyFi6hIvDdsN25OuYS5TnbJBBYyw8fv5btMVbOKeaw0FuSplI5 kTpIE1ej81a0dVgErCV9K35cWbip2H+QBIgcdZ/OzugJvMuUUVmuJKyKJ4bmalSNlPEX+i BXiP/d1VQuEsxo4D68SIlCuOZsldaVAnbsXi2zFx3hPD592bl3v7JQg6WBcZVnSXOGhIh4 9dGTYEUcdj8p5a1KwOYyWM2HstKNRvqAB/H3R738V6WhLPE4Mz/timaW05dxdA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=Mh3H04CE; 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.52 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=Mh3H04CE; 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: CD7293756B X-Spam-Score: -3.52 X-Migadu-Scanner: scn1.migadu.com X-TUID: /5OTsQIfMcF+ Bruno Barbier writes: >> Thanks, but could you please explain a bit more about this corner case? > >> `end' must be always defined because >> (setq end (copy-marker (point) t)) >> must be executed. > > If the body of the unwind-protect throw an error, the variable 'end' > might still be nil. It's set to nil when declared with the 'let' form. Good point. Then, I agree that the patch can be merged as is. Applied onto main amending the commit message. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=7f72807aead9c350d85513702deb04722b65a25b >> Your patch, if addressing a valid scenario, is not treating the root >> cause; just the symptom. > > You're right. I was investigating an other bug. That > 'wrong-type-argument markerp nil' was just hiding the real bug to me. Let us know once you gather enough details. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at