From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id cKsnGWxL5WAXYgAAgWs5BA (envelope-from ) for ; Wed, 07 Jul 2021 08:36:28 +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 QEVSFGxL5WAsawAAB5/wlQ (envelope-from ) for ; Wed, 07 Jul 2021 06:36:28 +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 91215EE05 for ; Wed, 7 Jul 2021 08:36:27 +0200 (CEST) Received: from localhost ([::1]:40132 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m11AY-0001yd-3P for larch@yhetil.org; Wed, 07 Jul 2021 02:36:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36890) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m119W-0001yN-5i for emacs-orgmode@gnu.org; Wed, 07 Jul 2021 02:35:23 -0400 Received: from v-zimmta03.u-bordeaux.fr ([147.210.215.83]:58256) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m119S-0004BT-7v for emacs-orgmode@gnu.org; Wed, 07 Jul 2021 02:35:21 -0400 Received: from v-zimmta03.u-bordeaux.fr (localhost [127.0.0.1]) by v-zimmta03.u-bordeaux.fr (Postfix) with ESMTP id 9E34C1809DE5 for ; Wed, 7 Jul 2021 08:35:05 +0200 (CEST) Received: from fsantos-manjaro (unknown [10.130.128.37]) by v-zimmta03.u-bordeaux.fr (Postfix) with ESMTPSA id 91CAD1809DE1 for ; Wed, 7 Jul 2021 08:35:05 +0200 (CEST) From: =?utf-8?Q?Fr=C3=A9d=C3=A9ric_Santos?= To: emacs-orgmode@gnu.org Subject: Bug: Behavior of org-adapt-indentation [9.4.6 (9.4.6-10-gee652a-elpa @ /home/fsantos/.emacs.d/elpa/org-20210705/)] Date: Wed, 07 Jul 2021 08:35:04 +0200 Message-ID: <87wnq2ws13.fsf@u-bordeaux.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-AV-Checked: ClamAV using ClamSMTP Received-SPF: pass client-ip=147.210.215.83; envelope-from=frederic.santos@u-bordeaux.fr; helo=v-zimmta03.u-bordeaux.fr X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, 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=1625639787; 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: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=V/f1t/lH5nI/iTN87bfYqpk5VHPbHT+5kb/2xJfkG84=; b=ZISnV0aJZm4QBF7ajAK8v3dYRMjrXvY+zZ/GfiynWscIGn/Txcji06y5W7FEDYjoR0fug9 DE86lWEEDrlStA7F3HQqinlTL8fG2/cL8YQZWc6ZC++3nl4RxH2CL1nlR1XNhBGDnWNWQC 8TbKCuCQ3T9HW+pEi0F3Wrejrzy3oUhQVLfa4hFwNuPiJ59GmfmYeiOdVyDWrvtDDVvFoe yLeoGqI8gmqWblQNSjn8TEEgHqtRPzECrxEPSVt4KjwRP/yWsaOFefDNSu3qzS+6vlOIYj oyARXHanyTVTDaYOdV8B0akDnscFAWa96gizZtq0ZCbRBEz3bzCPou06J+h8SA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625639787; a=rsa-sha256; cv=none; b=JxVm9Q7ex4cuven3EmHv4lg5CZs7mEXCU4hlrMJ+QvE6QGBLb8tjjx1FyeMZYMxXmskHl0 kvS+8s/4z/BDfLLY7NLKbED/h1uHPA91URuWHIWxqr1A9yhxt08jWO32KNBIL1TYR1Qd55 wq8YJ7f5V+so9w5Z06BtcUyQbYJTy180nBjb+NcdcW4mSBGsAZpOpulzvGF9LDt0mzBZTX E6I6BtYUhYVfsqdFuu+cMV1G0EhvbolVtnhaed81XJWsnJ87NEbMUplBrAtwUREs2kogtd UHdjkePlmILVyO2nWB/hBvND/UgzkpW0u+ErfP6vNf6kaE0g5DQZY+t/pL7d0g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=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: -2.41 Authentication-Results: aspmx1.migadu.com; dkim=none; 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: 91215EE05 X-Spam-Score: -2.41 X-Migadu-Scanner: scn0.migadu.com X-TUID: udLMEDt5rkBZ Hi! This might not be *really* a bug, but since a recent update of Org, I noticed an unwanted indentation of code blocks when the variable org-adapt-indentation is set to 'headline-data. It can be reproduced with this very minimal org config: (use-package org :config (require 'org-tempo) (setq org-adapt-indentation 'headline-data)) In an org buffer, create a headline, and then: 1. Type some text which does *not* follow an empty line an press TAB: nothing happens (which is the expected behavior). 2. Type some text which does follow an empty line an hit TAB: this text gets indented according to the current headline level (the help page looks unclear to me: it might also be the expected behavior, although I don't really understand the rationale for it). Point 2. has a side effect: when you still use the old template expansion mechanism for code blocks (the one provided by org-tempo.el, e.g. type