From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id ZCAdMgTPLGAvXAAA0tVLHw (envelope-from ) for ; Wed, 17 Feb 2021 08:08:36 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id GJZ5LQTPLGAEAwAAbx9fmQ (envelope-from ) for ; Wed, 17 Feb 2021 08:08:36 +0000 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 0B4511F99C for ; Wed, 17 Feb 2021 09:08:36 +0100 (CET) Received: from localhost ([::1]:40148 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lCHsu-0000xt-Po for larch@yhetil.org; Wed, 17 Feb 2021 03:08:32 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:47158) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lCHsH-0000xl-1L for emacs-orgmode@gnu.org; Wed, 17 Feb 2021 03:07:53 -0500 Received: from mail-pj1-x102f.google.com ([2607:f8b0:4864:20::102f]:39326) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lCHsF-0002JE-7U for emacs-orgmode@gnu.org; Wed, 17 Feb 2021 03:07:52 -0500 Received: by mail-pj1-x102f.google.com with SMTP id d2so1155708pjs.4 for ; Wed, 17 Feb 2021 00:07:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:subject:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=J5cTZZkuExB7BE62jJgt3qJ+scKG9rfnqAoIbYgGI6A=; b=FULJSIWX449Qth4TFNv10mDaxvsAMezbPhHPYkSL302gX10UlhZSUKFtlg1qrqc13s f66mg/K/Q9gDVswfH+OCLc1d7Jbbk/FTdHBDLdAofnGj9yTRZnwSGTZmNmqf4bFNt0l7 82pkUV6eXCXF8Mn+xGJ255c6eKCVc1EXdK7w2+thmfM/oXNeU+tb867yuZyXblBwTeY1 y/wShhj1e9szaa5b6dBav042gMTK/Go00xaouKDa7bttQtM8vOeiUrgkkEEv1nC72bO/ NT3MOK+HWQfMtsGQPVCC2QEMTI3ujavvoG/8R9+/MeIjerKqgoS6GM9fbisSHze0Egro veyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:subject:date :in-reply-to:message-id:mime-version:content-transfer-encoding; bh=J5cTZZkuExB7BE62jJgt3qJ+scKG9rfnqAoIbYgGI6A=; b=M1cFY3tR3FpsYJwM23kj/cN8CWItHBcISg7ZuKULcWURcEV8yv4ed3g7r/PKtt0hET 0GleLPQLelPNNNGC9zgCLYQLejgK/moD6nypVTLRZLHrw3FT9VWM0I/GsMxSsrovzBJP VXgfbCv2rfTFYcMiMf2/b/eHw4Byh/XrP40a4vxG3xsE5XuMtDiDIb2wIhQ60sJTy1jO 8A1G+zXS1RHYA9ICV3RGg6gXWGG5OH8dij7Rc4WWJZ7aq9ww8LNLbk2p4Wd9ooYmhTzY H/nvSexbG379eNkUpi9XcDnAizQGjzs5e2DVIqjXIsw0B2cNwL41VxztIc0rFklSPuvp MdxQ== X-Gm-Message-State: AOAM533vDIZH2MmMjJMtEjtOgFDnpUFtrc2yPLELsbtCbESLCrrShdxG fweHzwntJR8HK+8SbYxoEfnhpt2sGEQ= X-Google-Smtp-Source: ABdhPJyLvuwC4FkrDU6t5D2thC/EuPf3Qs3ZpRY0cNHawPydkantUN3MdP3+rDf5FHNeQnfDpdH6UQ== X-Received: by 2002:a17:90a:a585:: with SMTP id b5mr8081524pjq.110.1613549269531; Wed, 17 Feb 2021 00:07:49 -0800 (PST) Received: from tim-desktop (106-69-135-243.dyn.iinet.net.au. [106.69.135.243]) by smtp.gmail.com with ESMTPSA id k11sm1227687pfc.22.2021.02.17.00.07.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Feb 2021 00:07:48 -0800 (PST) References: <87a6skcpw5.fsf@mweb.co.za> <87y2g320cr.fsf@gmail.com> <87mtw3tiwz.fsf@kyleam.com> User-agent: mu4e 1.5.8; emacs 27.1.91 From: Tim Cross To: emacs-orgmode@gnu.org Subject: Re: Turning off all indentation in 9.4.4 Date: Wed, 17 Feb 2021 18:56:37 +1100 In-reply-to: <87mtw3tiwz.fsf@kyleam.com> Message-ID: <874kibp166.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::102f; envelope-from=theophilusx@gmail.com; helo=mail-pj1-x102f.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 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 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-Spam-Score: -3.06 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=FULJSIWX; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 0B4511F99C X-Spam-Score: -3.06 X-Migadu-Scanner: scn1.migadu.com X-TUID: ZeNqojAM29In Kyle Meyer writes: > TRS-80 writes: > >> On 2021-02-04 12:45, K=C3=A9vin Le Gouguec wrote: > [...] >>> ORG-NEWS provides these hints: >>> >>>> To get the previous behaviour back, disable ~electric-indent-mode~ >>>> explicitly: >>>> >>>> #+begin_src emacs-lisp >>>> (add-hook 'org-mode-hook (lambda () (electric-indent-local-mode -1))) >>>> #+end_src >>>> >>>> Alternatively, if you wish to keep =3DRET=3D as the "smart-return" key, >>>> but dislike Org's default indentation of sections, you may prefer to >>>> customize ~org-adapt-indentation~ to either =3Dnil=3D or =3D'headline-= data=3D. > [...] >> Unfortunately, unless I am doing something wrong, none of these options >> seem to really restore the previous behavior. I have set >> ~org-adapt-indentation~ to ~'headline-data~, and now pressing RET goes >> to column 0. However, unfortunately, TAB now no longer jumps to the >> indentation level of the previous block (for example, so I can insert a >> code block or other block structure into a plain list at the correct >> level). > > I think you're talking about the following behavior. > > * a > foo > > With org-adapt-indentation at nil (or the new headline-data value), foo > doesn't get indented. This behavior is not new to 9.4. If you try with > 9.3.8 and org-adapt-indentation is set to nil, it also will not indent. > Step through org--get-expected-indentation to see how the different > values of org-adapt-indentation are handled. > > So, if I'm reading your preferences correctly, it sounds like you want > just the first suggestion in the above snippet, leaving > org-adapt-indentation at its default value: > > (add-hook 'org-mode-hook (lambda () (electric-indent-local-mode -1))) I think it might be slightly more complicated. For me, here is what I would like 1. Draws and planning data indented according to the headline level (i.e. headline-data) 2. No indentation on 'normal' lines UNLESS I indent the first line of the paragraph/block. Then, once I do indent that first line, after hitting return, I can hit tab and it will indent to the same level as the proceeding line. I thought this was the behaviour I use to have before org was updated to comply with electric-indent mode. I could be wrong. Currently, if I have org-adaptive-indent set to 'heading-data, if I manually indent a line, I cannot indent subsequent lines to the same level. Tab does nothing and I have to hit spaces. I need to go back through the possible combinations to make sure I didn't miss something. However, it seems I can have drawers/planning lines indented to the headline level with org-adaptive-indent set to heading-data, but then cannot indent individual paragraphs/blocks inside the heading with tab or I set org-adaptive-indent to nil and manually indent the draw/planning lines and then can manage content indentation as I use to. None of this is critical as it is really just aesthetics (i.e. does not affect exports), but it did seem to be more DWIM before than it is now. -- Tim Cross