From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id iC4QB3CbvmPkcQEAbAwnHQ (envelope-from ) for ; Wed, 11 Jan 2023 12:20:16 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id OMUAB3CbvmPgOgAA9RJhRA (envelope-from ) for ; Wed, 11 Jan 2023 12:20:16 +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 9E6BF13609 for ; Wed, 11 Jan 2023 12:20:15 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pFZ94-0002H8-Hc; Wed, 11 Jan 2023 06:19:50 -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 1pFZ91-0002Gp-Vu for emacs-orgmode@gnu.org; Wed, 11 Jan 2023 06:19:48 -0500 Received: from mail-vs1-xe31.google.com ([2607:f8b0:4864:20::e31]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pFZ90-0005Fw-9l for emacs-orgmode@gnu.org; Wed, 11 Jan 2023 06:19:47 -0500 Received: by mail-vs1-xe31.google.com with SMTP id q125so3604286vsb.0 for ; Wed, 11 Jan 2023 03:19:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=zFJ9h+5d724oJ9oxFUahw/fy88zP4aDFOE6fTBZhGAU=; b=UnI5b1DStKOB1TKvUlznHvR3vPTHj+jiM+pN0pxln1cgCNOmTVyZIajF7AnUBEziqj EzEnJtYgoFjW9HIsWGPBQsDXFyYL26YNqhtuyxEaRJ5mVeDtrOGiCfGQVPI+opL3fQkx Ee/Dh4yaabUNqrQuKUVNRmLLUrUO1lUc0G4Ly+TuqI/3vA4WzpBnF6w3SLLo/HElSq16 0wLvu5YEFqDlWkbo4CbjD4lBOqTQG6VX4xiYTXQIGXHz/gVxp6NHvVTMCx50c3sHHlBw 4rCiQiQr0M0+nXkOMudW182KT+X60f2dKXRzKkJGvkN9gaXTcFgDkHvKtJ7OZpT0I4u+ RnlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=zFJ9h+5d724oJ9oxFUahw/fy88zP4aDFOE6fTBZhGAU=; b=LnpZrO6g1l6aXBuZkSVTdmbprakdYP2y3Uzjoa1bk2sqRq2SAfTEL1yWFdT5CH7vkM uWKqLWibTLL0jvCt22kdXZ1mQ/sh8AFFLwgnhhB1lt6jlZ/DNeZZ0yQ68msS/A/jhZH0 t8KTgKPe1nA6v1INrizvZW7Dp6ZKPdUwFmO+T3gkuzCyPcXKQHuYzhZSIMW4o1svDhaT VrXQoWwHuoZ5fVxcfgBiEwaZGvAyzpNL8d1EGmSXigGIFztwzB7zUrNZ9mLEUaYzSHU+ ZQQ3SE8PG+OK5GrhhqcTLNW0V4ZzYdoTrpm3Gmubg8mb7tgIGDhCvb6g+q3jVr7VLPwX aN4g== X-Gm-Message-State: AFqh2koM4zc9aVA7rii60S/Vh71T2BV3OqN7mGygOxkM4RnHQclk8A8m 4oAWUWb7hmRjCjXmNQ/BJDZdGajtAmXmSMEJjYo= X-Google-Smtp-Source: AMrXdXvVa73ya6R6aerJBwBHyLEyEqKspUDAjMRATlLSi1VIZWeZ330LRPboRZxNohdY5M91IPBDDKxSr7Il3aXyUeg= X-Received: by 2002:a05:6102:19a:b0:3c5:796a:c2a1 with SMTP id r26-20020a056102019a00b003c5796ac2a1mr8388919vsq.57.1673435985154; Wed, 11 Jan 2023 03:19:45 -0800 (PST) MIME-Version: 1.0 References: <87o7r5fkws.fsf@localhost> In-Reply-To: <87o7r5fkws.fsf@localhost> From: Michael Dauer Date: Wed, 11 Jan 2023 12:19:30 +0100 Message-ID: Subject: Re: (org-element-parse-buffer) and (org-with-wide-buffer) To: Ihor Radchenko Cc: emacs-orgmode@gnu.org Content-Type: multipart/alternative; boundary="000000000000731c0e05f1fb2d7a" Received-SPF: pass client-ip=2607:f8b0:4864:20::e31; envelope-from=mick.dauer@gmail.com; helo=mail-vs1-xe31.google.com 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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-Country: US X-Migadu-Flow: FLOW_IN ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=UnI5b1DS; 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"; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1673436015; a=rsa-sha256; cv=none; b=ALmUMZ9mZkvYuDrgtSHiS4xIs0KdesOfyaIOIcR2SGn29NPJNjWbgm5uKsY+jKCIB8cSxJ 01BkAZmpiDiO4k6jn2UwPMHIgRgj8Rhu0cOV+jTqmJ27eh2UKNSlgHCsLPujAUw8ZnG8QT 4YgdEwvb1jW9sHmQIifOgVkW2kv4EPYfrEDW+SVYSkmqRqCItahfBswkp5/aXmArEobKFZ DNGhU94twerc010eFMnVyQJP53DQ4GgzBhJNmc1hyEQNwlZBVrzRvnFDty1iOWCx5g8+yu VXBhqaiVMde68HzByiPSwhlSEHjGZA+sLq1rBEz16x2RRHRK4hQOcDIy9/H0yQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1673436015; 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=zFJ9h+5d724oJ9oxFUahw/fy88zP4aDFOE6fTBZhGAU=; b=hE/gJumpKd6b4l87+zxQUUSCznLlbGEIvlVqoNPVVXD2aSFJiE3pKLl2AAN7qhwxePwjig ZOfLdEr7obfCns0ld/hQ4Ar/DJvZFpLSI4lDvYJPhUqulN1NuZIgkrpCRJC7zfoUFTlV6H RblStCnX+CHVYSpfQUoM1DNVKB8SVIq9h8CVG2RzYg52SmxIXuIEb9zByhXu2MW94gIfPe ksIzu1g5pi57XUrbsQfVw3rG7JdZXqIIrwQxjVlFPfeO0vcxfhGooJdQjL0gWoGuEmDqd8 MEzJ/+p2E2/BYn3f81224dj5+5R2t62badm4MDCnqmwHqohw39T9ElRuEiOxxQ== X-Migadu-Queue-Id: 9E6BF13609 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=UnI5b1DS; 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"; dmarc=pass (policy=none) header.from=gmail.com X-Migadu-Spam-Score: -8.23 X-Spam-Score: -8.23 X-TUID: 2s50OEg6E0SM --000000000000731c0e05f1fb2d7a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable But within (org-with-wide-buffer) the collapsed branches should be visible. Ihor Radchenko schrieb am Mi., 11. J=C3=A4n. 2023, 11= :02: > Michael Dauer writes: > > > I would expect both output rows to be identical. But it seems > > that (org-with-wide-buffer) has no effect on (org-element-parse-buffer) > > with VISIBLE-ONLY argument. > > > While I believe this is a bug, I would also appreciate hearing about > > possible work-arounds. > > This behaviour is documented in the docstring of > `org-element-parse-buffer': > > If narrowing is in effect, only parse the visible part of the > buffer. > > -- > Ihor Radchenko // yantar92, > Org mode contributor, > Learn more about Org mode at . > Support Org development at , > or support my work at > --000000000000731c0e05f1fb2d7a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
But within (org-with-wide-buffer) the collapsed branches = should be visible.=C2=A0

Ihor Radchenko <yantar92@posteo.net> schrieb am Mi., 11. J=C3=A4n. 2023, 11:0= 2:
Michael Dauer <mick.dauer@g= mail.com> writes:

> I would expect both output rows to be identical. But it seems
> that (org-with-wide-buffer) has no effect on (org-element-parse-buffer= )
> with VISIBLE-ONLY argument.

> While I believe this is a bug, I would also appreciate hearing about > possible work-arounds.

This behaviour is documented in the docstring of
`org-element-parse-buffer':

=C2=A0 =C2=A0 If narrowing is in effect, only parse the visible part of the=
=C2=A0 =C2=A0 buffer.

--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mo= de>,
or support my work at <https://liberapay.com/yantar92>
--000000000000731c0e05f1fb2d7a--