From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:1008:1e59::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id aF/sBU2OnmXl6wAAkFu2QA (envelope-from ) for ; Wed, 10 Jan 2024 13:32:13 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id gPfwAE2OnmWiVAEA62LTzQ (envelope-from ) for ; Wed, 10 Jan 2024 13:32:13 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=WPoguu54; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1704889932; 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=OzB0kZrZ8OMflw6ZMt9wxW4c8jbZReUa3ug5qk18asg=; b=PSfAdhph3G2/VVIDXNVkmL8HLch1ki/PLLO6s3d68cWL2Y9uQXxSpqhj+cpoa8owlnvTV0 JdT1GzsCrvHvNukuqsVdRwqO0lrg9RFpqAvaLUQVqPYE4o7omD1KHtFk3Z8a8opF1s2z66 /QJhexCWpueU5Pzc6BBNJJDkeDdWEMFckQKtgSiSGKwjUZV4lm/+q2CxsavIXv6kUpeT0/ YKY9rDUuupfcK/4UNFgprHb+5d0C8It70J8vov2y2pUtFRZGtIhHpDuGVmaHMhT0nN5gA/ 2QL1FQ+Q5GblR1/+krlVaBzJvkvX3A1J8GftdShIAjt2/6fmhT71bUEinLH4Qg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1704889932; a=rsa-sha256; cv=none; b=qhHpMMktaCg+HgPl6d/wyPlchNORehRe3I4wR97eHNFrZLvxcE5hGXoP4p666XjPqPh+kI Eqrf0ZMPalcku4DHuaYtRHXl/tR1j679kWUo7NVGH4aRfzUANjy9k2giU3NZvyIOgKbssi 2HPQ8GvCNU0pp7IJyGyYHIBAAeMh/RbAbh8IUvn/kAlmUyIi5oCKKq3wOxpchQsYyRdGf5 drs+qUwt+Hko8SLB4hTuLNVC75zXWVSSCZ0Z/g9AW8XY/qi844xOYJwo4kF1KiVZyCWowP YsxxPdRZ6cbMJrZK2tfcsVPs9iwpqNJOki8rj+G7NYPinLeiY0jofONtiSHJPw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=WPoguu54; 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"; dmarc=pass (policy=none) header.from=posteo.net 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 C8984735FA for ; Wed, 10 Jan 2024 13:32:12 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rNXjx-0005vO-Qs; Wed, 10 Jan 2024 07:31:25 -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 1rNXjv-0005uw-Sa for emacs-orgmode@gnu.org; Wed, 10 Jan 2024 07:31:24 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rNXjt-0002L5-Vc for emacs-orgmode@gnu.org; Wed, 10 Jan 2024 07:31:23 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id AE07B24002A for ; Wed, 10 Jan 2024 13:31:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1704889879; bh=sMVsRXMrfavvsxYZZjVMCPY5S7U2RwvwrWAq0fn9Msc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=WPoguu54Ul9Bd7wUPjI3ixebbmZLp11krGrLxRZSbyeVPUXQWrGjBJz84V35TgXMA 8c+Kn6dxA+S32sq4+Z2GAecVCIGbOlpJkO+DBFsAZwBTv1FRb1uT6Bl2nO1ipSH9K/ qWUmae2QQAH0GOpN4Jw6KhRJfBS8ZzjlgvZN6W9LrjZvnv2/jbCRPh60G9VTODWJBV rd5OPz5dXFVxIsRnpevBvolfo6b+/QntCqMhHTVMyLFCjD+t1LKuOoe/shUkcDxfxJ TwbZR4fIagHW661JtfHdu9kHHSKZdUHhNxB90dpK5TF82Uvvh2hWHU25KOOElRSToY /ix6AT0qlgqFA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4T96bq05Ysz9rxN; Wed, 10 Jan 2024 13:31:18 +0100 (CET) From: Ihor Radchenko To: Psionic K Cc: emacs-orgmode@gnu.org Subject: Re: org-(un)fill-buffer In-Reply-To: References: Date: Wed, 10 Jan 2024 12:34:30 +0000 Message-ID: <874jflqsdl.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: C8984735FA X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -6.57 X-Spam-Score: -6.57 X-TUID: 9ucs8+gIyzzz Psionic K writes: > I wrote up a small addition to the unfill package, which is very > convenient for switching hard newlines out in favor of tools like > visual-line-mode and adaptive-wrap. > > The command unfilled every list and paragraph in the entire buffer. PR is here: > https://github.com/purcell/unfill/pull/11#pullrequestreview-1812645481 This PR introduces a function to "unfill" a region in Org mode buffer. > Steve wants to consider it for the org package itself. Questions from me: > 1. will this be accepted? > 2. where would it go? > 3. because org is more general than unfill, I would instead name the > command org-fill-buffer and we can recommend that users run in a hook: > (setq-local fill-column most-positive-fixnum). After that, every call > to `org-fill-buffer` will just do what they mean, just like how > `fill-paragraph` will respect fill-column. You may instead just run (let ((fill-column most-positive-fixnum)) (fill-region (point-min) (point-max))) -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at