From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 4J9tAx5+U2RAgQAASxT56A (envelope-from ) for ; Thu, 04 May 2023 11:42:54 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id AEJgAx5+U2QeawEA9RJhRA (envelope-from ) for ; Thu, 04 May 2023 11:42:54 +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 98F5035533 for ; Thu, 4 May 2023 11:42:53 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1puVTT-0006au-Mk; Thu, 04 May 2023 05:42:07 -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 1puVTR-0006WE-9N for emacs-orgmode@gnu.org; Thu, 04 May 2023 05:42:05 -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 1puVTP-0000vn-6G for emacs-orgmode@gnu.org; Thu, 04 May 2023 05:42:05 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id E6523240304 for ; Thu, 4 May 2023 11:42:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1683193320; bh=eppapNtRYp4PHuG/Tg7c0Mc/3WIEvmxl4/1opOk2nKs=; h=From:To:Cc:Subject:Date:From; b=YIMSfvaeWae1nOsAnp+NBdRTLW5AFDafocsTB18JfPir5NjMStK+HxzRgSwJvSxBr zjzLPigWVlLys8v9Tv84GadTv5LXUhYekiO+Wl0FT+gXF9GPLRhExL0o4R2OiK4FZy vgn/+Xuz06E3bv+ozbvg0XDAciMbANP4YVvcloUBO4Gg5IiRM10uYFZajovzKHp0qa pC0YuhC62GbwJOxcAuvW7sLGAB2451pX+WHhLeiWRYFg742yGqkl+AAOEIiblyhy8P OmM268N0692jwj4dfhZnqaXQWRbyH0++9jeZk4jH2DaB1QioJEm5SJ6QlaE99P7he5 IToxF6kMUQz4g== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4QBpkJ0g4vz9rxS; Thu, 4 May 2023 11:42:00 +0200 (CEST) From: Ihor Radchenko To: Sebastian =?utf-8?Q?W=C3=A5linder?= Cc: emacs-orgmode@gnu.org Subject: Re: Babel results don't respect narrowing In-Reply-To: <87mt2r39ru.fsf@nixos.mail-host-address-is-not-set> References: <87mt2r39ru.fsf@nixos.mail-host-address-is-not-set> Date: Thu, 04 May 2023 09:45:08 +0000 Message-ID: <87a5ykph0b.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.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, T_SCC_BODY_TEXT_LINE=-0.01 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-Seal: i=1; s=key1; d=yhetil.org; t=1683193373; a=rsa-sha256; cv=none; b=uBPpMNfkzaHuZ66K+Kfca/ot87yaHjxK0t4DX5jeUnaV1GlAwwgRdb1anx5kGfgxEtgVQd rIMSAURDcA5XazpvL1IE7oDSKsyTVXxItrpTRUJ1oxUsBb27ULRTJ3WO71wis7cAT9kc9x fyroPwoclJK08mnrLgomn9XOMbduHbiWZZdDzr+eq23h5J3zQPcd7W6OMVk/cjWy+ewsp0 6USPOam6FuoPe8loRJ8T3KHc6vf9jxA2/DnEJuREa45B50/Dm7mNinu3DRDdbufr2MhGxt 2f4tV3psb2D9w/GW0IeYHa1UdNhBoc5SU2B3zEZ2HFA9CV+kT849MXQRcqCIFQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=YIMSfvae; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1683193373; 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=fHZVmnxG7zuLDRTkkXIsps6eSwrKqhW7pHberdzDud4=; b=YOA/geGZu0EifY27C2OkD9xVALXURoxNszFEcUCnHg/HBtXw3NXHF5gPB8qsYkwzhWwe6j vwCLko9Ppd1VReKZrJZ9NkxSEFEsxqHDZjC4+3TSy9n0CycPYDiOH7Fnoib+7yGihQ4gia jaCSOr+y5GuwU9CVpkaDO0O5o2LqXz9YfCQ57+aU53xpxFlx3bjOLP+eNVmNdZuc2Z6qri LorB+9BxlHjMN8ehBvaBTx4JTBieHT0eooMVpfWIr+7SqyBmy48f5lBasJ0VgVXI5OCGpt OmAuWEMuxYSpZxgZlI7Wcb3aZGHrmNXjvgFJunUBbCufAExXQgkxy4VA1RSQVg== X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=YIMSfvae; 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: -4.69 X-Spam-Score: -4.69 X-Migadu-Queue-Id: 98F5035533 X-TUID: 6veNSfvRpTcD Sebastian W=C3=A5linder writes: > When org-babel inserts results after evaluating a org-babel block, the cu= rrent narrowing isn't respected. > > Org searches outside of the current narrowing to find a result block, the= n updates that. Yes, it is on purpose: 2f2a80fe062df5eaacbd5bc3a34a52f6684dcee9 Author: Nicolas Goaziou AuthorDate: Wed Oct 24 17:23:20 2012 +0200 ob: Fix block evaluation in a narrowed buffer * lisp/ob.el (org-babel-where-is-src-block-result): Insert new results keyword in current narrowed part of buffer, if necessary. Small refactoring. (org-babel-insert-result): Do not widen buffer when new results have to be inserted. Therefore, results inserted after the last block of a narrowed buffer still belong to the narrowed part of the buffer. * testing/lisp/test-ob.el: Add tests. * testing/lisp/test-ob-exp.el: Move test to test-ob.el > This is an issue primarily with libraries that insert IDs where the resul= ts are. > > Then, when the library searches for that ID it inserted in the narrowed b= uffer that doesn't contain the RESULTS tag, it won't be able to find it, as= it's outside the view. May you elaborate about what kind of library you are referring to? Please describe the actual problem you ran into. --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at