Hi Nicolas, Nicolas Goaziou <n.goaz...@gmail.com> writes:
> I don't know about #+BEGIN_changemargin (but as far as I understand, > it's coming from org-exp-blocks and should be handled during > preprocess-hook, so it is beyond the scope of this patch). > > There is some design choice involved here. Until recently, there was a > catch-all function called org-export-handle-comments that was called > at the end of the export process and removed any line starting with > a #. It was certainly useful, but made things hard to debug : had > the #+ATTR_LaTeX line been misinterpreted or just silently deleted ? > > At the moment, org-export-handle-comments only handles... comments. > But everything that is not comments has to be taken care of somewhere > else. For example, org-export-attach-captions-and-attributes > deletes #+CAPTIONS and #+ATTR_backend in the process, and > org-export-select-backend-specific-text deletes #+backend > and #+ATTR_backend not used (that's what my patch do, actually). > Thanks for the explanation, I found it very useful. > > If you want to apply my patch (v. 2), we have to define a function to > remove #+TBLFM and #+TBLNAME lines because there is none at the > moment. It could be org-export-special-table-lines but it doesn't look > like it's the purpose of that function. > > Otherwise, you can just ignore the patch and bring back the full power > to org-export-handle-comments. > > I personally prefer avoiding do-it-all functions. But I'm not a > maintainer. > I've applied your patch. I agree that a catchall cleanup function at the end of the export process is not solution. Especially when it makes some perfectly valid constructs (e.g. nested blocks) impossible to export. I'll add a function for clearing out tblname and tblfm lines, and insert it at the appropriate place in the export process. Many thanks -- Eric > > Regards, > > -- Nicolas _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode