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 EC8aM3KlvmNFdgAAbAwnHQ (envelope-from ) for ; Wed, 11 Jan 2023 13:02:58 +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 oN/PMnKlvmMawwAAauVa8A (envelope-from ) for ; Wed, 11 Jan 2023 13:02:58 +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 6C90F1613D for ; Wed, 11 Jan 2023 13:02:58 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pFZoN-0005iR-UG; Wed, 11 Jan 2023 07:02: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 1pFZnl-0005fQ-D9 for emacs-orgmode@gnu.org; Wed, 11 Jan 2023 07:02:10 -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 1pFZnT-0003Kp-5B for emacs-orgmode@gnu.org; Wed, 11 Jan 2023 07:01:52 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 10B8924032A for ; Wed, 11 Jan 2023 13:01:28 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1673438489; bh=CMpjmLAI2BYpE+bjPNlnn8s8V59koCAukbMYg3Iz2M8=; h=From:To:Cc:Subject:Date:From; b=E9nEbyyXyk3+Je3zJu0o4i7rnHwVr5tSZtPhiqlL+JVAUMVZzxY4TNAkqDpKa/vRj gsKX1leR5aQJGA5jGSMTDuiHA+8TynA3IOqQeCusC7pKJIYCitHEpPBFjuqPPh9vm3 6RCnU05QB8/c5mV6cLhF8Z8rHM512iV6jsByQSrWFovD4QM+7NEe1BDW4LWEUBIlv3 B4zDw5a50sprSd3676mNbjMd2eP6NLJ+6xVr3sZIvDG2A1pMywfGJX68LNa4By2/Fp 1xdF6t9CaiKkPlbYS1ZzguVjWBxWe1mFV53QkJN13cV7w3P1kEWKNvLy0msZqyTm4M NnCyEbp8eYy/A== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NsR9M6gLKz9rxG; Wed, 11 Jan 2023 13:01:27 +0100 (CET) From: Ihor Radchenko To: Michael Dauer Cc: emacs-orgmode@gnu.org Subject: Re: (org-element-parse-buffer) and (org-with-wide-buffer) In-Reply-To: References: <87o7r5fkws.fsf@localhost> <87bkn5fh7c.fsf@localhost> Date: Wed, 11 Jan 2023 12:02:00 +0000 Message-ID: <87wn5te0uf.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-Country: US X-Migadu-Flow: FLOW_IN ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=E9nEbyyX; 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=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1673438578; a=rsa-sha256; cv=none; b=p6mvXnutkZNpj7Nhp7YyDbW4gg96Y6iUYD0F6ZBXSjmr9zGpNUmImNsjmJRO9HwgYBoCxm NNMF07E02G70BirKgU5Uf3Gz2y/jvGlBm8YoaS31Yi5b4WsVIDeQ2xYIBwS1eRbVotbXbq jEKTiyMXBbOuuR0mT8wV5+M2ZBy+MfxvAaiQWU7+Sq7B+fDDLO/opL2Wc28T0+AxyYFYFa OQiCJbXzItHe7yEH/OT0B1aaTG/kZWoLbQ6vo5/PQeAXjZy+OJ5V5Yxc3FFYvPy+v8gHKf jfYwCNnaytUtlTbeMxqrI5lSiE+nKVSeETgvA+uUDSjxYtVJSvF3F6dvj1Jawg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1673438578; 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=yJTb4TW/40UEWemuCuCaHlUGmZMJg8DILtj7xt5Od98=; b=Wm/w7l7L5Kpb354vM7+dLd6jwySagTS7E7mIlHzvlVuA0bYMGVXPlAaltXLrorIkKxS29e V+vC+Te5IdlMSNeuo8qqfOu796HRwz8fFncPZ0NEYUv217Iegh0w0oHRyAd7dWYJTRHPkr DvmSpMvWHujOzSOMGHL+sE6jxaZp3x7GHX9wbFioRvTy4tY1cogYjrptXeQwFuGJZyz78R em2fJaf7q3v3gyPtog6sPe6MNBGRWkBlyiKvnqlfEWR2UmdSB61hbzC/srR/SYUra+Al2B 1nIB2Rm6CPjh3BRd623iP+3pS1NS2DNMGCP4baJgxxM0hragZAQ1FcclS+qrXA== X-Migadu-Queue-Id: 6C90F1613D X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=E9nEbyyX; 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=posteo.net X-Migadu-Spam-Score: -6.04 X-Spam-Score: -6.04 X-TUID: x+/nznwITqiw Michael Dauer writes: > Yes, but the missing headings are within the narrowed subtree. You are right. What is happening here is `org-element-parse-buffer' skipping over the folded heading: When VISIBLE-ONLY is non-nil, don't parse contents of hidden elements. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at