From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id wMRQFgWsF2dLdQAAe85BDQ:P1 (envelope-from ) for ; Tue, 22 Oct 2024 13:43:33 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id wMRQFgWsF2dLdQAAe85BDQ (envelope-from ) for ; Tue, 22 Oct 2024 15:43:33 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20230601 header.b=GpVcfhcR; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1729604613; 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=eOPgG4IPCZ6B5Iwg/At+SHsxyxeTHnsAxcXDGaCvJ+k=; b=WAapCfJ3EVsCeWzX8hhpJEkTmNjLj7FPDcowU8wNwyGLfeVQOjTzrCOxsS37+ZFYMQoR4Y Vucm+TbSmqQyDx6vdwbRqi5AS311DUT9ISbzE5K1VnJ6WYC+8bC8Ey1o3vskcZpIV9JE/g OAFJZtg1thkJvHrHfxVAgATPAoOaAIy6iBsKO13fm6OFAgV9iBZhoWTj94/2fTv8JBQHX1 jiLrkZJ7bm0kJT/10XSes0EoIEaAGniRFkTZJfBN9nTLjfMBzgTwKa194A8Z5pbLVkgdGf ioeUy5zLgjL+zZzrQrLMnc+2KQS7ax9uDBYxQU97dlISH1oYAu/vG0QY8VaCgQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1729604613; a=rsa-sha256; cv=none; b=IegIaptlHBwBYnQ3jNCPh1Y/SRqsYgsfByTjhv2r1GN9td5XnfFZhdKCTvBsuAdU4jE74M i+zfB/q2irF5kCJpA/5HEEI9FKaBg+5R9H3cVsF7avxquabBRnqBjGwC0RBXyP+kqqzB1i pudU9fZ328WbcliuGSIYKSS3+dzaaNYCD0YfVaTOwWd30MLBrek5sR1WkiVzep39JrADT3 VAWG3PuCVjhVq06DEeNxVtu4eZrhYRLGNq4mZN9ScCbdH5VPwPqWwMzROQ4COj4RtDX7DU BHq5tkLZLXZo62ZJHX/0KIHexOyDLvS1SJcP6hIrUGattbDuk6OhJgABp9XxeQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20230601 header.b=GpVcfhcR; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) 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 E299350E3 for ; Tue, 22 Oct 2024 15:43:32 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t3Eu2-0003KS-TB; Tue, 22 Oct 2024 09:26:27 -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 1t3Etx-0003Ht-28 for emacs-orgmode@gnu.org; Tue, 22 Oct 2024 09:26:21 -0400 Received: from mail-yw1-x1130.google.com ([2607:f8b0:4864:20::1130]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t3Etu-0007Ih-KC for emacs-orgmode@gnu.org; Tue, 22 Oct 2024 09:26:20 -0400 Received: by mail-yw1-x1130.google.com with SMTP id 00721157ae682-6e5a5a59094so53368297b3.3 for ; Tue, 22 Oct 2024 06:26:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729603576; x=1730208376; darn=gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=K88o4OlV2dAODbQWkiiOtDwCzFuJJp2mOBxfin0xAqQ=; b=GpVcfhcR5hIXJe8HqL8NS1RMHyzkkb65E5KRKXTydpMqjIL+lv6hn+dusWC8KDHyn2 j5xW/wo/hFOyaK5K3W9CQGmYKAjM27FPiexNt0xww44/WhYQhWFEzoAd36v8mzAUKAFp 9aZeYfNx3hkXEBvvbdtc04BoulMlPBGK0+lMocaqW6F3nY636wIBc8ru7zQnHLdDerIz zynO5wYegjvmOWgoS3sEETvqHoWb/b+tmuaAPZ3LC1tSNy6wX26v9CCAIJ6c5PrmdOIk pbRZVC8Dza9wPer6G5wJyYtDbnOvE67Nk7bimEpn5ZJQKD6aTC0DpOIoej1b7X5CrByg bAUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729603576; x=1730208376; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=K88o4OlV2dAODbQWkiiOtDwCzFuJJp2mOBxfin0xAqQ=; b=vvy0ylxt/hh5RAgtnuxKPIlUkULZGhuR9BC3/G/Nz43/F+5L2o2Eps1kpEaR1k5Ofp 3l6ye788x6WoFMe/xymoSYh+b2fvTyunEyqndyggTwQIOW12pJdBpYvqFilhVjL4KZUX h2fYnJR0652rUNTkAKiJtzkNkeA7GsAEIu7UVE2cKYNLsIdbMwwsWPNzJtby6nA2rghb JAnW1jAeYFM7Z3PJfRGu76cWNEYbdDENB3ntkII5AX2/bCp/2QNst7NUhP63Vv6Us1X8 vcaKi0eC7PpOG6O/j840XvLxXEgSTM+RxXAyjKbHBRjV1/9ieK3t7bo2NEYIYzfsIR94 YryQ== X-Gm-Message-State: AOJu0YxopYQZANLiLjGYVaF3slWyVtLFn8zkbwkl//SNsdTo/BbWhK56 JDk4Pb2xSicfKWOtzJSYqxAALlDx1pyOZa5yg9lOIvA0KSqzNokPQ+pJKJRi1FL4I4WZ9Smtna2 64EGcwt1XOzZ5Is3YFivNCYuUBm8= X-Google-Smtp-Source: AGHT+IHdHGM8ayFUHRLgedNWgvVVJjLL6+b2SF0e02OQwedV4xLoRf9aqOEoNsAqZmWWyvGaUnqojjW/GOGUQRuiIOY= X-Received: by 2002:a05:690c:6208:b0:6e2:7dd:af61 with SMTP id 00721157ae682-6e5bf9a72bcmr138484597b3.17.1729603575738; Tue, 22 Oct 2024 06:26:15 -0700 (PDT) MIME-Version: 1.0 References: <87jzedsfxx.fsf@localhost> <877ca6zk4j.fsf@localhost> <878qujrvo9.fsf@localhost> In-Reply-To: <878qujrvo9.fsf@localhost> From: Benjamin McMillan Date: Tue, 22 Oct 2024 22:25:49 +0900 Message-ID: Subject: Re: [BUG] A call of (org-end-of-meta-data t) goes too far in a heading with only whitespace To: Ihor Radchenko Cc: emacs-orgmode@gnu.org Content-Type: multipart/mixed; boundary="000000000000bc10dc062510b6c7" Received-SPF: pass client-ip=2607:f8b0:4864:20::1130; envelope-from=mcmillanbb@gmail.com; helo=mail-yw1-x1130.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, HTML_MESSAGE=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.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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: 6.25 X-Spam-Score: 6.25 X-Migadu-Queue-Id: E299350E3 X-Migadu-Scanner: mx13.migadu.com X-TUID: NbfiTAAyBmGT --000000000000bc10dc062510b6c7 Content-Type: multipart/alternative; boundary="000000000000bc10d9062510b6c5" --000000000000bc10d9062510b6c5 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sure, here is the patch. On Sun, Oct 20, 2024 at 6:03=E2=80=AFPM Ihor Radchenko wrote: > Benjamin McMillan writes: > > > Granted that it is not worth changing behavior of the function, would i= t > be > > reasonable to update the docstring? Something like > > "When optional argument FULL is t, also skip planning information, > > clocking lines, any kind of drawer, and blank lines. > > > When FULL is non-nil but not t, skip planning information, > > properties, clocking lines, logbook drawers, and blank lines." > > Yes. More precise docstring is certainly welcome. > Would you be interested to submit a patch? > > -- > Ihor Radchenko // yantar92, > Org mode contributor, > Learn more about Org mode at . > Support Org development at , > or support my work at > --000000000000bc10d9062510b6c5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Sure, here is the patch.

On Sun, Oct 20, 2024 at 6:03= =E2=80=AFPM Ihor Radchenko <yantar92@posteo.net> wrote:
Benjamin McMillan <mcmillanbb@gmail.com> writes:<= br>
> Granted that it is not worth changing behavior of the function, would = it be
> reasonable to update the docstring? Something like
> "When optional argument FULL is t, also skip planning information= ,
> clocking lines, any kind of drawer, and blank lines.

> When FULL is non-nil but not t, skip planning information,
> properties, clocking lines, logbook drawers, and blank lines."
Yes. More precise docstring is certainly welcome.
Would you be interested to submit a patch?

--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,=
or support my work at <https://liberapay.com/yantar92>
--000000000000bc10d9062510b6c5-- --000000000000bc10dc062510b6c7 Content-Type: application/octet-stream; name="0001-lisp-org.el-org-end-of-meta-data-Improve-docstring.patch" Content-Disposition: attachment; filename="0001-lisp-org.el-org-end-of-meta-data-Improve-docstring.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_m2khae920 RnJvbSBmOTNkODIwN2FlNTQyNDhiZDJlY2FhYmFiOTMyOTFiMWEzMTJkOTQ3IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBCZW5qYW1pbiBNY01pbGxhbiA8bWNtaWxsYW5iYkBnbWFpbC5j b20+CkRhdGU6IFR1ZSwgMjIgT2N0IDIwMjQgMjI6MDY6MjIgKzA5MDAKU3ViamVjdDogW1BBVENI XSBsaXNwL29yZy5lbCAob3JnLWVuZC1vZi1tZXRhLWRhdGEpOiBJbXByb3ZlIGRvY3N0cmluZwoK KiBsaXNwL29yZy5lbCAob3JnLWVuZC1vZi1tZXRhLWRhdGEpOiBDbGFyaWZ5IHRoYXQgYSBjYWxs IG9mCm9yZy1lbmQtb2YtbWV0YWRhdGEgd2l0aCBub24tbmlsIGFyZ3VtZW50IEZVTEwgd2lsbCBz a2lwIGJsYW5rIGxpbmVzCmluIGFkZGl0aW9uIHRvIG90aGVyIG1ldGEtZGF0YS4KCkxpbms6IGh0 dHBzOi8vbGlzdHMuZ251Lm9yZy9hcmNoaXZlL2h0bWwvZW1hY3Mtb3JnbW9kZS8yMDI0L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