From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 4FPHBF0fPGNvqwAAbAwnHQ (envelope-from ) for ; Tue, 04 Oct 2022 13:56:13 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 8HydBF0fPGMrBwEAauVa8A (envelope-from ) for ; Tue, 04 Oct 2022 13:56:13 +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 A33DF11EDE for ; Tue, 4 Oct 2022 13:56:12 +0200 (CEST) Received: from localhost ([::1]:43934 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofgWx-00082q-QH for larch@yhetil.org; Tue, 04 Oct 2022 07:56:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54894) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofgVo-0007yf-8i for emacs-orgmode@gnu.org; Tue, 04 Oct 2022 07:55:00 -0400 Received: from mail-pg1-x529.google.com ([2607:f8b0:4864:20::529]:33789) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofgVm-0002Vl-Fn for emacs-orgmode@gnu.org; Tue, 04 Oct 2022 07:55:00 -0400 Received: by mail-pg1-x529.google.com with SMTP id f193so12556300pgc.0 for ; Tue, 04 Oct 2022 04:54:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date; bh=cMmJ2LzbqPmNsieTOuCE4r38f+OjzmbjdGs3c9ynaSA=; b=h2fY6Zzxg4S0WA2ZFpAKL1gMfKOgtw2sFSi0i4QayA4P2633JyUkNYRRTrWSMkefVD 6MtnyJcUlYGiKPy0DePv6T07MS+VnirRUNuV7eBV5BEdJ2O1z5KKuvNPfXT7MMQwRhCs 7rZzVR7XADuWegVarFUUBp636LalAg0lARua/4S1BSTMV83abJBtUJtSLrQWXhu/CNjN ZqPfC3x36XGbP+67X+vmyRu0Z+FhGmB1ueVU0Oe4FDOPCMOpXynkMrzDaT8lDrOETN8v n44MzwqgUmatouv3oxLo/5+v3SdrLPRiBmTBVcudSuVLibaz04/DxhPFEOx7MwcFMwlf zeag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date; bh=cMmJ2LzbqPmNsieTOuCE4r38f+OjzmbjdGs3c9ynaSA=; b=dC6yYtB8ifNRu8qZ+o7sbiPNKnX5NpKf924M5QMsxva5qZMZeBlMUdIeD6+k4ynAND 0KiBQYBtnmWskVW35XUYyQKOxlQZot+D8wewLcUu5PaS2Qkcv4bmbIHk8bDf4DCpFIdV tbgm0H7KqV0kquITjj1kRu6n+QRrNHfGiWiNY3qmU75xZcBG69MhH6euvLRHpihBBlS3 fT7cFMH+/oQ2RMRCcPB7tVs3jlkoBF6jqyHlvv/MtzmmqZ7tb5tTqeJzgtqB1FNgy/KH GWLwUek/ZUpS5cjrNEPruUNt752/pifEz9GDOdaS/Q1k5fDMoGHLtHMD88pwqykuHRGs EElw== X-Gm-Message-State: ACrzQf1prCQrYIFDjiWG587AvrR4bXGSI4/7XwJsnujYbW7up+dK/JQn HocGUkXFIVdc4la+7gsOebg= X-Google-Smtp-Source: AMsMyM7N78eNLh8RLWmJUqFUAy/I7P44/wuOl/txBBv/E1KcIHgWQguj7WB6uyqczkaRkU3nAfYbtw== X-Received: by 2002:a65:580a:0:b0:439:befc:d2b0 with SMTP id g10-20020a65580a000000b00439befcd2b0mr22768578pgr.302.1664884496293; Tue, 04 Oct 2022 04:54:56 -0700 (PDT) Received: from localhost ([2409:8970:a80:3a4:8ec6:81ff:fe70:339d]) by smtp.gmail.com with ESMTPSA id m2-20020a170902db0200b0017e64da44c5sm5113411plx.203.2022.10.04.04.54.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 04:54:55 -0700 (PDT) From: Ihor Radchenko To: Richard Lawrence Cc: Kaushal Modi , Marco Wahl , Tim Cross , emacs-org list , Nicolas Goaziou Subject: Re: [PATCH] Fix org-comment-line-break-function In-Reply-To: <871qro5e4w.fsf@aquinas.mail-host-address-is-not-set> References: <87lf18fue9.fsf@aquinas.i-did-not-set--mail-host-address--so-tickle-me> <87v90cpcdx.fsf@yandex.com> <87ilwcf31l.fsf@aquinas.i-did-not-set--mail-host-address--so-tickle-me> <87pmqjkai3.fsf@gmail.com> <87fsrffknl.fsf@aquinas.i-did-not-set--mail-host-address--so-tickle-me> <87czmijtrp.fsf@gmail.com> <87o861o9sh.fsf@aquinas.i-did-not-set--mail-host-address--so-tickle-me> <87h7btpfbt.fsf@gmail.com> <87zgpli5nc.fsf@gmail.com> <871r2suhw2.fsf@gmail.com> <87v901oost.fsf@aquinas.i-did-not-set--mail-host-address--so-tickle-me> <877d1m9343.fsf@localhost> <871qro5e4w.fsf@aquinas.mail-host-address-is-not-set> Date: Tue, 04 Oct 2022 19:55:47 +0800 Message-ID: <874jwjvm4c.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::529; envelope-from=yantar92@gmail.com; helo=mail-pg1-x529.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=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" 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=1664884572; 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=cMmJ2LzbqPmNsieTOuCE4r38f+OjzmbjdGs3c9ynaSA=; b=DR1AeBsJWN6BYvHjVoXvKdOZXUvfGXn7g50hx1VhdhS7YUtREhkesnS0TIbcYHcIxaBSmX 4C93X3MAVPF7y8lQRUY88vDD3xMIOJq3ysyRhKaw+Zvc88ApBMW63Iga1BlMdnQYyI4QBE Ra0+9Bq9kNYnbQT3cGyhWDPpuFujnXesv8h9hbJNCUs9OXLk74+5G1mJotF+gzhQ5cM3QW MgQKOuJNLv2iWNFI8DZw4QpCAxnKj3jQaOdGu2eY4ofLXTWXbw22Wx667LB4AMLdyyJc6q 2clrPiB+k61gWKCI02D1l6Qqyh9HpWZSb7FvcjDfRRjubWIxUXzvpSACWENbTA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1664884572; a=rsa-sha256; cv=none; b=i4wISz1NSdfjCUKy5hXN8P3AjBeuRAgWBsKt3zZplynb3G99AmCUsMVEk3k3E01uL5AiNM CwfbusDqPoOowzh0nHn7Y7sQdpv4bXVNnGZLEvhks2WBGbWKiZ9++6zqM08MtdvUvfuIka ew1HG7e86LLqpDH9GykalUlXnyAydLyygbH4+liqgucQ/D+uj6hKHkOOBhqvUQUXZlN11U V7WwfGgKA/SVUL6lHdSDQ51A+gAUr299dcP79ed1Yi+bQKG0b1rYSJthydltUPO98fTQJe rSSCdql6DWIa/RsEVB23bocJLomEDg2Z9uRqYoxRqIdZRF5QpgngPdL/tFpazw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=h2fY6Zzx; dmarc=pass (policy=none) header.from=gmail.com; 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: -0.36 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=h2fY6Zzx; dmarc=pass (policy=none) header.from=gmail.com; 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: A33DF11EDE X-Spam-Score: -0.36 X-Migadu-Scanner: scn1.migadu.com X-TUID: hrqAhwjQxHxe Richard Lawrence writes: >> I am attaching an alternative patch to fix the issue using Org element >> parser. Note that I reused your tests. > > FWIW I've tested this patch for a few days and it fixes the issue for > me. I'd be happy if it were merged. Thanks for testing. Applied onto main. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=506d5b12ddbb319f0f70593cda54d8d9c580db7b -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at Fixed. Applied.