From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 SOX2NY9EmGKuFQAAbAwnHQ (envelope-from ) for ; Thu, 02 Jun 2022 07:03:11 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id YDDVNY9EmGJU9QAAauVa8A (envelope-from ) for ; Thu, 02 Jun 2022 07:03:11 +0200 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 34026D9C1 for ; Thu, 2 Jun 2022 07:03:11 +0200 (CEST) Received: from localhost ([::1]:57468 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nwczG-0000B0-Cx for larch@yhetil.org; Thu, 02 Jun 2022 01:03:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53998) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nwcyk-0000AY-07 for emacs-orgmode@gnu.org; Thu, 02 Jun 2022 01:02:38 -0400 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:39391) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nwcyh-0003lN-Sz for emacs-orgmode@gnu.org; Thu, 02 Jun 2022 01:02:37 -0400 Received: (Authenticated sender: pe@7d.nz) by mail.gandi.net (Postfix) with ESMTPSA id 82E61C0003; Thu, 2 Jun 2022 05:02:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=7d.nz; s=gm1; t=1654146153; h=from:from: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; bh=3TXHYnbyvwDSVKXQ8GWHowVTuS3S8MAeZjeiwdzNHjA=; b=YezdDxmPNcMFcufH3CHiSICTAMUzTuK290BCho/H0+eSsemDW3C7RN2pRmmm4fkHxp5pFy luXY3xqFY63g0+slC3qaoN9m+27HJ8dDZvsoCCw+PX5T4mVFOBXIcqrQqIBzW1Tndk9sdO fFm/Svz8PPLcY9vrWsB6mU73cJEFAhGD5Du/yqag1e8kQXreo63ox0SitEypvNPUpKdM9z LQEwjZAimqswqpM7lRFUXbtgCCWccqCFki6U80XRIsPx+eEp6aYDFUu6OrA2vO1uigzBOM /B4f/4Rdtpy1b+wTfg+5et00+LcC5YSalxCODAYQr0nPrx9B7fg5y1vEDrniJQ== Message-ID: <20b5709c-0def-c898-a0db-40322b5a3f1b@7d.nz> Date: Thu, 2 Jun 2022 07:02:50 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 From: Phil Estival Subject: Re: [PATCH] ox: fix comment exported as a blank line To: Max Nikulin Cc: emacs-orgmode@gnu.org References: <87618398-cf6d-86b4-ba59-144f70d0f96e@7d.nz> <18449694-8ad1-3f0c-d18a-3b6fd5369478@gmail.com> Content-Language: en-US In-Reply-To: <18449694-8ad1-3f0c-d18a-3b6fd5369478@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=217.70.183.198; envelope-from=pe@7d.nz; helo=relay6-d.mail.gandi.net 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, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1654146191; 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=3TXHYnbyvwDSVKXQ8GWHowVTuS3S8MAeZjeiwdzNHjA=; b=VkPTdyRp+p4deK3jY4z9SOpDHMsvtRRevGWMMy4NoRTmJs4P4gJV1b/MLhNC75v4/1Ng1S X+nxCFvjeQSfiIYD1o2AYHBglqIYurLnjvYK4ofOGsvXUE1KuZRvfbwTLuLaemolZNqN/A 86k1K1nGbE42vmAdjioeRCHUX7SJgTvX0AS1rwa0nkXywL+SJwJrH+uERn3k9QXRUjRrmU JalSJmAsgPNmpM4Wll1WzTX7s8Cf+R2qkOb+6hho9v9iRYA5TGcgjcgjepFFt+qFINIAFe KmKBLnIAJsfgF+jNhc2L20ZyPh+0XKFGA2E3MVNcb3xBLRDJ9/+ATZulUA1mZg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1654146191; a=rsa-sha256; cv=none; b=nL/A7G155O2rxopSl0x/ZgOTZAq6qAl8CyD8QK4m5+G7caOtJTyjwFE6gndqIvW6Nk/wTf nN7CpEygj146DaFQuEkuOqRzXjlDKBBeUI4WAxlF4p96DbTaPAc+txLe42elpZlvKJFqVr wdrgPjD7eAfa5om5m4KnHA2PRsOK0PcX1mPIffAb/2bn2pnPOtWl7E9HwKn35T3Gu4vxN9 W7+431Bpw6qVSYzP94TA+wfgm6rYeNGqclSZyMCaBOOXfkV/0oE1AgQ3/sA/2S2aUqJs73 rLdWDihMvUQs8TUGPTgt+sOBXBMTgBze170bO70/hiYFp6DU64759OEz6lYzHg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=7d.nz header.s=gm1 header.b=YezdDxmP; 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: -4.93 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=7d.nz header.s=gm1 header.b=YezdDxmP; 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: 34026D9C1 X-Spam-Score: -4.93 X-Migadu-Scanner: scn0.migadu.com X-TUID: M7QXpi92IN6d Le 01/06/2022 à 13:48, Max Nikulin wrote : > On 01/06/2022 12:30, Phil Estival wrote: >> >> * lisp/ox.el (org-export--skip-p): no longer export single-line >> comments as blank lines which did break paragraphs in two. > unfortunately, you took a wrong direction > If you are interested in other cases when org paragraph is not the same > as exported LaTeX one, see the following thread: > > Max Nikulin. Comments break up a paragraph when writing > one-setence-per-line. Sun, 3 Oct 2021 18:34:10 +0700. > https://list.orgmode.org/sjc4fk$76r$1@ciao.gmane.io Max, Right, thanks for the clarifications. A hook at pre-export stage to filter out the line-comments is one correct way to get an output compliant with different backends. Yet the removal of comments may provide an AST different from the one of the emacs buffer. >> However there [are] users in this thread who >> expect that "# " or "#+latex:" should not be >> "element" and should be a part of surrounding >> paragraph. That's an interesting idea.  This would add an attribute to the previous element. If we keep speculating on that, the rendering path would change. It would have to consider this property too when showing or hiding elements. And it would require additional function to reallocate this attribute like a node. And this would probably break some conceptual integrity. The org spec is correct to handle the comments the way it does. As I see it now, that's the only possible attempts to reconcile the behaviors of different backends. Still, the writing experience is much improved when comments are allowed inside paragraphs without disrupting the publication, and this definitely worth a few modifications. Phil