From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:700:3204::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id UN+PGM9An2WxjAAAkFu2QA (envelope-from ) for ; Thu, 11 Jan 2024 02:13:51 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id 2OcpEc9An2UnLQEAe85BDQ (envelope-from ) for ; Thu, 11 Jan 2024 02:13:51 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=Vatcj4xF; 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=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1704935631; 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=emGkSb8/PSxliFpwEX7J7GCQM9IDvo2ag/uJob4uMew=; b=UWzm1c62CPybKOz6LwTeIboRjf22S1j2/BAf1lSgfIneMnCDNLjDgePc3rRMGE0ci/4amu IarRoJDQpogXgyNnDVxcT19qPy3Qjzt8f0A66icJ3Z54wa3/S365m8TAo12IP9Xoz4Q9iV Pb0XmERkWHF2ifA5l0JGQTC26iJfYqdOj1/Xa8iycDPAORf3lKzTqHgq4sQEufB2ZtPfbJ tPkxOEqHSf8HMMFKarhkbKUdOT0aUZEUP5JJD/3zKb+UJAIXXisGWQSfvEdvnO/vh0NlH9 OR0RqHYCHMKf/uP6RGSZC/dkcaxupjquLWuFC1om5wQXXMyLt4XQleZm6Y0acw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=Vatcj4xF; 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=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1704935631; a=rsa-sha256; cv=none; b=WKz15czlzayWXmiPNPG4w50ZadLv+qB4xw14IvHZ32V+voYgh2gGXmohTUxc4ZVC0L5Wi6 pb1GTgnBTXPyf4NPTkPYCNp8SXJecJrccMR22cmyUQCon/y3TzsvHGu/0ZOlaPyEoTpomU X7cR1urB5GFewjrLEqH+BTuiHhUZSs2AMb+kd53wAxuOi+W5RwAyNNUreQEloegiV5IGQ2 e8APZsfPHkO+Ge3ZIRFYscjChlyva9LlTgXIhZTOHuiE0qQUZUJt3G6zfrEG8N2nP4IEnh TNxinAKoByN69soahZvPvSNSKWHXmNOoL4XU/6bIcBYOtoltneWCORVZm0ZsuA== 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 C61BD38913 for ; Thu, 11 Jan 2024 02:13:50 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rNjcx-0001oG-Kr; Wed, 10 Jan 2024 20:12:59 -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 1rNjcv-0001np-Eb for emacs-orgmode@gnu.org; Wed, 10 Jan 2024 20:12:57 -0500 Received: from mail-lf1-x136.google.com ([2a00:1450:4864:20::136]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rNjct-0000O6-Gq for emacs-orgmode@gnu.org; Wed, 10 Jan 2024 20:12:57 -0500 Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-50e7e6239e1so1214398e87.0 for ; Wed, 10 Jan 2024 17:12:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704935573; x=1705540373; darn=gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=emGkSb8/PSxliFpwEX7J7GCQM9IDvo2ag/uJob4uMew=; b=Vatcj4xFRI9cMmG8MlMN6c7rQhDi1b+BEtjpI5uS8tvrob+ZGbu0dBV19k09WRO1YV c1rJziZoWISstBeShn0NNiGsbmBMjcVmYujXoj4Xfy5oqhlHScfjD2Ovds7bxkWq7NNI c2ECTBei2ToCKDqMrEowUNdfn+eA9g7I/qJjMM8WrcE9qcLFJtgRatEJdt/vGzJAb2d/ 7KD7jaf6gO/QztCMSoIy6+CrKJsG6d+hebHh/BPcSMw+SQm9L9vS2VKqaVham3vyYNcp KilpVGBwyAsHZnAn4XdnkKswZ7I6m63abti9qrYx6sbdXEM5NPLF/E1GZ0ukykVikps7 Nowg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704935573; x=1705540373; h=content-transfer-encoding:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=emGkSb8/PSxliFpwEX7J7GCQM9IDvo2ag/uJob4uMew=; b=aoq6GVNHqvMHBUUnuxdaW6Q+BSd0grhYcEl2k8q+AjE3IVth3IiZhbwCH/d3rYp3lI wu/olnHOMezCEnuBmrwG31cN8cfay4Kz4Mf8d2kbB39XQOdzoDzBlTrP1picx4fXUkgX K+GvL5qy8wNEC2jyfBCfvIhv6AlAVKRLw/R/kxR2ZDAruBz8iv/rbVXnHh75lEzQk5Xe pBrk1pqBWZB9N0UMNqnpMKRVHBkLcGWLDs/u5F+IjAz4lcxMsDukdrW8piSherqQlpb9 qwvSg9yvwC3Bbt6ClPv5X/b0dg0aVbAYKBiKFFFicEVbosjgQdCqQC8VhwMDhbAA/Yel KDvQ== X-Gm-Message-State: AOJu0YxucYb/sa+SC3sP1R3H0PqRCm8jr6oaRnzq6bSxbtXNlJx87o3e y8FdmuApJGdC3h3i7lj7mHuUTDpPKKmglNTnx6Y= X-Google-Smtp-Source: AGHT+IGX4KF5gDRBokmxX1veZBmsgfb1XegQ//Wp5ltjDYzGJA1P0y2AP+fTacfzMTFPjLV0V7xrjBuvHxLdXsrDkoY= X-Received: by 2002:a05:6512:3e11:b0:50e:b380:61a8 with SMTP id i17-20020a0565123e1100b0050eb38061a8mr352267lfv.4.1704935572999; Wed, 10 Jan 2024 17:12:52 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a9a:55c1:0:b0:281:1d47:8d03 with HTTP; Wed, 10 Jan 2024 17:12:51 -0800 (PST) In-Reply-To: References: <874jflqsdl.fsf@localhost> <87le8xkx0q.fsf@localhost> From: Samuel Wales Date: Wed, 10 Jan 2024 18:12:51 -0700 Message-ID: Subject: Re: org-(un)fill-buffer To: Psionic K Cc: Ihor Radchenko , emacs-orgmode@gnu.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::136; envelope-from=samologist@gmail.com; helo=mail-lf1-x136.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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-Spam-Score: -9.62 X-Spam-Score: -9.62 X-Migadu-Queue-Id: C61BD38913 X-Migadu-Scanner: mx11.migadu.com X-TUID: DMOrH/jJFjci i lost track of all the visual fill stuff vs. emacs native filling vs. org filling vs. filladapt back before visual filling was able to fill with both a fill column and a reasonably smart fill prefix reliably. is that possible now? also, if a new command is to be introduced, presumably it would work on subtrees, paragraphs, lists, and regions, so that you could have it not apply to informal non-org lists or code that is not in a source block etc. met with alex today yesterday he wasn't available even thuogh he said he would be On 1/10/24, Psionic K wrote: > If I run fill-region on a buffer, there's a lot of errors where the > lack of element awareness means filling is attempted on text that does > not fill properly, such as property drawers, keywords, and even > src-blocks without newline separations. The result requires way too > much cleanup. > > It is critical to be able to unfill documents for people to migrate > off of hard newlines and onto visual line mode with variable pitched > fonts. > > I could probably convert this to a region-based command and we could > shadow fill-region. It might be slightly tricky to deal with the > region if it overlaps elements, but if I had to do it now, I would > make the inclusion of part of an element include all of that element. > > On Thu, Jan 11, 2024 at 12:47=E2=80=AFAM Ihor Radchenko > wrote: >> >> Psionic K writes: >> >> >> You may instead just run >> >> (let ((fill-column most-positive-fixnum)) (fill-region (point-min) >> >> (point-max))) >> > No. That will have to be run manually on every element and every line >> > of every list. I suppose let's just not talk about it further and >> > I'll submit a patch so there's no confusion. >> >> May you please elaborate what is wrong with `fill-region'? >> >> > This is the org-fill-buffer command, done generically for people who >> > want >> > to fill or unfill the entire buffer, as is required when alternating >> > between hard newline filling and visual line mode filling. >> > ... >> > * lisp/org.el: (org-fill-buffer) this command walks the tree and will >> > call fill-paragraph on every paragraph or plain-list element, enabling >> > the user to quickly cycle between hard newlines or visual-line-mode. >> > They can also adjust the fill, such as after removing indentation. >> >> I'd rather make use of the existing Emacs toggles that control filling, >> so that `fill-region' works as expected. >> >> -- >> Ihor Radchenko // yantar92, >> Org mode contributor, >> Learn more about Org mode at . >> Support Org development at , >> or support my work at > > > > -- > > =EB=82=A8=EB=B0=B1=ED=98=B8 > =EB=8C=80=ED=91=9C =EA=B2=B8 =EA=B3=B5=EB=8F=99 =EC=B0=BD=EC=97=85=EC=9E= =90 > =ED=8F=AC=EC=A7=80=ED=8A=B8=EB=A1=A0 > > --=20 The Kafka Pandemic A blog about science, health, human rights, and misopathy: https://thekafkapandemic.blogspot.com