all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: SyedZuhair <syed@riseup.net>
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	[thread overview]
Message-ID: <87v89gfehm.fsf@hoborg.mail-host-address-is-not-set> (raw)


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/)


             reply	other threads:[~2023-12-02 22:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-02 22:04 SyedZuhair [this message]
2023-12-04 15:04 ` [BUG] org-get-entry-text-content return the title of the next org-entry if current entry has no body Ihor Radchenko
2023-12-04 15:51   ` SyedZuhair

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87v89gfehm.fsf@hoborg.mail-host-address-is-not-set \
    --to=syed@riseup.net \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.