[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bug: org-element-at-point on headline does not contain :parent property
From: |
Ihor Radchenko |
Subject: |
Bug: org-element-at-point on headline does not contain :parent property [9.3 (release_9.3 @ /home/yantar92/.emacs.d/straight/build/org/)] |
Date: |
Mon, 16 Dec 2019 20:17:06 +0800 |
Recipe:
1. Create an org file with the following contents:
* 1
** 2
2. emacs -Q
3. Open the file
4. Put the point at the end of the second headline
5. M-: (message "%s" (org-element-at-point))
Expected behaviour:
According to org-element-at-point docstring, "Properties depend on
element or object type, but always include :begin, :end, :parent and
:post-blank properties.". Hence, it is expected to have :parent property
set to the first headline.
Observed behaviour:
(headline (:raw-value 2 :begin 6 :end 13 :pre-blank 0 :contents-begin
nil :contents-end nil :level 2 :priority nil :tags nil :todo-keyword nil
:todo-type nil :post-blank 2 :footnote-section-p nil :archivedp nil
:commentedp nil :post-affiliated 6 :title 2))
No :parent property is returned.
Best,
Ihor
Emacs : GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo
version 1.16.0)
of 2019-12-16
Package: Org mode version 9.3 (release_9.3 @
/home/yantar92/.emacs.d/straight/build/org/)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Bug: org-element-at-point on headline does not contain :parent property [9.3 (release_9.3 @ /home/yantar92/.emacs.d/straight/build/org/)],
Ihor Radchenko <=