emacs-orgmode@gnu.org archives
 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

* Re: [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 [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
  0 siblings, 1 reply; 3+ messages in thread
From: Ihor Radchenko @ 2023-12-04 15:04 UTC (permalink / raw)
  To: SyedZuhair; +Cc: emacs-orgmode

SyedZuhair <syed@riseup.net> writes:

> 1. define this function:
>
> (defun test-get-entry-text-content ()
>  (interactive)
>  (let ((body (org-get-entry-text-content)))
>  (prin1 body)
>  )
>  )

The function `org-get-entry-text-content' is not a part of Org mode.
Not an Org mode bug.
Canceled.

I suggest you to check where it is defined:
C-h f org-get-entry-text-content <RET>
The place where the function is defined should be displayed in the
*Help* buffer then.

Once you know where the function is coming from, you may reach out to
the author of that package (if it is a package) or investigate further
looking into the function code.

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


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

* Re: [BUG] org-get-entry-text-content return the title of the next org-entry if current entry has no body.
  2023-12-04 15:04 ` Ihor Radchenko
@ 2023-12-04 15:51   ` SyedZuhair
  0 siblings, 0 replies; 3+ messages in thread
From: SyedZuhair @ 2023-12-04 15:51 UTC (permalink / raw)
  To: emacs-orgmode

🤦 I have writen the fnction myself... when I didn't know the
importance naming functions approperiately in emacs. Sorry. 

Ihor Radchenko <yantar92@posteo.net> writes:
> SyedZuhair <syed@riseup.net> writes:
>
>> 1. define this function:
>>
>> (defun test-get-entry-text-content ()
>>  (interactive)
>>  (let ((body (org-get-entry-text-content)))
>>  (prin1 body)
>>  )
>>  )
>
> The function `org-get-entry-text-content' is not a part of Org mode.
> Not an Org mode bug.
> Canceled.
>
> I suggest you to check where it is defined:
> C-h f org-get-entry-text-content <RET>
> The place where the function is defined should be displayed in the
> *Help* buffer then.
>
> Once you know where the function is coming from, you may reach out to
> the author of that package (if it is a package) or investigate further
> looking into the function code.


^ 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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).