From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id yL0CIp2oYmD1pQAAgWs5BA (envelope-from ) for ; Tue, 30 Mar 2021 06:27:09 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id oGHxG52oYmAxNAAAB5/wlQ (envelope-from ) for ; Tue, 30 Mar 2021 04:27:09 +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 E73EF12CDB for ; Tue, 30 Mar 2021 06:27:08 +0200 (CEST) Received: from localhost ([::1]:38794 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lR5y6-00009S-VE for larch@yhetil.org; Tue, 30 Mar 2021 00:27:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57798) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lR5xj-00008y-JD for emacs-orgmode@gnu.org; Tue, 30 Mar 2021 00:26:43 -0400 Received: from mail-pg1-x52b.google.com ([2607:f8b0:4864:20::52b]:36608) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lR5xc-0002z3-6z for emacs-orgmode@gnu.org; Tue, 30 Mar 2021 00:26:43 -0400 Received: by mail-pg1-x52b.google.com with SMTP id h25so10822857pgm.3 for ; Mon, 29 Mar 2021 21:26:35 -0700 (PDT) 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; bh=dmj1i8VYtgk3FFd/G4mYTlKftZbRNfB6QRjqy8LmwxU=; b=bAF97g6hUnYyRL/1sftpg3sFkFnHMy6/qhw5Jf/uFWlEZSOc9GrM2BPw0Rv1/TUFmE piLyQQ8SN3/8IlkytA1UsPVQAx2FWxXshiV42lHByarjeSlMEzhnoGRJqbV5Wi8hlIM4 hs4SDSB+kyc0MvB/mlolYjjh3hYKDgnc8oHFIkm7c1xNPZi7cvUit0aUTOc2KBvpAHTX Ejt7oPd3IcMyeoQ4BuaRfAL6Hspel9r16vnOT6K7Sb9E0XNV8M1mgPDhs5JLxVzo7Ga5 E8xbIwTnhpleP+bjSGsGIhcDuspKRWW0Q9+/NPRqkuQap9YwXeKZSjVcca0Yj9gaGFIR WaNQ== 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; bh=dmj1i8VYtgk3FFd/G4mYTlKftZbRNfB6QRjqy8LmwxU=; b=TWrdRDCZt92XPfvFhEZt+fo/Ch26BR7NBjxKlJzYMY2XHWVX2IM1lDLc0XKNFvJGyQ FHL2DBoVI0zpNjh+r5S/jxUHQCH7avWTzqO3DVr7LwS/LKR9LhbHDMhXUtFFH78gysz6 c/NIAbjhdCtGil2YSxziIRdMOOodU5o9/NTSHzg1a9WZUenV08h+WfOMfPJYl9J5gb2A 0W9oa5XMgafj3qxyp6s7ToZqNs8VeWxW4Qb0iVHmZKenw6h9szcRFwocw7UiIQG8kBh6 qwlZaMjamz7mLghqbKa4caFgyeFQfPNjmJP0gSHhT/uuLvMk5AKH6DvvjNFSQnzMekAl 2qGA== X-Gm-Message-State: AOAM532GqVzM5escQXrJDL9jBjFcvSXzIfOt9Qwq6l+vQ+RFO3xLTJ88 uC1Ne4oI2coHsC1ggUKO/G7MPba6lrc= X-Google-Smtp-Source: ABdhPJwq4PlTRsujxpmC99QHRZrSxA98tyEeJxKPjlX7px9bSr4ClI8B94Q2WTcHk93S0SSpvRrheg== X-Received: by 2002:a63:390:: with SMTP id 138mr27219117pgd.8.1617078394476; Mon, 29 Mar 2021 21:26:34 -0700 (PDT) Received: from tim-desktop (106-69-141-46.dyn.iinet.net.au. [106.69.141.46]) by smtp.gmail.com with ESMTPSA id w1sm17701886pgs.15.2021.03.29.21.26.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Mar 2021 21:26:34 -0700 (PDT) References: <21418.1616441853@alto> <87tuot2tv7.fsf@kyleam.com> User-agent: mu4e 1.5.11; emacs 27.2.50 From: Tim Cross To: emacs-orgmode@gnu.org Subject: Re: org-adapt-indentation not honored prior to Org 9.4? Date: Tue, 30 Mar 2021 15:21:55 +1100 In-reply-to: <87tuot2tv7.fsf@kyleam.com> Message-ID: <87pmzhi7wp.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::52b; envelope-from=theophilusx@gmail.com; helo=mail-pg1-x52b.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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1617078429; 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=dmj1i8VYtgk3FFd/G4mYTlKftZbRNfB6QRjqy8LmwxU=; b=F//YWuS1wM1hf1qm+n+ycwgh6p5gNU4qkpRPFUyqBZ83G+P2m7hAnTy7MEIdMnZLlTyknY TnQGtIMWZFLqglt2xMArdr90sC4m++lwY4RawDwOQtTb2ov7gw8p3g+3QOEbhkt7yB7SvP X+PMp43wAgvkbc3DoLdMt/JlrQ5HSSwFLqEfJS93qyXfsLZSvaZ5AK0hlmg6MW8qRkWAmb OsJgKh75R7kPM1O/uDvgngVhzqhOg90lGpKPwV9RXH9LWflNUCCIBhSdSEXjjeiN1tvZxA xj4q4CoXb/21Ir8uYtpzFDKX4p58pZ1gv6CKXLQDts+Bq0vfLWX4oLrS/djwzg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1617078429; a=rsa-sha256; cv=none; b=rkSoENJqQzG+IJPmWMZKnAD6Uf0+VZhOptR+JWaCHATF1A8k3e7SQkBueXcWgUzo5Kglq/ nm5E+xB5bOtAGYr5k0L2P7UGc7vqDxxGZdVdNykpkYEXyFOToZ3kT1ER3pedI9dsWKy7a1 qiXIeaICVqFw+W5lDJpERWlaNz8ubgP5uGF6eoLtTY+SD5dAK5OeOhnkjYW7oSUo7foBi/ FrwU4JAKiMkar1/hCYc8Yml7WqnkSMO9+AKZPzdJAlcflt9R/a6XHRLIUKBEBfOCeCcFBy Dx9qQVDdUS/ppNGVhctqsxLJTNXMuCak/G3AFVVmYVFE99nBYMbTji++p8yJPg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=bAF97g6h; 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-Spam-Score: -0.62 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=bAF97g6h; 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: E73EF12CDB X-Spam-Score: -0.62 X-Migadu-Scanner: scn0.migadu.com X-TUID: YY24gpOk9o/+ Kyle Meyer writes: > Mike Kupfer writes: > >> Over the weekend I upgraded my Emacs from 27.1 (Org 9.3) to 27.2-rc2 >> (Org 9.4). I noticed that Org mode behaves differently, even with >> "emacs -Q". >> >> In 27.1, if I visit foo.org and type "* header RET", point is put in the >> first column. In 27.2, point is put in column 3. >> >> AFAIK, I'm not using electric-indent-mode; at least it's not shown in >> the minor mode list in the modeline. > > electric-indent-mode has been enabled by default since Emacs 24. If you > run `C-h v electric-indent-mode` under emacs -Q, you should see that its > value is t. > >> org-adapt-indentation is t in both Emacs 27.1 and Emacs 27.2. Was there >> a bug fix that went into Org 9.4 such that org-adapt-indentation is now >> honored? > > Not that I'm aware of. However, Org was changed to respect the > electric-indent-mode value: d3e6b5800 (Make RET and C-j obey > `electric-indent-mode', 2020-05-05) > > https://orgmode.org/list/877dxpazbo.fsf_-_@gmail.com/T/#u > >> Could the change in behavior be documented in the ORG-NEWS >> file in Emacs? > > Here's what ORG-NEWS says under the 9.4 release: > > *** =RET= and =C-j= now obey ~electric-indent-mode~ > > Since Emacs 24.4, ~electric-indent-mode~ is enabled by default. In > most major modes, this causes =RET= to reindent the current line and > indent the new line, and =C-j= to insert a newline without indenting. > > Org mode now obeys this minor mode: when ~electric-indent-mode~ is > enabled, and point is neither in a table nor on a timestamp or a link: > > - =RET= (bound to ~org-return~) reindents the current line and indents > the new line; > - =C-j= (bound to the new command ~org-return-and-maybe-indent~) > merely inserts a newline. > > 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 =RET= as the "smart-return" key, > but dislike Org's default indentation of sections, you may prefer to > customize ~org-adapt-indentation~ to either =nil= or ='headline-data=. Hi Kyle, one thing I think might help (maybe too late) would be to put the entries for both electric-indent-mode and org-adapt-indentation so that they are together in the release notes as they do interact with each other and often people stop looking once they see one and not the other (they are currently a fair 'distance' apart in the file). I suspect we will see a few of these as the changes an interaction between those two things are not terribly intuitive. -- Tim Cross