From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id SP/CNkufhWS0VAEASxT56A (envelope-from ) for ; Sun, 11 Jun 2023 12:17:47 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id yDObNkufhWR0VwAA9RJhRA (envelope-from ) for ; Sun, 11 Jun 2023 12:17:47 +0200 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 8373D2A283 for ; Sun, 11 Jun 2023 12:17:46 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q8I80-0002Z3-0H; Sun, 11 Jun 2023 06:16:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q8I7w-0002UV-Ek for emacs-orgmode@gnu.org; Sun, 11 Jun 2023 06:16:52 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q8I7t-0002Uy-ME for emacs-orgmode@gnu.org; Sun, 11 Jun 2023 06:16:52 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 0F490240103 for ; Sun, 11 Jun 2023 12:16:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1686478604; bh=d7xRE6Hu0iDqXVBHYljIPluklInSRxzvBwAe4jAk7A4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=Avd/JviX+dWKGDeLYW/lP5fU33oOx1APkAN0UrT/8AC39d2hNYRK1hIdEhTwNDfC9 LH5va4KwKQn6FqcDg/3F569VcON3a8egniVGEvWx9AVhkdGe4kJTPIw6zVUtbjQOTM 4y7Oh+OCSd+/ykZ1ALd6/z2upA7XKHSkc7v1KNmDbD+NJapsIkreM0RAHEqnecJWDe yi7h8wtapYOuHDcz1IyjqSMnUDXdL5gDHmIWUfuPJ3IWSHmBXT4O4NvQZ0PDiOvsfU cXO8Hn960/FALvfD1d3C0MvMjnNmlarC5HSZT2S+1TOoJUI5ltMmM09b7hL3LXSO7N aaxG4CrOyYHlg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Qf9hq1b8Gz9rxB; Sun, 11 Jun 2023 12:16:43 +0200 (CEST) From: Ihor Radchenko To: Jens Schmidt Cc: Farblos , emacs-orgmode@gnu.org Subject: Re: Where does headline data end for the purpose of =?utf-8?Q?`org-adapt-indentation=C2=B4?= == =?utf-8?Q?=C2=B4headline-data?= In-Reply-To: References: <87v8fy19v1.fsf@localhost> <90c52222-25ed-09d0-7e36-58e400f74811@vodafonemail.de> <87jzwd1445.fsf@localhost> Date: Sun, 11 Jun 2023 10:21:35 +0000 Message-ID: <875y7uti34.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1686478666; 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=796dQthQBPR7P4YrpE8pCtHEWRAJ9qdeda2dlJ9Cgn0=; b=RtRxIcaOpKEQ5oZJ80q8tyfleZxoEszMtOfswQT9H/hpjVA2uZDkVsukd+PJaINuHv1Er1 5CvTfgTyKl1VaXpJVDnh1h5j7gXtb0pGdtXvFTU1hhhxrk1NRo6QznZm98LXDcKLqvy3g+ RVkjcLaAkBKIcLk7RALLcJN0oAr2Be7BsbanzgUvw9OLTTpQQ0E8dsQ5+jvQRxRoxwDTSv 97NzxpRhkLN3Goqx8/kDbdMTQyAfBIWSb+ydlqI6FdaJglmBAY6bYZnnuqGV4oSSNJ7u57 S3EJzp7SivnJ6MlYJZSnP7lY7NVoHdqndw8/odS9T0r9Z+YNaWfoCu2XHVKj0A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="Avd/JviX"; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1686478666; a=rsa-sha256; cv=none; b=WH36k5QiO5dtA5dWk6nKw6ypMyzTIdDiY07vjaVGPx4Pwd7HnQKXPI3n3/FNHFSvLn+t/H XWT8dcREJOL+oPoT305eLp4LBJ1ioMEDRtsozGpA3lwdrOjDjKDXrmuu1BPy6ODKsFMv8p EAJlqN1AZ+L87iUoF/IpQ4qmrctPKV3K+zD136YWWO4QjByOGeKtEk2gNxQsdOQ+A+QNMU Qh1p1144xR+1nTv8B1/dvtZgxQtYESoDWNcnvyAuNaTo05aUbQUJfKwsS3PWCXWjRfEyut NBwFZDGS33HfjlRxjb4Kq2ANF9OZCmXs4RoB6SzlfVGD4E9bYSqdUfqJOjkYPA== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -6.18 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="Avd/JviX"; dmarc=pass (policy=none) header.from=posteo.net; 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: 8373D2A283 X-Spam-Score: -6.18 X-TUID: qLAMigUTR6+3 Jens Schmidt writes: > (setq org-adapt-indentation 'headline-data) > > Paste the following into a new org file, headline A being the on the > first line: > > -------------------- snip -------------------- > ** Headline A > > > > ** Headline B > > > > ** Headline C > :properties: > -------------------- snip -------------------- > > Then try TAB on lines (my humble opinion in parentheses) > > 2: no indent (NOK) This is right: `org-adapt-indentation' docstring states When this variable is set to headline-data, Org only adapts the indentation of the data lines right below the headline, such as planning/clock lines and property/logbook drawers. Blank line is not a planning/clock/line/property drawer/logbook. So, we do not indent. > 6: indent (OK) > 7: indent (NOK) This is a bug. Fixed now, on main. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=34082ff18 The logic in `org-indent-line' did not account for blank lines after heading. > 11: no indent (NOK) This is also OK. ":properties:", from Org's point of view is not a property drawer, but a paragraph (there is no closing :end: and property values inside). So, it is not a headline data. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at