From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id yAIqJB1hCmd75AAAe85BDQ:P1 (envelope-from ) for ; Sat, 12 Oct 2024 11:44:29 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id yAIqJB1hCmd75AAAe85BDQ (envelope-from ) for ; Sat, 12 Oct 2024 13:44:29 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=i9l7nYO9; 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=1728733469; a=rsa-sha256; cv=none; b=Mr1ExeUmYBVNWMXBCwI9O/sMQnwDj7rFUST/GlFQ6Xcyo18d/k2AkAaUra0+bY7UyEGUWn 0ahs4jHsS2YRDFY9Kh5mNBtMkxu9lBpIvoYmLlu9cLNbnPfbf9R5iCTn2TNDlVJIP/2F/C Ks0vfHnROHyx0e1XVjdq/tDSQEu+FT+bQOnRcRUlIlsJwPKcjVPoMZFm4ti+11DcqIQqGv Ua3azv59DEHgkQeUJJEYd6hJDEgCgfOBszeTvAF+Ag+HV6rs2K/jU0VZ2wUtV62Hu1V32/ QMHcYow3t7+RyD3I1BYwdCeKK4BHJU/Lk/SAZNAdVnc4gmaYL3AdsWt2MTivVQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=i9l7nYO9; 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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1728733469; 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=LJWogASaqCykL1ED7uwp4pdkHcx1mPfS8Ox2Su0A+qI=; b=HULyhaZUaKC9oZUvvwywiJZPCm4r+raSK/aKhCSDzpc4XEMDjoz91U3xjT6PWyGfSH8FtX Pcdkt3F2p48H4tk3JAn+mci/76olb2LiVeOqToYN9H+hsWmxl7rtqbiDSKRNkWxO5HLAxa 2iWnhQ4U2Xnhi1En0GHw0XGm10bIYUEpk8UCsXrX07cz9QyR/cvPm/QzY2mwC9Alpi3oOg UyOuvEykh2WOvpBLgI8I1zuK0nqmMhcUpYI7XL66hO83IbgMlAxgaNMJfeEMU30IZNGd4p jCdv+eIcr6MVpoAokygs28yI/FJYyidIkg1QuoksJ9IoWAhDTCge74cFvJ6b+g== 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 6F94B35948 for ; Sat, 12 Oct 2024 13:44:28 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1szaX9-0004vS-62; Sat, 12 Oct 2024 07:43:43 -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 1szaWv-0004r3-Fi for emacs-orgmode@gnu.org; Sat, 12 Oct 2024 07:43:32 -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 1szaWt-0007eK-96 for emacs-orgmode@gnu.org; Sat, 12 Oct 2024 07:43:29 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 8728D240101 for ; Sat, 12 Oct 2024 13:43:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1728733404; bh=XE6g61x7cx7mFBKk0hewfSVzbFwUArFbrKOpsNcSJG0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=i9l7nYO9hSzWK4myKg+PwEA5GJWPKDyrxlGxY0jFqVxFTntmbsKiCFzQKbEUrV9IM dsNdMFL2+bJTCnO8Hy5StooFcg32Fo+ckj1qcZnBHKF/YQ9P5LPVG7Csh2sO6u5Lzh kHmWuTb7WKOX/D9dJjDpaxTN/esM1X5pX964s/JeO3PCNsCf4PZTMGbNqjtogbRZBr Q7vz6m77LkeM1T/BXGab1z5f5hRl5/2C2buFiAVvNXBJpQ6hsH828GLU8Bt4H4nWb0 QNVrsFh1vZnUnkat4FfoeKkm6Kzem9ZtKHSzLIQ2KUBY4pxocsxkI7zg5wF08fm1QT eHxLn4rQ1QIdA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4XQhT75DSqz6tsf; Sat, 12 Oct 2024 13:43:23 +0200 (CEST) From: Ihor Radchenko To: Benjamin McMillan Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] A call of (org-end-of-meta-data t) goes too far in a heading with only whitespace In-Reply-To: References: Date: Sat, 12 Oct 2024 11:45:14 +0000 Message-ID: <87jzedsfxx.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, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, 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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -5.39 X-Spam-Score: -5.39 X-Migadu-Queue-Id: 6F94B35948 X-Migadu-Scanner: mx10.migadu.com X-TUID: C702uiDjd/dq Benjamin McMillan writes: > Specifically, a call to (org-end-of-meta-data t) with point at the > on the > following tree will go all the way to the next heading. > In contrast, a call to just (org-end-of-meta-data), without the FULL flag, > will go to the beginning of heading content, as expected. > * >heading > > > * another heading This is intentional. We have a test: ;; With option argument, skip empty lines, regular drawers and ;; clocking lines. (should (org-test-with-temp-text "* Headline\n\nContents" (org-end-of-meta-data t) (looking-at "Contents"))) May you please elaborate why you consider the current behavior to be a bug? -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at