[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Redshank gets loaded when exporting ELisp code blocks to HTML!?
From: |
Nicolas Goaziou |
Subject: |
Re: [O] Redshank gets loaded when exporting ELisp code blocks to HTML!? |
Date: |
Mon, 07 Apr 2014 17:26:30 +0200 |
Hello,
Sebastien Vauban <sva-news-D0wtAvR13HarG/address@hidden>
writes:
> What I don't understand is:
>
> Why are Emacs Lisp minor modes loaded for exporting
> the Org document to HTML?
As a final filter, `set-auto-mode' is called in order to indent the
buffer properly. See `org-html-final-function'. When the major mode
switch happens, all associated minor modes are installed.
It also happens when exporting to a temporary buffer.
Of course, this doesn't explain why Emacs lisp minor modes are attached
to an HTML buffer. I guess there is something funny happening with
`set-auto-mode'.
> If not necessary, this seems suboptimal (performance-wise).
>
> Is it really necessary?
Not really. We could be more careful when generating code, i.e.,
we could generate code already indented.
Another option is to change major mode only when `org-html-indent' is
non-nil.
> So, is there a way to disactivate those minor modes during export?
Not at the moment.
Regards,
--
Nicolas Goaziou