From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id iA0AFTFx32HwHAAAgWs5BA (envelope-from ) for ; Thu, 13 Jan 2022 01:24:17 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 0NTaETFx32G39wAAauVa8A (envelope-from ) for ; Thu, 13 Jan 2022 01:24:17 +0100 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 EEEC628506 for ; Thu, 13 Jan 2022 01:24:16 +0100 (CET) Received: from localhost ([::1]:47236 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n7nua-0004hV-6Q for larch@yhetil.org; Wed, 12 Jan 2022 19:24:16 -0500 Received: from eggs.gnu.org ([209.51.188.92]:59048) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n7ntZ-0004fX-BW for emacs-orgmode@gnu.org; Wed, 12 Jan 2022 19:23:13 -0500 Received: from [2a00:1450:4864:20::135] (port=35518 helo=mail-lf1-x135.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n7ntW-0004MT-JG for emacs-orgmode@gnu.org; Wed, 12 Jan 2022 19:23:11 -0500 Received: by mail-lf1-x135.google.com with SMTP id g11so13949867lfu.2 for ; Wed, 12 Jan 2022 16:23:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=lIpXR8oTa9ZXcIYiziGMsHKcgi2BiZIW2U3w/HZai9s=; b=qDSAJg39CQVqif/0vEfC4KWkMQVxAU+SNXQZovSBHOlXSFqZEteAGIm+7kS3RdN/qF iQokUtF0ay4lY+2/peqEQx9KtRczXl5LyHCTeInMcsaoLzPianW4TKm0W8qNuxklaUWa 98vgGubgaZCkONmsmFeH2Qog1AD/yGlKoGUdjpEWBhoC2HyCZ3PHpYjIaffEoJlttA8i mY+Ik4R13cZO13dJOazEfc7I2zuEPz7acao4m35086Be8KpMRilJgqneJ5iIkoK+LX3U mk8md2CrC987KXQ73n0T1hiD7g7iUDU4gfrvbm+2AbzSbnHkEv0dfWUb0NOBRdShuBvN Pbeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=lIpXR8oTa9ZXcIYiziGMsHKcgi2BiZIW2U3w/HZai9s=; b=pP5MS71NGBBn4MwuhuqUQT5Xj2tUw51XQmdh2emlDJyz1MfbzMvGwGa3cj6roWvncb cRV0v+BjyHOfbWkHNrJqhd6gkRvU2NWTco+9ksVxTxM2asNmdUWb7vg6JN0uZw0+wl6J UqFZZXtl/i7ieO8PNpKImjpPfFVXo8h0cSvYHmyiEfJIKiTMhbq9Di8xIxEEFGzHA0MJ b+kzZ4XZeOjWbl7ye/TDzyqI5o9hiwgE3RwG6+2L9FlI3KUCGmhcaG+8l+6/SUD5+eb7 kQnMqAGpC+dgpblNRa36Jk6FNzy+cjpcs4C/2d5pSDVO9+zNj7O8vOL8Eso5kvyi2zMP OscQ== X-Gm-Message-State: AOAM530vKcEP35CX9VYILeBLDWSoiYgDbH3lPHYdYiUeLTYcf1B9r771 Xg41R2l1I5+i2A0cY3EJJP++W2eXaZglvDmpSk8hDWyJuHmiEw== X-Google-Smtp-Source: ABdhPJxlBOD6HvrwZ123Iv5zUq10W59uxqPVFU2BlH5+IQrh2wkGjekAol949lgMO/d3/xzc2HajxIPEcnQfPjF0U80= X-Received: by 2002:ac2:47f8:: with SMTP id b24mr1573380lfp.49.1642033388333; Wed, 12 Jan 2022 16:23:08 -0800 (PST) MIME-Version: 1.0 Received: by 2002:ab3:67e4:0:0:0:0:0 with HTTP; Wed, 12 Jan 2022 16:23:07 -0800 (PST) In-Reply-To: <878rvl9csg.fsf@gmail.com> References: <878rvl9csg.fsf@gmail.com> From: Samuel Wales Date: Wed, 12 Jan 2022 17:23:07 -0700 Message-ID: Subject: Re: Converting document from hard whitespace indentation to org-indent-mode To: emacs-orgmode@gnu.org Content-Type: text/plain; charset="UTF-8" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::135 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::135; envelope-from=samologist@gmail.com; helo=mail-lf1-x135.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1642033457; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=lIpXR8oTa9ZXcIYiziGMsHKcgi2BiZIW2U3w/HZai9s=; b=lmr21Z6zQFO1M9tALZaSSHhp/o+v4Ey6cwsubT5cwjQs689Xv+dB7J4rvX4/WRXmo1AMJZ i+dhNbPZZw3LQdm9tT0oIog4wfmG7J8o9zoBKeMjDoK/AR3O2rL91PgLPHlKKcBn2YvnnM 5NK73dn3UhvGl0gRc/jxseEMVk3immgZEgwBNncRb81WxhNqXphtTeq7ias1vlmVnBGmdG wyimb2O1YNFX4CSz0SJSvmfTBbaGKkPcbEqxcFNi71tMmOLP6Ua4WJxO6bjayBWEdkNYT4 Wns83Xr+n9SKlQiZfEqZ79TeWSxLb91mTLGz3ihuGjlc3OjcEgi1601ycjqRJA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1642033457; a=rsa-sha256; cv=none; b=oNp6qJIoUTjO+mvR+aWyPHbU+Gh1OxYIX9MpRXtecp0x8+e8OgrZLFrdxCQpKfCh/YpTVf BlqYchvLorWkXxNaNGWnxaD2z01fKCs+xNihf/OZVPAtnu7XArbtcjTQZLih7uvXmRbFjn 6zBtziSEQOZDaRY1HxUtzWWDszGKtB4PSR+yb/63tdSuYlWI/BAkcED7VNhC3tksaoycir pUR1bpdhnHPhgLUiaaeN0r9e49S8o0DoUJHcRZRU4XhNrwpVxUQaOOm7dyFQqM996Tq0XV 4XU01AbJbiAlwcDqlbP0HgYtvNnnZH1R1HhxIdl7Ok5YWaLNB/LEirKWcUf/wQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=qDSAJg39; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Spam-Score: -4.32 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=qDSAJg39; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Queue-Id: EEEC628506 X-Spam-Score: -4.32 X-Migadu-Scanner: scn0.migadu.com X-TUID: 99xwcRJ4gpPA i think that default has changed to your preference in recent versions [according to ml discussions]. which, i agree with. On 1/12/22, Max Brieiev wrote: > > Several of my documents use indentation to line up with the headings, > like below: > > * Top level headline > paragraph > + list item lorem ipsum > dolor sit amet > ** Second level > some text > *** Third level > more text > > I would like to strip leading whitespace, so that I could switch to > =org-indent-mode= to have a nice view of the document instead of using > hard whitespace indentation. > > Basically I want to: > - strip leading whitespace, > - but preserve the indentation of lists and src blocks > - refill all paragraphs according to what =org-fill-paragragh= would do. > > How would I do it programmatically? My current Elisp knowledge is poor. > > Thanks in advance. > > -- The Kafka Pandemic A blog about science, health, human rights, and misopathy: https://thekafkapandemic.blogspot.com