> Fixed on main. > https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=3e010d81dcabafcdd97199b8122491a74ad9cbed
Thanks a lot. I checked that the problem is no longer present for me either. > This is because the error terminated export process in the middle > of it. Org export uses a temporary buffer copy during export. That > buffer is cleaned up to remove commented headings, and whatever > parts of the original buffer that should not be exported. When, > exporting subtree, the buffer may also be narrowed. > > You should not know this when things do not err in the middle, > which is now fixed. Thanks for the explanations; very useful. > Thanks for reporting and for the detailed reproducer! Thanks once more; I spent a whole day on this :-) With non reproducible features in the process (when using the elpa 9.5.5 version) -- sometimes the buffer was narrowed to nothing and then widen to the buffer without only the COMMENTed headline missing; sometimes, after the problem occurred, files with the .org extension further visited were in Fundamental mode ... -- EOST (École et Observatoire des Sciences de la Terre) ITE (Institut Terre & Environnement) | alain.coch...@unistra.fr 5 rue René Descartes [bureau 110] | Phone: +33 (0)3 68 85 50 44 F-67084 Strasbourg Cedex, France | [ slot available for rent ]