From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id cHxoIX+dYmB7lQAAgWs5BA (envelope-from ) for ; Tue, 30 Mar 2021 05:39:43 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id oLxWGn+dYmBgDwAAB5/wlQ (envelope-from ) for ; Tue, 30 Mar 2021 03:39:43 +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 50F0911304 for ; Tue, 30 Mar 2021 05:39:42 +0200 (CEST) Received: from localhost ([::1]:57810 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lR5ED-00023J-3Y for larch@yhetil.org; Mon, 29 Mar 2021 23:39:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47470) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lR5DZ-00021q-Vy for emacs-orgmode@gnu.org; Mon, 29 Mar 2021 23:39:02 -0400 Received: from out0.migadu.com ([2001:41d0:2:267::]:57812) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lR5DW-0006dC-GS for emacs-orgmode@gnu.org; Mon, 29 Mar 2021 23:39:01 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kyleam.com; s=key1; t=1617075534; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=9Lxh4dxLS4an6SjWIZx3YljfiJ9g9WjG86CXEAxLJrM=; b=NGysrlbcHt4bMmwvmJoowtjOGXfNqZOzNdE5ibkpLFsKPHtJFELISuauEKIlohFotGjiCU Lg9zBFfUxjtx82s7oCp/APhrH/mtdEsvvpZ9kG/siJsUClu4TeKNFkCnsGoFi2zyO8mfrC 0AppcGLfa12KQZVK05eZrxcLIvCWHWKpcYgZCO13nqczySuKFgDOY8fJ4xRRuH+f7TcNm9 jOQ31VZK9oKvhfjuqkVXotXAW+pFpu89nPd4+m+EDu9xZOuoPeY/bvj8HoWbjrzA5Zb4zk 04UYzaFWyKosRY/Hiz3tmn4DkELmwhHLCngEJDFycqq3U/qCqh9lN6DrVYIaHw== From: Kyle Meyer To: Mike Kupfer Subject: Re: org-adapt-indentation not honored prior to Org 9.4? In-Reply-To: <21418.1616441853@alto> References: <21418.1616441853@alto> Date: Mon, 29 Mar 2021 23:38:52 -0400 Message-ID: <87tuot2tv7.fsf@kyleam.com> MIME-Version: 1.0 Content-Type: text/plain X-Migadu-Auth-User: kyle@kyleam.com Received-SPF: pass client-ip=2001:41d0:2:267::; envelope-from=kyle@kyleam.com; helo=out0.migadu.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, 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: , Cc: emacs-orgmode@gnu.org 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=1617075583; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=9Lxh4dxLS4an6SjWIZx3YljfiJ9g9WjG86CXEAxLJrM=; b=HHy8F3SJSO6mvxOTN1ova3r+HNavP/4e13Qkyo+vEZ+mZs+6RXv/7H6YfqzGo+9yMEk38a od82UEPk0qLjfMpcALpvZ9Ou2YzphAEAyOUNkdkJd1kG77mjkKk2zqgDE1Y/TfcTppvLCn htc0ogfQ8+MhYAE86AMf/rW2oEcZY6C+NqnSvHb5uUB5W7Tri/cYBVFJemGgiTQGJEdGvf gr4RENA/gvGGv5n5lzt5A5qBnXdd/VT9KTU3XKItHnsoQb2Q9VxIeREAImfmRxpFrxPiBY pxp/4vFXlOBffE/LAhj97Nm83VE840XsZgmQFXctC6/1U2LxYQAXTdXYftWyGQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1617075583; a=rsa-sha256; cv=none; b=XAPTeb5SGOK+g+/ov6VCSH8B3SLNdqmZf6Db3Q+CZZ+3ndk0HuEdHGDai1YacOPSO6M+rG +iwBl9mCHWL3iIa86nmxIEN/fVBxvid2gUt61jG6BCw92UaRDsr+OeRMNzhZRs5vggMPKz 1pfsBiGXNEuryj1rSm5cz1ADnF+O50+8X7JdI09SDMfxtCEgP3cD1R7EPbArx8cbwH4NC4 5KJoD4vwUFNonhlPtMo1RgSxl5gLfmpuB8+4iPGj7p9ktqFxIy57AEj38JMoeRsDjO7fSa c10PEoGekvtthKLOUat6aoT2NbGTxx0dF784wnbrr7ZnHXsot1TjJvgqDscUfg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=kyleam.com header.s=key1 header.b=NGysrlbc; dmarc=none; 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.12 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=kyleam.com header.s=key1 header.b=NGysrlbc; dmarc=none; 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: 50F0911304 X-Spam-Score: -0.12 X-Migadu-Scanner: scn0.migadu.com X-TUID: eYGWmo0G6RPw 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: --8<---------------cut here---------------start------------->8--- *** =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=. --8<---------------cut here---------------end--------------->8---