From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#68418: refill-mode interferes with org-mode headlines Date: Sat, 13 Jan 2024 21:00:55 +0200 Message-ID: <83v87xf47s.fsf@gnu.org> References: <87il3yqmkl.fsf@gmail.com> <83le8thchr.fsf@gnu.org> <87mst9uzv3.fsf@localhost> <835xzxgxhh.fsf@gnu.org> <87frz1uyki.fsf@localhost> <834jfhgtb5.fsf@gnu.org> <877ckduudh.fsf@localhost> <8334v1grai.fsf@gnu.org> <87wmsdt6zg.fsf@localhost> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35215"; mail-complaints-to="usenet@ciao.gmane.io" Cc: rustand.lars@gmail.com, 68418@debbugs.gnu.org, salutis@me.com To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 13 20:02:19 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rOjGs-0008xj-Mh for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 13 Jan 2024 20:02:18 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rOjGf-00017d-1v; Sat, 13 Jan 2024 14:02:05 -0500 Original-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 1rOjGd-00017V-FU for bug-gnu-emacs@gnu.org; Sat, 13 Jan 2024 14:02:03 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rOjGd-0007vP-5T for bug-gnu-emacs@gnu.org; Sat, 13 Jan 2024 14:02:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rOjGb-0000S0-Qq for bug-gnu-emacs@gnu.org; Sat, 13 Jan 2024 14:02:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 13 Jan 2024 19:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68418 X-GNU-PR-Package: emacs Original-Received: via spool by 68418-submit@debbugs.gnu.org id=B68418.1705172482495 (code B ref 68418); Sat, 13 Jan 2024 19:02:01 +0000 Original-Received: (at 68418) by debbugs.gnu.org; 13 Jan 2024 19:01:22 +0000 Original-Received: from localhost ([127.0.0.1]:41095 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rOjFy-00007v-F7 for submit@debbugs.gnu.org; Sat, 13 Jan 2024 14:01:22 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55480) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rOjFw-0008QJ-CF for 68418@debbugs.gnu.org; Sat, 13 Jan 2024 14:01:21 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rOjFs-0007Za-4W; Sat, 13 Jan 2024 14:01:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=5wKgkPCRUw542TxPLKBxZS/P564ynCkjTxlMoLRJFyg=; b=PMgrSXFDJy7o fcLv/UeGROJk4BGBZR3237xiSowuL3Nqskq9DYqv5VvDthr9zswgB/yCQnGUXLzhsalekOd9Z5Le/ 6f0PrInLQUbF7URD/Z4J/WVZ4qVKThuHjExG4nYomhtHK5m1CVYXYG2o0eCRMUTUN72cJsskMjeDn goYqcb2F+LhgaBtTapYc8sfRzrqEHxVe/dlGbhzu9ywkan1mBZ6XfPEt39LqEL0ueWCt0n3Yve1gJ PfkZb8dZhnCOgfbKmt6FI8lcpB4jYqCGJc4v2VozZqOWKfDpAq5XDr3xC5p5FE2/DTcNDuTdG4xcN gtx3zjjdJcF9qihvnWQ0mw==; In-Reply-To: <87wmsdt6zg.fsf@localhost> (message from Ihor Radchenko on Sat, 13 Jan 2024 18:37:23 +0000) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:278144 Archived-At: > From: Ihor Radchenko > Cc: salutis@me.com, 68418@debbugs.gnu.org, rustand.lars@gmail.com > Date: Sat, 13 Jan 2024 18:37:23 +0000 > > Eli Zaretskii writes: > > > I mean the problem with refill-mode that you described in > > > > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=68418#19 > > > > Is it possible to fix that by some improvements to > > fill-forward-paragraph-function used by Org? > > I doubt so. The only idea that is coming to my mind is to make Org > mode's `fill-forward-paragraph-function' not move anywhere when not on > paragraph - this will prevent refill-mode from filling anything but Org > paragraphs. Is the problem in your example what fill-forward-paragraph-function does, or is the problem elsewhere in refill-fill-paragraph-at and/or refill-post-command-function? IOW, can you tell which part(s) of refill.el fail to DTRT in an Org buffer? I don't know enough about all the peculiarities of the Org format to tell what should be fixed in that case, let alone how.