From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id QJBaKEKjkmNTEgAAbAwnHQ (envelope-from ) for ; Fri, 09 Dec 2022 03:53:54 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id kHTPJkKjkmMlTgEAG6o9tA (envelope-from ) for ; Fri, 09 Dec 2022 03:53:54 +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 23FA497B5 for ; Fri, 9 Dec 2022 03:53:54 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p3TVV-0004kT-Rs; Thu, 08 Dec 2022 21:53:01 -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 1p3TVT-0004kD-6s for emacs-orgmode@gnu.org; Thu, 08 Dec 2022 21:52:59 -0500 Received: from mail-qt1-x829.google.com ([2607:f8b0:4864:20::829]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p3TVQ-00028q-QI for emacs-orgmode@gnu.org; Thu, 08 Dec 2022 21:52:58 -0500 Received: by mail-qt1-x829.google.com with SMTP id x28so2686787qtv.13 for ; Thu, 08 Dec 2022 18:52:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=umass.edu; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=KY3auvUH+3S56Dne3wYnkHKa1FFbMqpk2Y6A34N5ZOA=; b=ilajiFj8H8ZuzBcBPXFMVBDQb73iFgU8fmly8JsCLHzndeIWiXebP/Z9Zb/v0tzCJ3 QXSqdJXqIkNhZoKLO3F0QNyzWxUXeQeoiZIA7fLvOPODnuQNTQccuV3PMkCWv1oh1hIn JRCbYnP1GOAUQB7xZDLxDFGmTxiRZUf867Szk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=KY3auvUH+3S56Dne3wYnkHKa1FFbMqpk2Y6A34N5ZOA=; b=vhzjODdPcpgqKlt39ggtmg0JLxymaImvVP8aeMHVzmpX8AGuPcTsEE7hLWMZ+nB9oy ZZutZmb74tHyV00P/VCMPZvMitd5B9exn7j63o3ZPgIaQHX3oDsu+9c8DkVbhxeYEXMV aQn/jotmtXlRQdfkv+uNo//TiwKr07Roye9e/jfOYlKwDC7dV7iAsmBe5zV9kheirReJ eldAtrfoRn7Nyn1hgyDKTpfElfqjV216gCSOZRqxI9eN4PqhrsUJo7IbUsGYoGEVYCp2 gs9+cOOZR2R6WsKymlFJnrckruDH3KxUuai3VLQEQqwj+z87KmS88itiVQFrZP9b8xcI 9xSw== X-Gm-Message-State: ANoB5pkWqXeTLcyOM6rnl2lHLjVYhumv4hf04p3ZLhSWeTobg+kryGHx hxim4mnbKs8NKY9LZ5LRWDeXc1NQm8Jtw++V X-Google-Smtp-Source: AA0mqf4xtq+qJ+f1+yT4NDw0bS/aXAMf0yb1MxvgNqVzbh51PQ2lp/KEA8VBtjNZkvjl21cyDg+pjw== X-Received: by 2002:a05:622a:242:b0:3a5:467b:c1d0 with SMTP id c2-20020a05622a024200b003a5467bc1d0mr9376954qtx.18.1670554374833; Thu, 08 Dec 2022 18:52:54 -0800 (PST) Received: from localhost (c-71-234-176-197.hsd1.ma.comcast.net. [71.234.176.197]) by smtp.gmail.com with ESMTPSA id h2-20020a05620a400200b006fcb4e01345sm213590qko.24.2022.12.08.18.52.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Dec 2022 18:52:54 -0800 (PST) From: =?utf-8?Q?Alejandro_P=C3=A9rez_Carballo?= To: emacs-orgmode@gnu.org Subject: [BUG] Setting export scope to subtree not working as expected [9.6 (9.6-gb3da42 @ /Users/apc/.emacs.d/straight/build/org/)] Date: Thu, 08 Dec 2022 21:52:53 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::829; envelope-from=apc@umass.edu; helo=mail-qt1-x829.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, 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-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1670554434; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=KY3auvUH+3S56Dne3wYnkHKa1FFbMqpk2Y6A34N5ZOA=; b=ppMAPoMB6/xi6X11DIl73U3XDImH7KaTENJ1cVy0RqIJ3AH/R4vBEeVMWsyguiDgY/nSR3 yi5el4vRZa+tonjW+Vkw8ipGhO/+KVKdF+vYmcAYpVH9GTANUKju6wFMGOVGq3tQL6FUwJ IuFxCWhw0c0BL4u6XwDojFREGTazM1/hWWa/3cXd54M9rANkHnipQdm0RyFyFsc/ykOGyU xJmmYZbXiqvl0tYvG6b48MwHzlBDPtAk68R8qPD587YGHtRIcjz3DPopiGC90hiGikojaG LtLqPX6vtwUirkD9zmEYjNA6lr+FzyeVPt1dhMwilRvLWmBEFZFNHy0GP0yEAg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1670554434; a=rsa-sha256; cv=none; b=fextC7hE8pFmecNqjLPgLq8Uu9KWtA1rd/qk4nZlDzz0JWHvEjri5cSXGl98W9zgIPujiy TMAYDCgveeT+083PlY1/1n3sIsR7U7Up4rwKny93/YQhsRTv1wDXaVujdUt0HSZ1dYqs2W VqMrYRmMKqzy4XXgCEv953AOu44qoIt5L7vl7WCfKRBJbj5DVrkKE8aaQYQXNdY2muyJB8 NRIkGEFQySW+aWkuVwYMIlNMt0TVPgFTNTzulEpiPqj2vRYhMI0xIqloH9nLvGCLDnm8jd c0j0BP8XU33T6XQlYmz7nze+yxx7Nq78uUtWqQzg03XjPcoF+jzfFXW2+OIXAA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=umass.edu header.s=google header.b=ilajiFj8; 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=ilajiFj8; 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: 23FA497B5 X-Spam-Score: -2.95 X-Migadu-Scanner: scn1.migadu.com X-TUID: BQxj1/PVfeug Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See https://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org mailing list. ------------------------------------------------------------------------ If point is on a heading followed by a subheading without any text in betwe= en, the export process is using the tree starting with the subheading inste= ad 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 exporte= d is the tree starting from point position, as expected. I=E2=80=99m assumi= ng 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 firs= t 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:=20 * The title Some text ** A subtitle I get an HTML buffer whose title is =E2=80=9CThe title=E2=80=9D. This doesn=E2=80=99t happen with Org 9.5.5. In both cases, I get what I exp= ect, viz. an HTML buffer whose title is =E2=80=9CThe title=E2=80=9D. I can reproduce this with the following minimal configuration: I can reproduce this behavior with the following minimal config: (setq straight-check-for-modifications '(check-on-save find-when-checkin= g)) (defvar bootstrap-version) (let ((bootstrap-file (expand-file-name "straight/repos/straight.el/bootstrap.el" user-e= macs-directory)) (bootstrap-version 5)) (unless (file-exists-p bootstrap-file) (with-current-buffer (url-retrieve-synchronously "https://raw.githubusercontent.com/raxod502/straight.el/develop/= install.el" 'silent 'inhibit-cookies) (goto-char (point-max)) (eval-print-last-sexp))) (load bootstrap-file nil 'nomessage)) (setq-default use-package-enable-imenu-support t) (setq straight-use-package-by-default t) (straight-use-package 'use-package) (setq use-package-verbose nil use-package-compute-statistics t use-package-expand-minimally t use-package-always-defer t) (straight-register-package 'org) (use-package org :ensure t) Emacs : GNU Emacs 28.2 (build 1, aarch64-apple-darwin21.6.0, NS appkit-211= 3.60 Version 12.5 (Build 21G72)) of 2022-09-15 Package: Org mode version 9.6 (9.6-gb3da42 @ /Users/apc/.emacs.d/straight/b= uild/org/)