Akash Pal <akashpau...@gmail.com> writes: > Suppose we have the following document > > ``` > #+title: test-file > > * This is h1 > > ** This is h1.2 > > We introduce some text here > > Then we narrow to this heading and introduce a footnote > ... > When we narrow to h1.2 (subtree) so that * Footnotes is not visible - after > adding the footnote, when we check > > (org-element-property :buffer (org-element-at-point)) at any headline level > or anywhere > It returns nil - inplace of the #<buffer> element it should return > > This causes functions to fail that rely on this.
Thanks for reporting! Fixed, on main. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=90945e16aa -- 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>