From: Nicolas Goaziou <n.goaziou@gmail.com>
To: Sebastien Vauban
<public-sva-news-D0wtAvR13HarG/iDocfnWg@plane.gmane.org>
Cc: public-emacs-orgmode-mXXj517/zsQ@plane.gmane.org
Subject: Re: Redshank gets loaded when exporting ELisp code blocks to HTML!?
Date: Mon, 07 Apr 2014 17:26:30 +0200 [thread overview]
Message-ID: <874n25jh3t.fsf@gmail.com> (raw)
In-Reply-To: <86fvlpryql.fsf@somewhere.org> (Sebastien Vauban's message of "Mon, 07 Apr 2014 16:38:26 +0200")
Hello,
Sebastien Vauban <sva-news-D0wtAvR13HarG/iDocfnWg@public.gmane.org>
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
next prev parent reply other threads:[~2014-04-07 15:26 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-07 14:38 Redshank gets loaded when exporting ELisp code blocks to HTML!? Sebastien Vauban
2014-04-07 15:20 ` Sacha Chua
2014-05-02 13:10 ` Sebastien Vauban
2014-04-07 15:26 ` Nicolas Goaziou [this message]
2014-04-07 15:37 ` Nicolas Goaziou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874n25jh3t.fsf@gmail.com \
--to=n.goaziou@gmail.com \
--cc=public-emacs-orgmode-mXXj517/zsQ@plane.gmane.org \
--cc=public-sva-news-D0wtAvR13HarG/iDocfnWg@plane.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).