Akash Pal 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 - af
Dear Maintainers,
I seem to have been able to solve this issue through some brute force debugging.
The problem emanates from when copying over the local variables, especially the
`buffer-file-name' variable
The function definition `org-src--edit-element' contains a provision to make
the said
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
* Another heading here so that footnote capture works
#+begin_src
(org-element-property :buffer (org-element-at-point