From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 6NcKMCaqa2XzKgEAG6o9tA:P1 (envelope-from ) for ; Sat, 02 Dec 2023 23:05:26 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 6NcKMCaqa2XzKgEAG6o9tA (envelope-from ) for ; Sat, 02 Dec 2023 23:05:26 +0100 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 0E24E564F4 for ; Sat, 2 Dec 2023 23:05:26 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=riseup.net header.s=squak header.b=OfiOV1l+; dmarc=pass (policy=none) header.from=riseup.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=1701554726; a=rsa-sha256; cv=none; b=GpiRSa5+8+SFdQCruk3fJGMiRQ6DCV3oWCJlR9nC55OHFH+TEAe3jCrx85Q/nEUxAtvZ45 svog4/RyYMwWNlQpAhs7iVshlJeBMo/JGH+8YnPv9susIF71wTewZ54DeGCnK1xAjbpvZt qz05bEByRbNNdL1vV8IwtxzrsxyNJqN2V/0PDTEyW4rKT+dtvbFtCvXoY0y3dpmrY2xWrj OhH/6C3QZE5NERv9fgNvJkVExu3V+4hzSOF1b95CNYe9JkXkGuECit5NNJgpep0S5BTBTd WfhHLiMsDns4LzeDU5OI8QWxuKwkIJCjp8B0Q48k2cRk83q7RHaY5EOPvibw+A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=riseup.net header.s=squak header.b=OfiOV1l+; dmarc=pass (policy=none) header.from=riseup.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=1701554726; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=yjA+YyJkDx6jcBHKAitVgomGMVo2Mh+sInLE7e3hJAA=; b=oQh1OGdTSFuc9f+JPk3Za/6kqPWaPf0x5/DDJoL5wisKFtK7wjEXPKBYxO1MIihV1piyvm b7c7YYAVHpd6fJABusXDdd6I4cBs+uORymn1HNuR2dhkv/nWrmFD5bGNGpiTs1PZFDYWkL eTX9OfzORqgv93cPDjZlgq5nAXUhQRVRMv8WR8gXlzUWyTRp89G+Scko4vAoChP792L+se cVNOjjjplKTrzMTAWpXWrLRB6tEfWnbLPbwRwuNC0YMi5IREaG/5dwYVgtMwTjtvuo1W0i INrcA16km2JQykZm/9cF+Y0HqQCm+mNKl95lKItP+1xqm7IAHB+gQ7FwalRnOg== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r9Y6E-00029s-V1; Sat, 02 Dec 2023 17:04:34 -0500 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 1r9Y6D-00029f-16 for emacs-orgmode@gnu.org; Sat, 02 Dec 2023 17:04:33 -0500 Received: from mx0.riseup.net ([198.252.153.6]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r9Y67-0007iU-Ss for emacs-orgmode@gnu.org; Sat, 02 Dec 2023 17:04:32 -0500 Received: from fews01-sea.riseup.net (fews01-sea-pn.riseup.net [10.0.1.109]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx0.riseup.net (Postfix) with ESMTPS id 4SjP9512Cpz9vZd for ; Sat, 2 Dec 2023 22:04:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1701554665; bh=3wJ88YPCLBK5fJubTYbuuGxADQ+NgcKNX+JF1oossyw=; h=From:To:Subject:Date:From; b=OfiOV1l+RLJv9ECgGMeFtAXRomEqR+XNIhgYatgGc/JjHHEA/AX07sHmRpO/y7hHL Z0QEEoM8a8m9xBzcdjxsg0jlP+ZS2e3fTH/expTuLqAzxgfIi9pK5KBuq6o4mkv1zP AakpL9d3/0WSkALwIgM4hkOgB/rpMQckuYvK63Ks= X-Riseup-User-ID: 8375AD9AD1AED2E5AEA624DBD98601323D94DF9369BCA2D108841CD43D223CAC Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews01-sea.riseup.net (Postfix) with ESMTPSA id 4SjP943FttzJmmX for ; Sat, 2 Dec 2023 22:04:24 +0000 (UTC) From: SyedZuhair To: emacs-orgmode@gnu.org Subject: [BUG] org-get-entry-text-content return the title of the next org-entry if current entry has no body. Date: Sat, 02 Dec 2023 17:04:21 -0500 Message-ID: <87v89gfehm.fsf@hoborg.mail-host-address-is-not-set> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=198.252.153.6; envelope-from=syed@riseup.net; helo=mx0.riseup.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, T_SPF_TEMPERROR=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 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -8.95 X-Spam-Score: -8.95 X-Migadu-Queue-Id: 0E24E564F4 X-TUID: xIs3fttAkJWd Steps to reproduce: 1. define this function: (defun test-get-entry-text-content () (interactive) (let ((body (org-get-entry-text-content))) (prin1 body) ) ) 2. Open an empty org file. 3. Write the entries * Entry1 * Entry2 4. Move cursor to "* Entry 1" line or to empty line after Entry1. 5. M-x test-get-entry-text-content 6. Result is "* Entry2" While it suppose to be empty or empty line. Thank you very much. Emacs : GNU Emacs 29.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.17.8) Package: Org mode version 9.6.6 (release_9.6.6 @ /usr/share/emacs/29.1/lisp/org/)