all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [BUG] org-get-entry-text-content return the title of the next org-entry if current entry has no body.
@ 2023-12-02 22:04 SyedZuhair
  2023-12-04 15:04 ` Ihor Radchenko
  0 siblings, 1 reply; 3+ messages in thread
From: SyedZuhair @ 2023-12-02 22:04 UTC (permalink / raw)
  To: emacs-orgmode


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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-12-04 15:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-02 22:04 [BUG] org-get-entry-text-content return the title of the next org-entry if current entry has no body SyedZuhair
2023-12-04 15:04 ` Ihor Radchenko
2023-12-04 15:51   ` SyedZuhair

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.