Re: [Orgmode] Re: Sending org buffer as mail?

2010-12-27 Thread Eric Schulte
Niels Giesen niels.gie...@gmail.com writes: Eric Schulte schulte.e...@gmail.com writes: Niels Giesen niels.gie...@gmail.com writes: Eric Schulte schulte.e...@gmail.com writes: Thanks, I've just pushed up a new version of org-mime which makes use of this function. Hi Eric, thanks for

Re: [Orgmode] Re: Sending org buffer as mail?

2010-12-27 Thread Samuel Wales
On 2010-12-21, Niels Giesen niels.gie...@gmail.com wrote: On the subject of encouraging so-called code blocks brought to our attention by Samuel, encouraging this was not my intention, I should have thought better before posting and I will never in my life post such immoral examples anymore.

Re: [Orgmode] Re: Sending org buffer as mail?

2010-12-27 Thread Niels Giesen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sorry list for the last two mails (the ones with attachments), I messed things up there. Below the mail I sent to Eric, but forgot to copy carbonically to the list. Eric Schulte schulte.e...@gmail.com writes: Niels Giesen niels.gie...@gmail.com

Re: [Orgmode] Re: Sending org buffer as mail?

2010-12-21 Thread Niels Giesen
Eric Schulte schulte.e...@gmail.com writes: Niels Giesen niels.gie...@gmail.com writes: Eric Schulte schulte.e...@gmail.com writes: Thanks, I've just pushed up a new version of org-mime which makes use of this function. Hi Eric, thanks for implementing this. However, I see a problem in

Re: [Orgmode] Re: Sending org buffer as mail?

2010-12-19 Thread Samuel Wales
Hi Niels, On 2010-12-19, Niels Giesen niels.gie...@gmail.com wrote: ,[ emacs-lisp ] | source here ` This is much harder to extract. Even if most people are willing to use and know rectangle commands, newcomers don't. I once pointed this out on emacs-help, and one person responded by

Re: [Orgmode] Re: Sending org buffer as mail?

2010-12-19 Thread Eric Schulte
Niels Giesen niels.gie...@gmail.com writes: Eric Schulte schulte.e...@gmail.com writes: Thanks, I've just pushed up a new version of org-mime which makes use of this function. [...] Hi Eric, I love the org-mime-subtree function! It makes writing good-looking mails very easy. Now for

Re: [Orgmode] Re: Sending org buffer as mail?

2010-12-19 Thread Eric Schulte
Ethan Ligon li...@are.berkeley.edu writes: Eric Schulte schulte.eric at gmail.com writes: Jean-Marie Gaillourdet jmg at gaillourdet.net writes: Hi Eric, Eric Schulte schulte.eric at gmail.com writes: Hi Matt, This looks great, how would you feel about trying to fold this into

Re: [Orgmode] Re: Sending org buffer as mail?

2010-12-17 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 12/17/2010 07:48 AM, Eric Schulte wrote: Hi eric I'm attaching a new version of org-mime.el which incorporates Matt's function below. There are now two new functions, `org-mime-org-buffer' and `org-mime-org-subtree' each of which takes a

Re: [Orgmode] Re: Sending org buffer as mail?

2010-12-17 Thread Eric Schulte
Rainer M Krug r.m.k...@gmail.com writes: On 12/17/2010 07:48 AM, Eric Schulte wrote: Hi eric I'm attaching a new version of org-mime.el which incorporates Matt's function below. There are now two new functions, `org-mime-org-buffer' and `org-mime-org-subtree' each of which takes a format

Re: [Orgmode] Re: Sending org buffer as mail?

2010-12-17 Thread Jean-Marie Gaillourdet
Hi Eric, Eric Schulte schulte.e...@gmail.com writes: Hi Matt, This looks great, how would you feel about trying to fold this into org-mime, or would you mind if I did so. I've already mimicked your function to set subjects of outgoing emails to match the title of the org-mode buffer. I

Re: [Orgmode] Re: Sending org buffer as mail?

2010-12-17 Thread Eric Schulte
Jean-Marie Gaillourdet j...@gaillourdet.net writes: Hi Eric, Eric Schulte schulte.e...@gmail.com writes: Hi Matt, This looks great, how would you feel about trying to fold this into org-mime, or would you mind if I did so. I've already mimicked your function to set subjects of outgoing

Re: [Orgmode] Re: Sending org buffer as mail?

2010-12-16 Thread Jeff Horn
On Thu, Dec 16, 2010 at 3:17 AM, Oscar Carlsson oscar.carls...@gmail.com wrote: And then, I can send a org-file by attaching it to a mail in Emacs. Try C-x m to start a new mail buffer, attach with C-c C-a and send with C-c C-c. Does this attach the buffer or read it into the message? I

Re: [Orgmode] Re: Sending org buffer as mail?

2010-12-16 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 12/16/2010 09:25 AM, Jeff Horn wrote: On Thu, Dec 16, 2010 at 3:17 AM, Oscar Carlsson oscar.carls...@gmail.com wrote: And then, I can send a org-file by attaching it to a mail in Emacs. Try C-x m to start a new mail buffer, attach with C-c C-a

Re: [Orgmode] Re: Sending org buffer as mail?

