Ihor Radchenko <yanta...@gmail.com> writes:
I cannot reproduce on current main. Are you still seeing this problem?

Yes I believe I am. Also, it does not seem to be an org-attach issue but rather an issue with how org gets properties with inheritance.

If "* Top heading" is the first heading in the buffer with nothing above it, not even a whitespace/newline, then '(org-entry-get nil "id" t)' with point in "* Second heading" will return the id of "Top heading". If there is anything before "Top heading" then 'nil' will be returned.

This happens when I run 'emacs -Q' from within the "lisp" directory of a newly cloned "org-mode" main branch.

This example illustrates the problem:

---- beginning of buffer ----
* Top heading
:PROPERTIES:
:ID:       acf18561-7a84-4703-96c6-1aceccd46b33
:END:

* Second heading
#+begin_src emacs-lisp
 (load "org.el")
 (load "org-id.el")
 (org-entry-get nil "id" t)
#+end_src

#+RESULTS:
: acf18561-7a84-4703-96c6-1aceccd46b33

---- end of buffer ----


--
Johan Tolö

Reply via email to