From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 ic4GOR7XlGPjJwAAbAwnHQ (envelope-from ) for ; Sat, 10 Dec 2022 19:59:43 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id sHBHOB7XlGO4CQAA9RJhRA (envelope-from ) for ; Sat, 10 Dec 2022 19:59:42 +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 4AE8536C73 for ; Sat, 10 Dec 2022 19:59:42 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p453j-0008Ps-66; Sat, 10 Dec 2022 13:58:51 -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 1p453h-0008PN-3Q for emacs-orgmode@gnu.org; Sat, 10 Dec 2022 13:58:49 -0500 Received: from mail-ot1-x32e.google.com ([2607:f8b0:4864:20::32e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p453X-0001a0-B1 for emacs-orgmode@gnu.org; Sat, 10 Dec 2022 13:58:48 -0500 Received: by mail-ot1-x32e.google.com with SMTP id db10-20020a0568306b0a00b0066d43e80118so4888524otb.1 for ; Sat, 10 Dec 2022 10:58:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=umass.edu; s=google; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=sGPypm79wnIIllGLUgvv/gcFKmqUA7+PvL/lO09SuLw=; b=FSGvaeIALdp4LIuYLZypT3j7xkTqtizKPfUHWDV4/X4SAHRYnNkV9yx0Ds6FpCGX3c r9AV8uPfGl49lqh0wXYOFISPqvRT7ESaBEo1Iu0xvZoerYRSt8XB3GAKnbOWlr6nCayd 0T7uXyhSyxgcQRLvBvfq6dxMx6kXLIbhg4kD4= 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:references:in-reply-to :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=sGPypm79wnIIllGLUgvv/gcFKmqUA7+PvL/lO09SuLw=; b=El+oDz6btpxrKreUeDel000IuxtxXIQmEJJm+K53ixc8xv000A9WnJipLzU9WcvhDf nHliOpjJeLY3S9FibWLCpKIlemyuy5mZLjf5MKhSRWhzYr47b/ygI+7rxvUKvj6NuNeR q9nBF93AkRzTJp+rSKjIHoHliQmhNTkD2+iSFGvZhNnzXE2LUvGzwZpIMNMcXruPH+kx teo9aDT6LDZpx8Ys9OQvANBZO6P2UB7MrJXuQzrdsx1LdB8ccORA5dHog6wJSf9Ly8y2 NH+P4jkPhw+MoltNf90HovWiqNA9ExJNbImxTe6NhmBy9scpVMXl6yF4SQdvYwyQfGAJ n39Q== X-Gm-Message-State: ANoB5pkr3I1b3FKbO74OOT87KQ47JTBR7h0v4Xd9tJ+kM7lVR/V7ZT/y XAr6qeV5erorls/8mLfJzqj4h8b22p5HzeYPHex/lQ== X-Google-Smtp-Source: AA0mqf4F1KunjpCdEB6v72ngAAs911aEKv5AAmQZqhaiaa0OAnTcrU2r/EqsHHW1snWKU9XAbIqju5Jyn5ughvNzjjg= X-Received: by 2002:a9d:6309:0:b0:655:e12f:72dc with SMTP id q9-20020a9d6309000000b00655e12f72dcmr37786350otk.239.1670698716841; Sat, 10 Dec 2022 10:58:36 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a05:6358:7f05:b0:df:b764:45d5 with HTTP; Sat, 10 Dec 2022 10:58:36 -0800 (PST) In-Reply-To: References: <87359nsib0.fsf@localhost> From: Alejandro Perez Carballo Date: Sat, 10 Dec 2022 13:58:36 -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: Kaushal Modi Cc: Ihor Radchenko , emacs-org list Content-Type: multipart/alternative; boundary="0000000000008b611805ef7ddb8b" Received-SPF: pass client-ip=2607:f8b0:4864:20::32e; envelope-from=apc@umass.edu; helo=mail-ot1-x32e.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, HTML_MESSAGE=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-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1670698782; 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=sGPypm79wnIIllGLUgvv/gcFKmqUA7+PvL/lO09SuLw=; b=WMNJei6sggkWH19vxJg2MLPdx18YXY/f15gz5XXBeL1SzwU+qYTeNcS8PILuknXe6fi2Ol LYBqHrQPGd21Zzo3S0YrC116a2J2o85TEqdY3SggjKnXG/eYF3jeForpucEfq03Eo+rspw PNEj5hX3XVI51nBdGp78P5h/zFjwbLjTUk2HbwGGVfVVdSsomFw91i7CsJZPBT7mluGkqY jBc5rmWlbQxmLuE94FzKxBWLQCKC7FJ/PCJAMDqwAgwv9GNV3u+vX98M8SRFWpMrqAjrPC zc17iCT5zb+RxIbw77jUJbYFObyEtD2ZzLvQG/guwOyri62FGrNBDnkjE50/lA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1670698782; a=rsa-sha256; cv=none; b=LE3T+EmXtZiIjCkfomRhAs0MPsUHKmjQXOq7YS54ImLB1ucQh+VwnWoSsdx95cG8wOFFYo QRV9QmdyWKrcpxtchzYJO6uGY8O/vjz8ZHfEXNHqpg2qHfQFbDlOljIYibTUD77yJRw5Wb 8FNF1mq+33FazrHcWJM8CRFR30DQAd4DG4PwsxhzSOk1wsL+jJEy6v1P5sKKcI7Cw45BV5 W1ypHCgi+CJwsDRl4GVcOn7wcTIDDUMaK1awSvtv5LYMFRJmefvHmKi5APKzdb7jsXmWgH QVTPWaFFW2sP0duoKhOYkPwEH9jrwFq3TjDbmeMv5h8n6D4tTiFdlYJs2WPROw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=umass.edu header.s=google header.b=FSGvaeIA; dmarc=none; 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: -2.95 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=umass.edu header.s=google header.b=FSGvaeIA; dmarc=none; 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: 4AE8536C73 X-Spam-Score: -2.95 X-Migadu-Scanner: scn1.migadu.com X-TUID: fUkNufL9VWtt --0000000000008b611805ef7ddb8b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks for the quick fix!! On Saturday, December 10, 2022, Kaushal Modi wrote= : > 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 subheadi= ng >> instead of the tree starting from point position. If instead you have so= me >> 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 = 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: >> > >> > * 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=3D0616b3= c37 >> >> -- >> Ihor Radchenko // yantar92, >> Org mode contributor, >> Learn more about Org mode at . >> Support Org development at , >> or support my work at >> >> --0000000000008b611805ef7ddb8b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks for the quick fix!!

On Saturday, December 10, 2022, Kaushal M= odi <kaushal.modi@gmail.com> wrote:
Hi Alejand= ro,

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.=C2=A0
=

Ihor: Thank you for the quick= response and fix!

On Sat, Dec 10, 2022, 4:47 AM Ihor Radchenko <yantar92@posteo.net<= /a>> wrote:
Alejandro 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-mode>,
or support my work at <https://liberapay.com/yantar= 92>

--0000000000008b611805ef7ddb8b--