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 sJQBGbpVlGOxYQEAbAwnHQ (envelope-from ) for ; Sat, 10 Dec 2022 10:47:38 +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 uNMZGbpVlGP2swAAauVa8A (envelope-from ) for ; Sat, 10 Dec 2022 10:47:38 +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 43CCDF4AA for ; Sat, 10 Dec 2022 10:47:38 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p3wQn-0002ir-Iq; Sat, 10 Dec 2022 04:46:05 -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 1p3wQl-0002iS-VN for emacs-orgmode@gnu.org; Sat, 10 Dec 2022 04:46:04 -0500 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 1p3wQg-0006vk-MQ for emacs-orgmode@gnu.org; Sat, 10 Dec 2022 04:46:03 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 602D8240026 for ; Sat, 10 Dec 2022 10:45:56 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1670665556; bh=ib7/0Cjd4vT8RGae//CdMwzXNrhAlSP1HKRlPBGOgOE=; h=From:To:Cc:Subject:Date:From; b=dJuTc5FtRiZaPHa3nwAaBan02fn0TJYCbq9g/dfxkvoUJQ9bJN7B5irj/BTgf0gJS c0kORxDTASE8TDb0wCPIltURFcetDUcNHqCPGIsXh7uSvZGBz7303/95dE/aFA4Fp4 qo4IzpPsIFJGBf3+3guGaU1sGpn/hjim3ZpJKY8m5r0oj7KHZjYEZ8DYDdOoJUH7L2 uo1DqWKQhzluoUbcXYUFr04lpuWU5jyU8b9adXHYGa0Z3m1rYDPuGGlsGuQM1Ms3aN geOKgD81b5okkORQa39RSO/SjLXUa0JjP2nAcggswuGSutrxOF7z3SxBtdpBy7kaDI TEnYMqdTU8XPg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NTjgl4rZJz6tmh; Sat, 10 Dec 2022 10:45:55 +0100 (CET) From: Ihor Radchenko To: Alejandro =?utf-8?Q?P=C3=A9rez?= Carballo Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] Setting export scope to subtree not working as expected [9.6 (9.6-gb3da42 @ /Users/apc/.emacs.d/straight/build/org/)] In-Reply-To: References: Date: Sat, 10 Dec 2022 09:45:55 +0000 Message-ID: <87359nsib0.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: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, 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=1670665658; 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=+SssgfepwAz9xesnUu5GKY9SW4163LMr46Ee5z27GO0=; b=CCXyeztMDiePzKxi9BVnKmC31nha51OYnmlKf8aTldN7iFKt5DTuohdK/H8SGrAinn90GG YcYt7NbPI3W64z9Nss5wu4/3Sye8A+ahtULModL4XF5kodOpMoHlcuESRUIHrc1ENj8cNf XM5mxEqW4A9/DhFV+7doEDftexg6dosP+juN3isZsPL1rW5U1eOaVzvLZ2HOMEZwHHRXz3 GaF1Mz6rLi9c4Efd8eJ3RcFLuMtSSQ6yDKvvEVL8cHGePOUecr+KCee89TwpugmQE2m9Ta uM4U66hkaL26ZDHUUfrWgmqvcyeWUGHDwC5w8DXzoI1AelJBUHwIoIzfOCgyJA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1670665658; a=rsa-sha256; cv=none; b=osGPGkljn1RdUBtbhsn5L2+b2sfZBTw2x1MR/ccjs6IwyT2SzBdG9Fk9W0gbWxUsBdgEhe wW2VutTHu17WfCbWsovbRrItact+3lqjeoG7T5D1va37gLnaW46EqnH5xY2bKvHRt9ir6k 6MpjhG2EqDsjzRQ+ioTz3Bl3POLTbq5tnQ0/Kncr01n1AyeyhZW4mAN50qlV7P/Yuu6GvD mpfhyzG89NO0FXi1klXkDMlPEM3Us7XzZmGRVRL5cfVhEWcceZPD7RrATn3vyEQyCr1mUW EuYEvLB/KbUxBw8t+7oCKzVg9GjHdrjzC8le/6CeaVxBEpqyZmLwQh2lSzYH/w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=dJuTc5Ft; 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.55 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=dJuTc5Ft; 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: 43CCDF4AA X-Spam-Score: -3.55 X-Migadu-Scanner: scn1.migadu.com X-TUID: tBBqY/Q+ktMo Alejandro P=C3=A9rez Carballo writes: > If point is on a heading followed by a subheading without any text in bet= ween, the export process is using the tree starting with the subheading ins= tead of the tree starting from point position. If instead you have some tex= t after the first heading and before the subheading, the tree that is expor= ted is the tree starting from point position, as expected. I=E2=80=99m assu= ming this is a bug, but maybe I=E2=80=99m missing something. > > For example, take a buffer containing just this: > > * The title > ** A subtitle > Some text > > If I export this to an HTML buffer, with point at the beginning of the fi= rst line and after setting the scope to =E2=80=98subtree=E2=80=99, I get a= n HTML buffer whose title is =E2=80=9CA subtitle=E2=80=9D. > > If I follow the same steps on a buffer containing just this:=20 > > * The title > Some text > ** A subtitle > > I get an HTML buffer whose title is =E2=80=9CThe title=E2=80=9D. Thanks for reporting! Fixed on bugfix. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=3D0616b3c37 --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at