From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 aBe2EFVplGNHyQAAbAwnHQ (envelope-from ) for ; Sat, 10 Dec 2022 12:11:17 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id uLTsD1VplGO3MgEAG6o9tA (envelope-from ) for ; Sat, 10 Dec 2022 12:11:17 +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 D88A711939 for ; Sat, 10 Dec 2022 12:11:16 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p3xke-0000O2-EY; Sat, 10 Dec 2022 06:10:40 -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 1p3xkc-0000Nc-Ic for emacs-orgmode@gnu.org; Sat, 10 Dec 2022 06:10:38 -0500 Received: from mail-pl1-x635.google.com ([2607:f8b0:4864:20::635]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p3xka-0006ha-5N for emacs-orgmode@gnu.org; Sat, 10 Dec 2022 06:10:38 -0500 Received: by mail-pl1-x635.google.com with SMTP id 4so1530835plj.3 for ; Sat, 10 Dec 2022 03:10:35 -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=PguQNJTo1jW5hmg/MsGOoXIAPg76u2Mug70mEAqT9pE=; b=hjJOVZj8WHOrXi5ghy4ePZAlUm0/WMoa284t1uksa2UFwt3047bko1F9PGdxW+WNK8 CFvr3B1Tx49EM0Ejo+qw6d3rHTCkyAkcvhcQsMXCneDNWL/2tz8zQ/9q3PJlFAIasa47 Rsd9ln6MEOH7aO++QgKrmeOYQ0ICeqsh6mxwLaht1V2hxb3QGpwXtgIsfZWz4CZw/cZ6 L2BwMZuPyYmuaLdl6p277jHHxrY4LNECE8vRLDJ5IeVpjVyndnbOWnNmouWSrI953UWY d/O4kQAZe6FHkLi8ydTfSKoXz0BaoLPv4GtPTpUL0OayPT1PGGXYaJCdE9VOSHURnvGI XCqg== 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=PguQNJTo1jW5hmg/MsGOoXIAPg76u2Mug70mEAqT9pE=; b=cwnPBsB5uqtF2cuH5rMRmfox/6OptsHGuVU21rf53NDbBUNF+tj5hGEzJ/lqjdtIrx +IAmYq7Lz95W4Uywdz1UZIJFU6W0OctQFmQZp50ARCGYygwEiTGdSD9PzIXW4y0e4KWh aFg7KOMQLwjv8qClbCw8PzARUqiSdMIksrnPBZ7wxTvGc7ncjlIiiu8Qc3Y7hwWV1xId DPDImzKhLg5KLmoddl5Ct4JpvCL9m0raXnFnVOulM3+ONhrOpW07LGOrqCRjm9eARZuD Lc3BIkWjVcaxifuo87iofenCke/WaZl0TJDDDnVymbKBns4GUqGEgjQgxw4piUMNfxPe E3AA== X-Gm-Message-State: ANoB5pk3PG5i1YL3zJYOEsU9d1Mk4WtlPPCvcEjHUKG8ZCukTuaV1Pl9 8f3dHxBBk1wB6443sz9WpvXNwdW5dyHVXjhXcug= X-Google-Smtp-Source: AA0mqf5TzQhkR8qivey7FOXmJI0FSM28UAS9wtJMdi69XXfDV81OOKC6ciHsQbW2/ziEuc/ioDgxI4PxPCNC871Lu84= X-Received: by 2002:a17:90a:ad85:b0:21a:1d94:568f with SMTP id s5-20020a17090aad8500b0021a1d94568fmr5790253pjq.51.1670670633917; Sat, 10 Dec 2022 03:10:33 -0800 (PST) MIME-Version: 1.0 References: <87359nsib0.fsf@localhost> In-Reply-To: <87359nsib0.fsf@localhost> From: Kaushal Modi Date: Sat, 10 Dec 2022 06:10:22 -0500 Message-ID: Subject: Re: [BUG] Setting export scope to subtree not working as expected [9.6 (9.6-gb3da42 @ /Users/apc/.emacs.d/straight/build/org/)] To: Ihor Radchenko Cc: =?UTF-8?Q?Alejandro_P=C3=A9rez_Carballo?= , emacs-org list Content-Type: multipart/alternative; boundary="000000000000abe33905ef7751f0" Received-SPF: pass client-ip=2607:f8b0:4864:20::635; envelope-from=kaushal.modi@gmail.com; helo=mail-pl1-x635.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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1670670677; 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=PguQNJTo1jW5hmg/MsGOoXIAPg76u2Mug70mEAqT9pE=; b=UlZq2B+MxgCI15DskVFgV/nceeKsdkexLBgms7jUWsk5ELeBvZS+Kv9MHXmhUOG1qU1mLh 6pAXfQf78qpH7u4NWsw6quK41B7m3xqZ9bPTtEkWicpmJzPLbhHgC7+jpavXOTws9NuQha ABsv8iB7ctjOXDUg5udRNYMcYbHx0xcmvAO6+QDA5iBMgf9Sf01BwXGumihha2U+O4llJG JbmDEUIADJFmWLsGjA1vRmHhNjwvu3m3leayF4jVV1obnbEmmhB9yQhr0JN26KE1AASDk8 8XYolZfC4ksB2Pkv3xxYz8Bqr9UeEmka3xJM+n1fBfg2WHYJU5nZoyjwICkmuA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=hjJOVZj8; 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=1670670677; a=rsa-sha256; cv=none; b=Ytaf7dQ30d33IgJy54AxxzKJZO0ylFASbu0qnPkRdvFrcwujH74XH9gwIFa1tvGvKuffvB sd7ToU0cynNT9HCL/Q5QXij2CkJtKjg3BU4x1jcg+YH7yGA+5bslOoA1i0nIxXO6wh3PTy saD2WJjfKII/AOVbg1qBSB+v0NjiWoxtb03VMw0cTNGY5+SsmMhMbUBcim8AV3v+vJXBm5 MP5GBo5dPzQ6HSub7HY781rc10mCEDk2rqiIQlO4C1eIREaFtgVIXurLsL1CQ4OTK/CpYC 625q9Soegc1bZt+w5G2FPbfOr5BTu1TPO7wZ8ddwkEWNWca3EiOBHLFA0506wg== X-Migadu-Spam-Score: -11.18 X-Spam-Score: -11.18 X-Migadu-Queue-Id: D88A711939 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=hjJOVZj8; 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: 1n61ZndDn+fM --000000000000abe33905ef7751f0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Alejandro, Thanks for reporting this issue. I was seeing the same issue and I wasn't sure if this issue was in org-mode or the ox-hugo package. It was on my to-debug list. Ihor: Thank you for the quick response and fix! On Sat, Dec 10, 2022, 4:47 AM Ihor Radchenko wrote: > Alejandro P=C3=A9rez Carballo writes: > > > If point is on a heading followed by a subheading without any text in > between, the export process is using the tree starting with the subheadin= g > instead of the tree starting from point position. If instead you have som= e > text after the first heading and before the subheading, the tree that is > exported is the tree starting from point position, as expected. I=E2=80= =99m > assuming 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 > first line and after setting the scope to =E2=80=98subtree=E2=80=99, I g= et an HTML buffer > whose title is =E2=80=9CA subtitle=E2=80=9D. > > > > If I follow the same steps on a buffer containing just this: > > > > * 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=3D0616b3c= 37 > > -- > Ihor Radchenko // yantar92, > Org mode contributor, > Learn more about Org mode at . > Support Org development at , > or support my work at > > --000000000000abe33905ef7751f0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Alejandro,

Thanks for reporting this issue. I was seeing the same issue and I wasn&#= 39;t sure if this issue was in org-mode or the ox-hugo package. It was on m= y to-debug list.=C2=A0

I= hor: Thank you for the quick response and fix!

On Sat, Dec 10, 2022, 4= :47 AM Ihor Radchenko <yantar92@p= osteo.net> wrote:
Alejandr= o P=C3=A9rez Carballo <apc@umass.edu> writes:

> If point is on a heading followed by a subheading without any text in = between, the export process is using the tree starting with the subheading = instead of the tree starting from point position. If instead you have some = text after the first heading and before the subheading, the tree that is ex= ported is the tree starting from point position, as expected. I=E2=80=99m a= ssuming this is a bug, but maybe I=E2=80=99m missing something.
>
> For example, take a buffer containing just this:
>
>=C2=A0 =C2=A0 * The title
>=C2=A0 =C2=A0 ** A subtitle
>=C2=A0 =C2=A0 Some text
>
> If I export this to an HTML buffer, with point at the beginning of the= first line and=C2=A0 after setting the scope to =E2=80=98subtree=E2=80=99,= I get an HTML buffer whose title is =E2=80=9CA subtitle=E2=80=9D.
>
> If I follow the same steps on a buffer containing just this:
>
>=C2=A0 =C2=A0 * The title
>=C2=A0 =C2=A0 Some text
>=C2=A0 =C2=A0 ** 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.s= avannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=3D0616b3c37

--
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>

--000000000000abe33905ef7751f0--