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 qKEMGCWkvmP+hQAAbAwnHQ (envelope-from ) for ; Wed, 11 Jan 2023 12:57:25 +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 qODDFyWkvmPL7wAAauVa8A (envelope-from ) for ; Wed, 11 Jan 2023 12:57:25 +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 1B94815F0C for ; Wed, 11 Jan 2023 12:57:24 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pFZiu-00044q-EZ; Wed, 11 Jan 2023 06:56:52 -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 1pFZis-00044R-CP for emacs-orgmode@gnu.org; Wed, 11 Jan 2023 06:56:50 -0500 Received: from mail-vs1-xe34.google.com ([2607:f8b0:4864:20::e34]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pFZiq-0002QG-M9 for emacs-orgmode@gnu.org; Wed, 11 Jan 2023 06:56:50 -0500 Received: by mail-vs1-xe34.google.com with SMTP id t10so4847975vsr.3 for ; Wed, 11 Jan 2023 03:56:48 -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=o63k6cy57PibkjAtTc3iWAiA4HwUeDxCybccPjz/4WY=; b=Lp/5tgrpNAyTHJTwe67xX6P85yFN24/oNmJeBpQK8SBk8eE+kvdkdzyEwGDsjYz7XB D2oqLLKpQRblzJxXce0bRkdLe0466+L5onj0/e7vYcQm5p7qUopMOTPjg9a2LR4EbpKJ T4TkxG9n/pxk8pdrXyjWckjB/ScxUroEDUc+BorIWAPNBbqOcTiZhEjGmy71fXiVBUSr KJdnEWHgS9nORbWU5wHAg5JNqvfIF3uxO+uCNedYiPSQDaBZTiT1Kp0PU6q8JEIQKe6Z RIaPQDPgJ445qfsYCtvSwVnatBGe53b9n0JtY9w6G1grDISawuZ50IRBE7Z05cdLkuos 4jWg== 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=o63k6cy57PibkjAtTc3iWAiA4HwUeDxCybccPjz/4WY=; b=oeaVd18ghWYramaDQ8FhJPseD4HA9/LkrAZe8JoAmovhDG1j8Mkrn4aefPL9izDR8z NfyPsKjt8dNOOmV7Ohz0WMUbGd9ghveyX44Id8bufve1XcPCmsN1cEdhG4qT3ecTEGot agP2ZW8SCr7gvA1HK8etOeD7OsqiPCjulqg5TGnRcsnHrJU09C6BotiyplIpCdLFFib2 Cj+lZHtaFHsLiKr60Vnk8anKDRU8syd6IsLqCi+wFjo81Jwr07qg33D63zAbU8oqlHFj vCDdbfdwTCyNSDrc8iq18NvnAmA+Gepdmsqgfi5NsBdyCNNGUNhL5ux7HStR6wRQCVj3 rsTA== X-Gm-Message-State: AFqh2kqVQnfYyLfNyJMGI5l13a7zZKqmOCyXA5nypKIjk8QeSACTMGcO +kqDgmrCWnPdPnM+zWK99EFDl0MdFw444AIKwJc= X-Google-Smtp-Source: AMrXdXuKxSP3AaeyOZW68zA/x2hYdjY3/IlzmtQrspAodwIK/YEZkBfIPARQPI+ryX1OLghEs270K8OnETcFCqufyz0= X-Received: by 2002:a05:6102:390a:b0:3cb:141e:2929 with SMTP id e10-20020a056102390a00b003cb141e2929mr8893402vsu.29.1673438207515; Wed, 11 Jan 2023 03:56:47 -0800 (PST) MIME-Version: 1.0 References: <87o7r5fkws.fsf@localhost> <87bkn5fh7c.fsf@localhost> In-Reply-To: <87bkn5fh7c.fsf@localhost> From: Michael Dauer Date: Wed, 11 Jan 2023 12:56:36 +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="000000000000e99f3c05f1fbb11a" Received-SPF: pass client-ip=2607:f8b0:4864:20::e34; envelope-from=mick.dauer@gmail.com; helo=mail-vs1-xe34.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-Seal: i=1; s=key1; d=yhetil.org; t=1673438245; a=rsa-sha256; cv=none; b=dVpCn4TSFDcOTXeuST9MGlm4ztv58yfwxTerV/SVLokjXWysGbNb/1I+hOmKPLHMWaN+kt YVs9QaepUsSVRrTmZyQAtDijzJ8CXsqI+LLuJjtRe3KWJFSIMImlpIBLGb64VbrpTZ3jH1 +VsOpFE288hHZPQc/hDSlQyO0u0nNkLclfRPhkf/44DwYmZdw4ghg6BN6bZayuZOTLsnPi 9v+RVdxORCj8bttshGMWGIpVGe2HeRT0nogBKmiAqkVNYejwHscEZRurISOOPNGFsVJmh5 SxzDelAhph8pKxdZK9nh1FYB/4P850eqmsuytmMYlkEwRGFrET1SNuxllAAFYA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="Lp/5tgrp"; 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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1673438245; 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=o63k6cy57PibkjAtTc3iWAiA4HwUeDxCybccPjz/4WY=; b=i0Kq4FY2JKmWLc+5+hxgGvliJ4wN4dROlxCzbwy+HA/2Y8jMyrQsRYi9g3PpfBW62V5r4M xThlpPxfGS/vh7EEE6LrChDR7J7LgohU5I6mi54UFIqdW+xIIIVDQHyDnGfN02bzhEe5px lPWwJ9gup4l2KTshdWp1TSM9uCzzMJ54QTEzhHs3OgsdLdAmLRJirR5RAexWTUSjzZvhmH /+8QxYo1YWj2SlHEKutgjJNaphIMXBCI5VFHN8IVGgBtdKKW8DSLcVhJ2Xzh875UmSNNmQ KRFL0qVNyabza2GGgls8xzbeuVd72soLLx7XARCvqQEHFyjfw15VhBoMytytPA== X-Migadu-Spam-Score: -4.73 X-Spam-Score: -4.73 X-Migadu-Queue-Id: 1B94815F0C X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="Lp/5tgrp"; 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-TUID: c7tz5tGCR05L --000000000000e99f3c05f1fbb11a Content-Type: text/plain; charset="UTF-8" Yes, but the missing headings are within the narrowed subtree. Am Mi., 11. Jan. 2023 um 12:22 Uhr schrieb Ihor Radchenko < yantar92@posteo.net>: > Michael Dauer writes: > > > But within (org-with-wide-buffer) the collapsed branches should be > visible. > > You have `org-narrow-to-subtree' inside `org-with-wide-buffer': > 1. `org-with-wide-buffer' widens the buffer > 2. `org-narrow-to-subtree' narrows it to subtree > 3. `org-element-parse-buffer' gets executed on the narrowed buffer > > -- > Ihor Radchenko // yantar92, > Org mode contributor, > Learn more about Org mode at . > Support Org development at , > or support my work at > --000000000000e99f3c05f1fbb11a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Yes, but the missing headings are within the narrowed subt= ree.

Am Mi., 11. Jan. 2023 um 12:22=C2=A0Uhr schrieb Ihor Radchenko <yantar92@posteo.net>:
Michael Dauer <mick.dauer@gmail.com= > writes:

> But within (org-with-wide-buffer) the collapsed branches should be vis= ible.

You have `org-narrow-to-subtree' inside `org-with-wide-buffer':
1. `org-with-wide-buffer' widens the buffer
2. `org-narrow-to-subtree' narrows it to subtree
3. `org-element-parse-buffer' gets executed on the narrowed buffer

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