Hi, A short comment.
Nicolas Goaziou <m...@nicolasgoaziou.fr> writes: >> + (org-export--prepare-file-contents file location >> only-contents lines)))) > > Couldn't location, only-contents and lines be merged into a single > argument? At the moment, you are either short-circuiting or breaking > guard against circular inclusions (which relies on a combination of > file-name and lines). Yeah, you are right. I will look into that. >> @@ -3420,6 +3437,26 @@ This is useful to avoid conflicts when more than one >> Org file >> with footnotes is included in a document." >> (with-temp-buffer >> (insert-file-contents file) >> + (org-mode) > > You cannot enforce `org-mode' as the current major mode since you can > include other file types. But then I can't use org-element-at-point: (with-temp-buffer (text-mode) (insert "* test\nmy txt") (goto-char (point-min)) (org-element-at-point)) (with-temp-buffer (org-mode) (insert "* test\nmy txt") (goto-char (point-min)) (org-element-at-point)) Thanks, Rasmus -- Send from my Emacs