From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: BEGIN_SRC..END_SRC Date: Sat, 05 May 2012 20:02:19 +0300 Message-ID: <83pqai4l44.fsf@gnu.org> References: <871umzrvfw.fsf@gmail.com> <87wr4rqg6g.fsf@gmail.com> <83d36j59gv.fsf@gnu.org> <87r4uz58e3.fsf@sec.modprobe.de> <83aa1n57p4.fsf@gnu.org> <87d36islja.fsf@altern.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1336237469 26387 80.91.229.3 (5 May 2012 17:04:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 5 May 2012 17:04:29 +0000 (UTC) Cc: emacs-devel@gnu.org To: Bastien Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 05 19:04:29 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SQiPE-0005ge-UJ for ged-emacs-devel@m.gmane.org; Sat, 05 May 2012 19:04:29 +0200 Original-Received: from localhost ([::1]:51633 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SQiPE-0006UZ-AQ for ged-emacs-devel@m.gmane.org; Sat, 05 May 2012 13:04:28 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43557) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SQiPB-0006UF-FK for emacs-devel@gnu.org; Sat, 05 May 2012 13:04:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SQiP9-0003sl-No for emacs-devel@gnu.org; Sat, 05 May 2012 13:04:25 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:44175) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SQiP7-0003rX-2h; Sat, 05 May 2012 13:04:21 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0M3K00B006IU3300@a-mtaout21.012.net.il>; Sat, 05 May 2012 20:04:19 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.210.75]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M3K00BJQ7F62J30@a-mtaout21.012.net.il>; Sat, 05 May 2012 20:04:19 +0300 (IDT) In-reply-to: <87d36islja.fsf@altern.org> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.169 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:150295 Archived-At: > From: Bastien > Cc: Tom Rauchenwald , emacs-devel@gnu.org > 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?