From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Re: Enhancing the Org/Gnus experience Date: Thu, 04 Nov 2010 07:29:43 -0600 Message-ID: <87lj59dxm0.fsf@gmail.com> References: <80k4lj78ui.fsf@mundaneum.com> <87sk07fl3s.fsf@gmail.com> <80k4lf337a.fsf@mundaneum.com> <80vd4z9q2f.fsf@mundaneum.com> <874oc2z2uv.fsf@gmail.com> <8062wdcp6y.fsf@mundaneum.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=54735 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PDzuR-0000rr-Ri for emacs-orgmode@gnu.org; Thu, 04 Nov 2010 09:31:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PDzuQ-0005vI-Fl for emacs-orgmode@gnu.org; Thu, 04 Nov 2010 09:31:19 -0400 Received: from mail-qy0-f169.google.com ([209.85.216.169]:58891) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PDzuQ-0005v8-DW for emacs-orgmode@gnu.org; Thu, 04 Nov 2010 09:31:18 -0400 Received: by qyk5 with SMTP id 5so1214100qyk.0 for ; Thu, 04 Nov 2010 06:31:17 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: =?utf-8?Q?S=C3=A9bastien?= Vauban Cc: emacs-orgmode@gnu.org S=C3=A9bastien Vauban writes: > Hi Eric (and Dan), > > "Eric Schulte" wrote: >> This is really great. I finally folded it into my gnus setup, and while >> it looks great when it works > > Great you love it. I'm *VERY* pleased. Moreover, having no reaction on th= at > (and on some other posts[1]), I thought I'd been kill-filed=C2=A0;-)[2] > > >> I was getting frequent errors throw by the org-mode fontification engine >> recursing too deeply. I've changed it to the following which augments wh= at >> you sent with some simple error handling. > > I _never_ observed problems in my case. Anyway, adding such a protection = is > the code is a great addition. Thanks! > Hmm, I wonder what the difference could be in our setups. > > I've just singed the FSF papers. Once received by the FSF, I'll > propagate your update onto the Gnus newsgroup. > That sounds great. > > >> ** Org-mode code block fontification >> Correctly fontify Org-mode attachments >> #+begin_src emacs-lisp >> (add-to-list 'mailcap-mime-extensions '(".org" . "text/org")) >> (add-to-list 'mm-automatic-display "text/org") >>=20=20=20=20=20 >> (add-to-list 'mm-inline-media-tests >> '("text/org" my-display-org-inline >> (lambda (el) t))) >>=20=20=20=20=20 >> (defun my-display-org-inline (handle) >> (condition-case nil >> (mm-display-inline-fontify handle 'org-mode) >> (error >> (insert (with-temp-buffer (mm-insert-part handle) (buffer-strin= g)) >> "\n")))) >> #+end_src >> >> Update =3Dorg-src-lang-modes=3D to provide some leeway for posters >> #+begin_src emacs-lisp >> (add-to-list 'org-src-lang-modes >> '("elisp" . emacs-lisp)) >> (add-to-list 'org-src-lang-modes >> '("emacs_lisp" . emacs-lisp)) >> #+end_src >> >> Fontify code blocks in the text of messages >> #+begin_src emacs-lisp >> (defun my-mm-org-babel-src-extract () >> (mm-make-handle (mm-uu-copy-to-buffer start-point end-point) '("text= /org"))) >>=20=20=20 >> (add-to-list 'mm-uu-type-alist >> '(org-src-block >> "^[ \t]*#\\+begin_" >> "^[ \t]*#\\+end_" >> my-mm-org-babel-src-extract >> nil)) >>=20=20=20 >> (mm-uu-configure) >> #+end_src > > When I have a bit of time (not directly=C2=A0;-(), I will try adding miss= ing bits: > > - colorization of such =3Dorg-verbatim=3D strings, and > - of the =3D:results=3D "blocks" or lines. I wonder if the mechanism used by gnus for underlining and italics could easily be extended for verbatim markers... > > A difficulty, maybe, for the latter is the absence of explicit > marker. Not that true: it's a newline... > > When that will be done, we will have a real Org experience when reading m= ails > with Gnus. I love all this tools. > Agreed, I'm already finding the two to be a very comfortable pair. > > Best regards, > Seb > > Footnotes: > [1] I will send an updated version on the one about sh session. Sounds good. I often miss emails which don't have [Babel] in the subject string. Also, I currently have a list of >10 emails in my lists.babel folder marked for followup that I simply haven't had time to address. I know that at least one of those is from you. Cheers -- Eric >=20 > [2] Just kidding. Using org-footnote BTW.