From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.bugs Subject: bug#68418: refill-mode interferes with org-mode headlines Date: Sat, 13 Jan 2024 18:37:23 +0000 Message-ID: <87wmsdt6zg.fsf@localhost> 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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23562"; mail-complaints-to="usenet@ciao.gmane.io" Cc: rustand.lars@gmail.com, 68418@debbugs.gnu.org, salutis@me.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 13 19:35:20 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 1rOiqm-0005uQ-48 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 13 Jan 2024 19:35:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rOiqZ-0004rd-CW; Sat, 13 Jan 2024 13:35:08 -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 1rOiqV-0004rA-Sv for bug-gnu-emacs@gnu.org; Sat, 13 Jan 2024 13:35:04 -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 1rOiqV-0002K0-GM for bug-gnu-emacs@gnu.org; Sat, 13 Jan 2024 13:35:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rOiqU-0002gD-5F for bug-gnu-emacs@gnu.org; Sat, 13 Jan 2024 13:35:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 13 Jan 2024 18:35:02 +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.170517085710221 (code B ref 68418); Sat, 13 Jan 2024 18:35:02 +0000 Original-Received: (at 68418) by debbugs.gnu.org; 13 Jan 2024 18:34:17 +0000 Original-Received: from localhost ([127.0.0.1]:41060 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rOipk-0002en-N8 for submit@debbugs.gnu.org; Sat, 13 Jan 2024 13:34:17 -0500 Original-Received: from mout01.posteo.de ([185.67.36.65]:41201) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rOipi-0002eX-Rx for 68418@debbugs.gnu.org; Sat, 13 Jan 2024 13:34:15 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id E6114240027 for <68418@debbugs.gnu.org>; Sat, 13 Jan 2024 19:34:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1705170849; bh=mT45aUU0LV/zJ20wbuka6zlSOb8Rf91P+y4Y6tAaVg4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=SJluPlbsg1vZH7eaFG54prmIatL8fM9FeAe4G/2hFxLNW6a18hkFtbTRhjDqE2yH9 aKgVTYu+I07uMZD6u/mhT60svej4Ymp6w4opd3RdhrDEmHSfvmIb2tA/af/3kU6BXB yrHNZAlLCQ1I3uZGMyOlJNfFKzx7QVcoqXD2ps4rBlqB1O9r+bHLtihmId9IpydwTD rcve71LsnTCmxhoMTIZWPOnK2S8oRNH9eOtnAHXl1eGQs8cPswc3EFwhphRTtnT46b QUDMq2Z6m+A9XbYNagyA6x3iBUysWALeEMCMUNsjzI7DFBahkEIaaJTEgqKn1SS9/A dilJgrecOestA== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TC6W50Q07z6twG; Sat, 13 Jan 2024 19:34:08 +0100 (CET) In-Reply-To: <8334v1grai.fsf@gnu.org> 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:278141 Archived-At: 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. However, this idea will not work because: 1. It will cause infinite loop in `fill-region' that is also using `fill-forward-paragraph-function', but expects it to move somewhere. 2. Make it impossible to implement custom filling for non-paragraphs, as we do for source blocks (by delegating to source block major mode), tables, and comments. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at