From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:5f26::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id wEbdAk9mnmXHFgAAkFu2QA (envelope-from ) for ; Wed, 10 Jan 2024 10:41:35 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id 4J+aOk5mnmVhWwEAqHPOHw (envelope-from ) for ; Wed, 10 Jan 2024 10:41:35 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=positron.solutions header.s=google header.b=W8fcEi+d; 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=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1704879694; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=BsxRZz/wSNBUxXM1zmiAjGcmVjqRQ1R+TlYGiiYxH+U=; b=AWCeW2OdTDXEIM8HGKGMoB/9zzapzwOm6LAoDtUKClceZY6xaM1BtDC1lbm9QnvqgHQUfX p8mPPeOsVm/EKGGLQv0hmXE0tn8dtC0oy4bjJGuDN1e/7pnTRWjxMrsUR5kCzm0xZ2BXfx ZJeUvNlEv+2bA+216aA25mlKmWqGwkBvpZHQ9tK0der80cteKzgdg4itNH0NVEcMZR2dTF Vc7R32hxuNOCBHnMZ1LBwoseXTOvLQKOjPb+8X8WuHnir3LBkOR5KKwY/H5qq7AUgQYkKL 0knuk/ePJ5FpDp9ZGP40f7dGr19VoNmVb6sA/CtCr2VUpk4M4hoQi1gnrzupjg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1704879694; a=rsa-sha256; cv=none; b=qOYSS/Hw35ETMHqdqSmQweaV0BgWEzdOdvqZP/AZtTOCLYpjgo2ziqJJfT0A1czosk3wc+ j9WRXT6qBrKvDozj5P9FtwSu9Cy2v6cXqBBqpCxZ7qktrFBpYxPoqp2Yg2aSdk/ZNoK2Cl WYlJyuE04DyJIeJnOuIRbSQsb8NrxAglw6Pbj/XyRigulUOTxfutP0aOsw0aKo6d95upPT 6ueIC/TUx3RRVWWykuu65PS/L5346CBpHJoT0NEVDHdcRL1YpMjz1lX5vr1v9dNhKKkOE0 M7MpoVrPsjAzyDAQzmsU4d94pjoVpUUKUJ3atSeLyQulkEaSqR5WPJlMOmzouA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=positron.solutions header.s=google header.b=W8fcEi+d; 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=none 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 DE3D826CCF for ; Wed, 10 Jan 2024 10:41:34 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rNV4b-0003Yy-UW; Wed, 10 Jan 2024 04:40:34 -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 1rNV4a-0003Yj-0y for emacs-orgmode@gnu.org; Wed, 10 Jan 2024 04:40:32 -0500 Received: from mail-yw1-x112a.google.com ([2607:f8b0:4864:20::112a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rNV4W-0004Y4-Lu for emacs-orgmode@gnu.org; Wed, 10 Jan 2024 04:40:30 -0500 Received: by mail-yw1-x112a.google.com with SMTP id 00721157ae682-5f8cf76ef5bso27474907b3.0 for ; Wed, 10 Jan 2024 01:40:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=positron.solutions; s=google; t=1704879626; x=1705484426; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=BsxRZz/wSNBUxXM1zmiAjGcmVjqRQ1R+TlYGiiYxH+U=; b=W8fcEi+dFN0P5Yo6SwAVo30x/bO3Nmo7ybDgonZvYrLATzNG7C1C737yRdmW7S69no 93iasLIN1MnnHesFCbwhe0M10KoRviI3kzWtlSb5Vc725RKfGcwB8mIw6aCG9LFNUHgB GSxnsO55YuyNjANaMw1YHx2/vgRlS/RJkYvJFBifkihTzP+okTIkAizlAMiIpv8dV+p3 979+UvltICaN+YI4e47bLL5WhRRTPUpHHQNlrHjtNcJVWBeH9Vn07IfWH9T2un0Ti5FK bEzKFICz+TZS/DnKkG2iYHOIxeyOD9sqLTERC6qdqk8Ke7g+tkOajUIm9rmYWyj5togW VoHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704879626; x=1705484426; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=BsxRZz/wSNBUxXM1zmiAjGcmVjqRQ1R+TlYGiiYxH+U=; b=ffmdAL77klbZKOB4TIWRF+z3qJKfKKgEypBOcCiwuIC9rghQ8oVLzouMmqckJC8dko oIga4z0KlSzPiK3czmfKtALOj2vrm/59Rtma6oRRtcjaiV8N8LP911a73QHR6QmL7AJw tcXgYlP5yjyI3pnsqAng68dC/2M6CuvzCw1bJxxt2dYLBsmnvkDE519fGRninGr344K7 UFZZX1iqBzsXGsmq+ml5hGbfA1n6OFYMioFm2WSj5Utmsv6YtSXH5GHf+CQu6INDPLav 1vTlW8mSJ6l384H+IIZXn5IBe0SlwhZtIroay8f11M+tsFib0iC2K1ltHNUCoU2bFlYK btWw== X-Gm-Message-State: AOJu0Yz1kPSQpaalsaVWkRQB8MUNhB4D2Z18APVqNwO+jkQeviZAG/Zo wUH0qfxmQAkoXNSXiG6jg8HL8nsaSaxpDlWOFNeRSTjjbcd3cxlUjWyg/4t0u9U= X-Google-Smtp-Source: AGHT+IGXShiLOF6sPSVokElzr7D9nrIHYyq/Ij67nxWnTV+rEC1so53ytPHpTLpeHgfX6eEtXXMI7iZlGMNyGHoidVE= X-Received: by 2002:a81:9383:0:b0:5d7:1941:3562 with SMTP id k125-20020a819383000000b005d719413562mr1103970ywg.73.1704879626586; Wed, 10 Jan 2024 01:40:26 -0800 (PST) MIME-Version: 1.0 From: Psionic K Date: Wed, 10 Jan 2024 18:40:15 +0900 Message-ID: Subject: org-(un)fill-buffer To: emacs-orgmode@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::112a; envelope-from=exec@positron.solutions; helo=mail-yw1-x112a.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, 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: -4.07 X-Spam-Score: -4.07 X-Migadu-Queue-Id: DE3D826CCF X-Migadu-Scanner: mx12.migadu.com X-TUID: wxvWG1NRDDGt 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 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. I'm going to use the combination of `org-unindent-buffer` and `org-fill-buffer` in my own personal org shortcuts, but such a command is probably too much based on my personal taste. I think I will be recommending this combination to users in an upcoming video: 1. visual-fill-column 2. visual-line-mode 3. adaptive-wrap 4. configuring an org mode hook for "unfill" behavior 5. combining unindent with (un)fill in order to clean up old cruddy hard-indented, hard-newline documents