2010-12-16 Thread Oscar Carlsson
Jeff Horn jrhorn...@gmail.com writes: On Thu, Dec 16, 2010 at 3:17 AM, Oscar Carlsson oscar.carls...@gmail.com wrote: And then, I can send a org-file by attaching it to a mail in Emacs. Try C-x m to start a new mail buffer, attach with C-c C-a and send with C-c C-c. Does this attach the

Re: [Orgmode] Re: Sending org buffer as mail?

2010-12-16 Thread Oscar Carlsson
Rainer M Krug r.m.k...@gmail.com writes: On 12/16/2010 09:25 AM, Jeff Horn wrote: On Thu, Dec 16, 2010 at 3:17 AM, Oscar Carlsson oscar.carls...@gmail.com wrote: And then, I can send a org-file by attaching it to a mail in Emacs. Try C-x m to start a new mail buffer, attach with C-c C-a and

Re: [Orgmode] Re: Sending org buffer as mail?

2010-12-16 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 12/16/2010 11:38 AM, Oscar Carlsson wrote: Rainer M Krug r.m.k...@gmail.com writes: On 12/16/2010 09:25 AM, Jeff Horn wrote: On Thu, Dec 16, 2010 at 3:17 AM, Oscar Carlsson oscar.carls...@gmail.com wrote: And then, I can send a org-file by

Re: [Orgmode] Re: Sending org buffer as mail?

2010-12-16 Thread Eric Schulte
Please look at org-mime in the contrib directory. It is designed for this exact need. Calling `org-mime-org-buffer-htmlize' from within an Org-mode document will export the document to html, and then place the html into a mail buffer with appropriate mime configuration, ensuring things like

Re: [Orgmode] Re: Sending org buffer as mail?

2010-12-16 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 12/16/2010 02:22 PM, Eric Schulte wrote: Hi Eric Please look at org-mime in the contrib directory. It is designed for this exact need. Calling `org-mime-org-buffer-htmlize' from within an Org-mode document will export the document to html,

Re: [Orgmode] Re: Sending org buffer as mail?

2010-12-16 Thread Oscar Carlsson
Rainer M Krug r.m.k...@gmail.com writes: On 12/16/2010 11:41 AM, Rainer M Krug wrote: On 12/16/2010 11:38 AM, Oscar Carlsson wrote: Rainer M Krug r.m.k...@gmail.com writes: On 12/16/2010 09:25 AM, Jeff Horn wrote: On Thu, Dec 16, 2010 at 3:17 AM, Oscar Carlsson oscar.carls...@gmail.com

Re: [Orgmode] Re: Sending org buffer as mail?

2010-12-16 Thread Eric Schulte
Sébastien Vauban wxhgmqzgw...@spammotel.com writes: Hi Eric, Eric Schulte wrote: Please look at org-mime in the contrib directory. It is designed for this exact need. Calling `org-mime-org-buffer-htmlize' from within an Org-mode document will export the document to html, and then place

Re: [Orgmode] Re: Sending org buffer as mail?

2010-12-16 Thread Eric Schulte
Hi, This is not implemented yet, but shouldn't be hard to implement starting with the current code base. I encourage anyone who is interested to take a look at org-mime and try their hand at improving it. I'm strapped for time at the moment and probably wont have time to take a look at it, but

Re: [Orgmode] Re: Sending org buffer as mail?

2010-12-16 Thread Jeff Horn
On Thu, Dec 16, 2010 at 5:37 AM, Oscar Carlsson oscar.carls...@gmail.com wrote: Jeff Horn jrhorn...@gmail.com writes: On Thu, Dec 16, 2010 at 3:17 AM, Oscar Carlsson oscar.carls...@gmail.com wrote: And then, I can send a org-file by attaching it to a mail in Emacs. Try C-x m to start a new

Re: [Orgmode] Re: Sending org buffer as mail?

2010-12-16 Thread Sebastian Rose
Rainer M Krug r.m.k...@gmail.com writes: * Add message hook to include selected text as body Thanks to Deniz Dogan #+begin_src emacs-lisp (add-hook 'message-mode-hook (lambda () (let (text) (with-current-buffer (other-buffer)

Re: [Orgmode] Re: Sending org buffer as mail?

2010-12-16 Thread Sebastian Rose
Rainer M Krug r.m.k...@gmail.com writes: OK - I asked on the emacs help list, and got a response. I added the followig to my emacs.org: * Add message hook to include selected text as body Thanks to Deniz Dogan #+begin_src emacs-lisp (add-hook 'message-mode-hook (lambda ()

Re: [Orgmode] Re: Sending org buffer as mail?

2010-12-16 Thread Eric Schulte
Hi Matt, This looks great, how would you feel about trying to fold this into org-mime, or would you mind if I did so. I've already mimicked your function to set subjects of outgoing emails to match the title of the org-mode buffer. I think that generalizing the org-mime functions to operate

Re: [Orgmode] Re: Sending org buffer as mail?

2010-12-16 Thread Eric Schulte
I'm attaching a new version of org-mime.el which incorporates Matt's function below. There are now two new functions, `org-mime-org-buffer' and `org-mime-org-subtree' each of which takes a format argument specifying the format of the final email, one of 'org, 'ascii, or 'html. So, for example