emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Eric Schulte" <schulte.eric@gmail.com>
To: "Sébastien Vauban" <wxhgmqzgwmuf@spammotel.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Re: Enhancing the Org/Gnus experience
Date: Thu, 04 Nov 2010 07:29:43 -0600	[thread overview]
Message-ID: <87lj59dxm0.fsf@gmail.com> (raw)
In-Reply-To: 8062wdcp6y.fsf@mundaneum.com

Sébastien Vauban <wxhgmqzgwmuf@spammotel.com> 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 that
> (and on some other posts[1]), I thought I'd been kill-filed ;-)[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 what
>> 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")
>>     
>>     (add-to-list 'mm-inline-media-tests
>>                  '("text/org" my-display-org-inline
>>                    (lambda (el) t)))
>>     
>>     (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-string))
>>                  "\n"))))
>> #+end_src
>>
>> Update =org-src-lang-modes= 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")))
>>   
>>   (add-to-list 'mm-uu-type-alist
>>                '(org-src-block
>>                  "^[ \t]*#\\+begin_"
>>                  "^[ \t]*#\\+end_"
>>                  my-mm-org-babel-src-extract
>>                  nil))
>>   
>>   (mm-uu-configure)
>> #+end_src
>
> When I have a bit of time (not directly ;-(), I will try adding missing bits:
>
> - colorization of such =org-verbatim= strings, and
> - of the =:results= "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 mails
> 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

> 
> [2] Just kidding. Using org-footnote BTW.

  parent reply	other threads:[~2010-11-04 13:31 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-15 15:51 Enhancing the Org/Gnus experience Sébastien Vauban
2010-10-15 16:59 ` Eric Schulte
2010-10-18 15:55   ` Sébastien Vauban
2010-10-18 20:57     ` Sébastien Vauban
2010-10-31 17:30       ` Eric Schulte
2010-10-31 20:57         ` Dan Davison
2010-11-04 11:18         ` Sébastien Vauban
2010-11-04 11:40           ` Eric S Fraga
2010-11-04 12:22             ` Eric Schulte
2010-11-04 13:53               ` Eric S Fraga
2010-11-04 15:06                 ` Sébastien Vauban
2010-11-04 16:21                 ` Tassilo Horn
2010-11-05 12:48                   ` Eric S Fraga
2010-11-05 12:58                     ` Sébastien Vauban
2010-11-05 21:36                       ` Eric S Fraga
2010-11-04 13:11             ` Sébastien Vauban
2010-11-04 14:24               ` Eric S Fraga
2010-11-04 15:11               ` Eric S Fraga
2010-11-04 13:29           ` Eric Schulte [this message]
2010-11-04 14:16             ` Sébastien Vauban
2010-11-04 15:24               ` Eric Schulte
2010-11-04 18:18           ` Jambunathan K
2010-11-29 13:40         ` Julien Danjou
2010-11-29 14:11           ` Sébastien Vauban
2011-01-17 16:09             ` Julien Danjou
2011-01-19 13:28               ` Sébastien Vauban
2011-01-20 10:16                 ` Julien Danjou
2011-01-20 18:00                   ` Julien Danjou
2011-01-20 22:09                     ` Sébastien Vauban

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87lj59dxm0.fsf@gmail.com \
    --to=schulte.eric@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=wxhgmqzgwmuf@spammotel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).