From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: plain-text markdown handler for Gnus (was: BEGIN_SRC..END_SRC) Date: Wed, 16 May 2012 11:17:26 -0400 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87k40c2m0p.fsf_-_@lifelogs.com> References: <871umzrvfw.fsf@gmail.com> <87wr4rqg6g.fsf@gmail.com> <83d36j59gv.fsf@gnu.org> <87r4uz58e3.fsf@sec.modprobe.de> <83aa1n57p4.fsf@gnu.org> <5D17181ED92C4552AE8D4404DD035CA0@us.oracle.com> <87vck8sfyv.fsf@uwakimon.sk.tsukuba.ac.jp> <85obq05aua.fsf@iznogoud.viz> <87r4uvs4ae.fsf@uwakimon.sk.tsukuba.ac.jp> <87397b15u7.fsf@gnu.org> <87ehqk5gc6.fsf@lifelogs.com> <87zk98qnq1.fsf@gmx.com> Reply-To: emacs-devel@gnu.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1337181490 31733 80.91.229.3 (16 May 2012 15:18:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 16 May 2012 15:18:10 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 16 17:18:09 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 1SUfzJ-0004KL-44 for ged-emacs-devel@m.gmane.org; Wed, 16 May 2012 17:18:05 +0200 Original-Received: from localhost ([::1]:35765 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUfzI-0006ve-Gk for ged-emacs-devel@m.gmane.org; Wed, 16 May 2012 11:18:04 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39755) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUfz9-0006v7-FC for emacs-devel@gnu.org; Wed, 16 May 2012 11:18:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SUfz3-0001yb-Hn for emacs-devel@gnu.org; Wed, 16 May 2012 11:17:55 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:56118) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUfz3-0001xl-Ah for emacs-devel@gnu.org; Wed, 16 May 2012 11:17:49 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SUfyx-0003vb-43 for emacs-devel@gnu.org; Wed, 16 May 2012 17:17:43 +0200 Original-Received: from c-76-28-40-19.hsd1.vt.comcast.net ([76.28.40.19]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 16 May 2012 17:17:43 +0200 Original-Received: from tzz by c-76-28-40-19.hsd1.vt.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 16 May 2012 17:17:43 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 35 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: c-76-28-40-19.hsd1.vt.comcast.net X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Copies-To: never User-Agent: Gnus/5.130004 (Ma Gnus v0.4) Emacs/24.1.50 (gnu/linux) Cancel-Lock: sha1:EwmzNMRBKk3vHksl929qODZGj1A= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:150524 Archived-At: On Wed, 16 May 2012 09:05:09 -0400 Eric Schulte wrote: ES> Ted Zlatanov writes: >> On Wed, 09 May 2012 13:36:33 -0400 Stefan Monnier wrote: >> SM> This said, I find >> SM> (defun sm-foo () SM> (try that)) >> SM> to be a lot more legible anyway, even without any fancy coloring. >> >> OK, so inline Markdown markup looks good to you. I think Gnus can >> support it together with JIRA-style tags ({code:LANGUAGE}...{code}). >> ES> FWIW, I've been using the indented markup implementation from my ES> previous email for a week or so now and it seems fairly robust (it ES> hasn't trashed any mail so far). I'll include it here if there is any ES> interest in using it. After loading the following and re-viewing this ES> email in gnus, the code will be font-locked. [general mm-uu handler omitted] This is very nice but I think it's also nice to use the `markdown' processor directly (as markdown-mode does). It will handle more of the Markdown markup and generates HTML which we can then inline. I'm not sure--can anyone with Markdown experience comment? This would be Gnus-specific because the HTML result would then be part of the article buffer. Also it would be very useful to detect Markdown automatically based on some traits, like 4-space indented quotes and the other Markdown markup. Ted