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 4PyQBey3gWTJDgEASxT56A (envelope-from ) for ; Thu, 08 Jun 2023 13:13:48 +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 cKtwBey3gWTDVAAA9RJhRA (envelope-from ) for ; Thu, 08 Jun 2023 13:13:48 +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 C82302C63A for ; Thu, 8 Jun 2023 13:13:47 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q7DZo-00014a-1N; Thu, 08 Jun 2023 07:13:12 -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 1q7DZh-00014H-8W for emacs-orgmode@gnu.org; Thu, 08 Jun 2023 07:13:08 -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 1q7DZY-00058U-Ac for emacs-orgmode@gnu.org; Thu, 08 Jun 2023 07:13:05 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 3850C240103 for ; Thu, 8 Jun 2023 13:12:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1686222774; bh=T9nJXbZXmUMZ8LWbUmiMb2R8qMQ34F0fhm0yQBgIqv0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=WL0i1Lwr3evvcwklDZ6UUftTgpH5JhtyOQyC8tLDcM4vUo6wuuhaNqNHLf/CKXXUM sFTv5WIdVK6IykS51/m+ctTiDD4Rf5kCbKEhz41qKwQ3A/Y7mWcBCrKKPl7Ow+4aBX OjMz8yxX23YD1xsznI3YKaHsPL6coZ4xBTGf/P+/1j6p7/UVIaCMQS3Cd8uVhUSQun 1XTK3vl0dq8IvqrEDLiEBhiUaDdC2OuragOK950BXaK8cF6P5d+MCdxDiaYxLQh6pl 4R19Q/5CJ5Vhc7q+Y/lEtpftac+ZKoSgyecN6YIWOcgTG7eGGaZyYX9OtbietSKsFf l9Qn6tITWLwng== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4QcM5144qqz9rxD; Thu, 8 Jun 2023 13:12:53 +0200 (CEST) From: Ihor Radchenko To: Farblos Cc: 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: Date: Thu, 08 Jun 2023 11:17:38 +0000 Message-ID: <87v8fy19v1.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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=1686222827; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=eOKnPYlMxGvotEBnroDXTzqfRuJW/XmZbnaGi3yxJm4=; b=LdX6AikO5T24z/2lrt9EaWNz+CckH2DF/dvUkP83z+l41Ci+VJ3MjhLNqKh7bqy4lJ0GYJ jkUKZdmPQIc0q1Dov4d6dQWX0tVXeeovoA49vv9wl8M0EQAWgka5zK9CmIzq80hiOJ6zlO JmpBlzX5hS6c2TuSnPs3S5doNG04qrk2UOU6BSFHFqsNNN6rGrXGvrbcOZk/7uC+WRUTYZ YamabfZK9xCW9yeczz4hcwWiHcXK7iOnFslBh1yX0xueLehdxqv2fvKp6jCBB9t+4JatGM 4HHgdTwrRbxUIHjIzD05jJjTknn8Fj7sldtd5CXMLeMPup61PT/IjBsq6zVNkw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=WL0i1Lwr; 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=1686222827; a=rsa-sha256; cv=none; b=Ea5DDv+7SPPcXlVdABX87lVOdLEjcR5L8Ci7Ntpnwdm6GqPOp4M11Bwl0gDstGB2QJ3FSx 45MYaigwA/3wBE4sm/hkqSAzfxjuLG4MejR35OGx6NHQs+DueMuAIfxDpM6eVkFmw4j2/D jNZuiXd0qSuSnewlPzUgtaXtd6haY5qaB9P6cLMpVHTqi1r53sdQvGToqrDWvZwDWon1ql G0+q06TXOf4RtB3P+IDcWOwuoVNQEMtRGg77meok0QkkeaH0XriCWxRzgYpj+vJwddyj62 8Wf/ph22HQZYtC/OPL3tzwCSP4FkA+JWt7v1lWtH45YQPtVdFCHq6f4UbuRZFw== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -6.17 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=WL0i1Lwr; 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: C82302C63A X-Spam-Score: -6.17 X-TUID: dp+X0CwMuiOA Farblos writes: > I like the idea of org-adapt-indentation being =C2=B4headline-data: > > When this variable is set to =E2=80=98headline-data=E2=80=99, Org only= adapts the > indentation of the data lines right below the headline, such as > planning/clock lines and property/logbook drawers. > > However, I find the resulting indentation behavior confusing. Before > reporting bugs, I'd like to know where the headline data ends. I'd > expect that the first blank (or whitespace-only?) line after a headline > would end the headline data. (defun org--at-headline-data-p (&optional beg element) "Return non-nil when `point' or BEG is inside headline metadata. =20=20=20=20 Metadata is planning line, properties drawer, logbook drawer right after property drawer, or clock log line immediately following properties drawer/planning line/ heading. Hope it clarifies things. Note that we had some bugs in this area in older Org versions. --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at