From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id sLp9Js3wcmMQ0gAAbAwnHQ (envelope-from ) for ; Tue, 15 Nov 2022 02:52:13 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id qMeIJc3wcmNRSQEAG6o9tA (envelope-from ) for ; Tue, 15 Nov 2022 02:52:13 +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 346293C2C8 for ; Tue, 15 Nov 2022 02:52:13 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oul6i-0005uc-0O; Mon, 14 Nov 2022 20:51:24 -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 1oul6g-0005uB-DY for emacs-orgmode@gnu.org; Mon, 14 Nov 2022 20:51:22 -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 1oul6c-00062Z-GL for emacs-orgmode@gnu.org; Mon, 14 Nov 2022 20:51:22 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 01D21240101 for ; Tue, 15 Nov 2022 02:51:12 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1668477075; bh=/VI8zJagsbdZJQle0JuICJ2c8p8QUA/Usc+QhYd6oYI=; h=From:To:Cc:Subject:Date:From; b=ZukxAIZAtWf5QUrCKpvJMqDyaABOlaX1qxKzvXUPQPFC/BEtuP6cRRkiZ9XaKf8g1 friMzXkT/SDfM0UO9po8y7pZF3U64scdX53mkb83m2Gp3J5i6NkVLJVnDpWWJt+Aye o6UeVX+1hHkNgrNk6j49jPjkdxdvZV4XLR+955Bct1xaJ0iP2JCj5wlkVSNsgV4tqe k2ziFwikkaYOu+CBymr8+D1b+kiF7xYtsgvXbl2zR4n83/sAsW9fED2VKRvghWXpk/ 8QZqzDMeaXKxo+0Qxnmer3I0K/e3zsREa05nmResQiAz2aEPur2WUGWBHGcQHRnm19 tcheRy2niwVfw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NB8KW1C0xz6tpT; Tue, 15 Nov 2022 02:51:10 +0100 (CET) From: Ihor Radchenko To: Thibault Polge Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] A commented line breaks line numbering [9.6-pre (release_9.5.5-1058-g6ef33b @ /home/thblt/.emacs.d/lib/org/lisp/)] In-Reply-To: <877czx7nzp.fsf@thb.lt> References: <877czx7nzp.fsf@thb.lt> Date: Tue, 15 Nov 2022 01:51:52 +0000 Message-ID: <87k03xdlxj.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: -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, 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-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1668477133; 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=ftFSULus1kjh3N9k2QktAH9Z/duMUYJspIsovcPM6HU=; b=E/YaFqK6BEyLavFOjycoWFnaFjvQMjxi6zKin4gbdOxgS0j/3a3uIB33ZWcHm0khdnkEB1 gN0Tob5rN+xse1HWGtoF7nedcZMFmXdjp+RAgX4q1O2/sbi6CdVaPKfhmfNHtBvrxSwsCE OYm3yVQ/gcNjs7ew6rTnkBpAjNk4FVpWcGcvdogzAP5U1GOed3PoVoNN26sRJaRCf81sbq YRA4HGheCDa8QdOAMCDBCvFIIlSXxDuWnZ9gwqvPEBIB10lF8kyCDJA3z1DdoXXopH+Km0 bkCKpHj3A2jOznNsUB8Q0HwYTEbLi5mscHRIL3kHjII+x48o1pftLZ1CH4JHcA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1668477133; a=rsa-sha256; cv=none; b=t6Mj609wMT42R96hkrz2FnUjOl2NW7cZauz/Xof2EIddDQHWN1aZe39phgA0ihx+kAxjVG Aaw1BWW6IHm9eOIyJcT/5medpLnddVaKRH34E+7fdRDxIqy3EkzeA8imw4tGFtasMlM9/Q FOGTWXL2od4dP24eRO0soBtNHjHaGYToViv5c1KndrhZ2ruyH9Kj642qWn1jM0dlY9aB5T r99WJ1WG5rOQSzaugFuPteQiGhUMDtsBdjLKgz2oTKJyMpvePFTG8URayD+0VtE3zLD/09 qwBmU4Xb+GwB5e5Qqe9Oqkl9bky0cNeMehY3XZl7twk+8XQ4L10AQHJ8T1rrVA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=ZukxAIZA; 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: -4.84 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=ZukxAIZA; 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: 346293C2C8 X-Spam-Score: -4.84 X-Migadu-Scanner: scn0.migadu.com X-TUID: V6qzuvQUPbRR Thibault Polge writes: > With org 9.6-pre, a commented out line breaks list numbering (even with > `org-list-repair`), and effectively breaks a list in two distinct lists > in exporters. Eg: > > 1. Item 1 > 2. Item 2 > # 3. Commented out item 3 > 1. Reset counter? > > At "Reset counter?", HTML export opens a new
    there, LaTex a new > \begin{enumerate} > > This may be expected behavior --- it's present in Pandoc as well It is by design, and it was like this forever, not just in Org 9.6. Comments are a valid structural element in Org AST. They are just not exported. It also means that comments can belong to a list item: 1. Item 1 2. Item 2 # 3. Commented out item 3 3. Reset counter? The above does not break the list into two because the comment is considered to be a part of the "Item 2". > --- but > it's surprising, since I'd expect a comment line to be fully ignored > from the comment marker to the final \n, inclusive. I'd thus expect the > above example to be perfectly equivalent to: > > 1. Item 1 > 2. Item 2 > 3. Reset counter? > > And to export as a single
      /enumerate. This can be done on export, but it will then create inconsistency between Org buffer behaviour and what you see on export. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at