[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: BEGIN_SRC..END_SRC
From: |
Eli Zaretskii |
Subject: |
Re: BEGIN_SRC..END_SRC |
Date: |
Sat, 05 May 2012 20:02:19 +0300 |
> From: Bastien <address@hidden>
> Cc: Tom Rauchenwald <address@hidden>, address@hidden
> Date: Sat, 05 May 2012 15:38:24 +0200
>
> >> In recent Gnus builds it will font lock that part off the message
> >> appropriatly, making it look pretty.
> >
> > Thanks, but why isn't this done in general-purpose font-lock of email
> > messages? Why limit this to Gnus?
>
> Here is the relevant code in lisp/gnus/mm-view.el:
>
> (defun mm-display-org-inline (handle)
> "Show an Org mode text from HANDLE inline."
> (mm-display-inline-fontify handle 'org-mode))
>
> I don't if we can use mm-view.el outside Gnus but if so, it would
> be great.
It looks like the above fontifies the snippet in a separate buffer
(switching that buffer to the requested major mode), then copies the
result as a string to the display buffer. But won't the string be
immediately re-fontified in the buffer that displays the email, as
appropriate for the major mode in the email buffer?
- Re: BEGIN_SRC..END_SRC, (continued)
- Re: BEGIN_SRC..END_SRC, Ted Zlatanov, 2012/05/06
- Re: BEGIN_SRC..END_SRC, Lennart Borgman, 2012/05/06
- Re: BEGIN_SRC..END_SRC, Ted Zlatanov, 2012/05/06
- Re: BEGIN_SRC..END_SRC, Lennart Borgman, 2012/05/07
- Re: BEGIN_SRC..END_SRC, Stephen J. Turnbull, 2012/05/07
- Re: BEGIN_SRC..END_SRC, Bastien, 2012/05/05
- Re: BEGIN_SRC..END_SRC,
Eli Zaretskii <=
- Re: BEGIN_SRC..END_SRC, Bastien, 2012/05/06
- Re: BEGIN_SRC..END_SRC, Eli Zaretskii, 2012/05/06
- Re: BEGIN_SRC..END_SRC, Lars Magne Ingebrigtsen, 2012/05/06
Re: lexical-binding questions, Stefan Monnier, 2012/05/05
Re: lexical-binding questions, Thierry Volpiatto, 2012/05/06
Re: lexical-binding questions, Stefan Monnier, 2012/05/05