From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric Schulte Newsgroups: gmane.emacs.devel Subject: Re: org-src.el begin_src/end_src fontification may have been broken recently Date: Mon, 13 Jun 2011 07:38:31 -0700 Message-ID: <87ei2xpziw.fsf@gmail.com> References: <87aaebbndz.fsf@lifelogs.com> <871uzccr2k.fsf@lifelogs.com> <87lixji1mz.fsf@lifelogs.com> <87r57beyqk.fsf@lifelogs.com> <4DE90C32.7090105@swipnet.se> <871uzag6js.fsf@lifelogs.com> <4DE9228A.1010504@swipnet.se> <4DEC9C9C.2010001@swipnet.se> <877h8yfzs2.fsf@lifelogs.com> <87zkltr617.fsf_-_@lifelogs.com> <87lixak053.fsf@lifelogs.com> <871uz1eju7.fsf@lifelogs.com> <87tybws06c.fsf@keller.adm.naquadah.org> <877h8qit7v.fsf@lifelogs.com> <8762oagnqf.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1307975951 4197 80.91.229.12 (13 Jun 2011 14:39:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 13 Jun 2011 14:39:11 +0000 (UTC) Cc: emacs-devel@gnu.org To: =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 13 16:39:06 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QW8IC-0004Fo-FQ for ged-emacs-devel@m.gmane.org; Mon, 13 Jun 2011 16:39:04 +0200 Original-Received: from localhost ([::1]:54721 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QW8IB-0005C2-Ah for ged-emacs-devel@m.gmane.org; Mon, 13 Jun 2011 10:39:03 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:57984) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QW8Hu-0005Bu-Dl for emacs-devel@gnu.org; Mon, 13 Jun 2011 10:38:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QW8Ho-0004tf-RY for emacs-devel@gnu.org; Mon, 13 Jun 2011 10:38:46 -0400 Original-Received: from mail-pw0-f41.google.com ([209.85.160.41]:34141) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QW8Ho-0004tJ-Jw for emacs-devel@gnu.org; Mon, 13 Jun 2011 10:38:40 -0400 Original-Received: by pwi12 with SMTP id 12so2574777pwi.0 for ; Mon, 13 Jun 2011 07:38:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-type :content-transfer-encoding; bh=iJDZ0Fts7/WpfWA3P3aGSWWMz2aP4sh5VAzNNjzXI7U=; b=eXgRmW5qB5I8WYyfFaUCCuPQwuGhehoExQNiS/GfD2QXj+FriWxnURbMO0wzP9qbCe D4Ma1VrcurSWx31Bbwk9H5EMNQyXbxttFPwDlz20sni/3FkpHwdokKPsfmV+Q095Svfi QMLbeuxCJ0FPnBrVc7dIRBgGeqLPUclupu8ec= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type:content-transfer-encoding; b=jRA2gncA0HlA5Tr19Jl6/4VrkJ97cgYmdGw7utdxIan3gs/RoyA1jjvGMrIHQW0yGz 1/sS9Ub5MddWBNiI+l30YRwy23xyU8LKiiKCZchPHSrcV/IGSdtEnSSxqslYkoOfUIRS ivIEPchiEw3JgNGUwJEHu0fhKj3YFu4SkyuT8= Original-Received: by 10.68.44.164 with SMTP id f4mr2031401pbm.392.1307975918653; Mon, 13 Jun 2011 07:38:38 -0700 (PDT) Original-Received: from bagel (c-71-202-151-156.hsd1.ca.comcast.net [71.202.151.156]) by mx.google.com with ESMTPS id x1sm4692841pbb.82.2011.06.13.07.38.34 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 13 Jun 2011 07:38:35 -0700 (PDT) In-Reply-To: <8762oagnqf.fsf@gmail.com> (=?utf-8?B?IsWgdMSbcMOhbiBOxJtt?= =?utf-8?B?ZWMiJ3M=?= message of "Mon, 13 Jun 2011 10:05:44 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.160.41 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:140412 Archived-At: =C5=A0t=C4=9Bp=C3=A1n N=C4=9Bmec writes: > Ted Zlatanov writes: > >> On Sat, 11 Jun 2011 20:16:59 +0200 Julien Danjou wr= ote:=20 >> >>>>=20 >>>> Julien, are you using that extra ":" because it's legitimate? Or is it >>>> an accident? What should I do with my patch? >> >> JD> Ah yes, probably a mistake. > ^^^^^^^^ > definitely > >> JD> If you ask me, I'd say the syntax should allow both, but well, I adm= it I >> JD> do that mistake very often=E2=80=A6 :-) >> >> I'd say a mistake shouldn't break Gnus' article display :) Can that be >> fixed in org.el or in Gnus? It seems to me org.el is the right place. > > What is there to fix in org.el? In Org, when you use some bogus > delimiter like #+begin_src:, the block simply won't work. If Gnus > article display is broken, it should obviously be fixed in Gnus, no? > I have the following altered function definition in my personal configuration which fixes (well, papers over) the problem. #+begin_src emacs-lisp (defun mm-display-org-inline (handle) "Show an Org mode text from HANDLE inline." (condition-case nil (mm-display-inline-fontify handle 'org-mode) (error (mm-insert-part handle)))) #+end_src It is not clear to me why Org-mode fontification would only throw errors when called from `mm-display-inline-fontify'. Best -- Eric --=20 Eric Schulte http://cs.unm.edu/~eschulte/