[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


From: Eli Zaretskii
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?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]