Re: [Orgmode] inserting files within remember templates

2007-12-09 Thread Adam Spiers
On Sat, Nov 24, 2007 at 02:52:27PM +, Adam Spiers wrote: > On Wed, Nov 07, 2007 at 09:42:55AM +0100, Carsten Dominik wrote: > > On 6 Nov 2007, at 11:39 PM, Adam Spiers wrote: > > > On Tue, Nov 06, 2007 at 04:36:47PM +, Adam Spiers wrote: > > > > This could easily be accomplished if remember

Re: [Orgmode] inserting files within remember templates

2007-12-08 Thread Adam Spiers
Caveat: the following was written using a sleep-deprived brain %-) Georg, judging by your mail http://article.gmane.org/gmane.emacs.orgmode/3814/ I think you and I are trying to achieve something similar with our org/mairix integration efforts. I would also find your suggestion of `org-rememb

Re: [Orgmode] inserting files within remember templates

2007-11-24 Thread Carsten Dominik
Nice! Thanks you very much, Adam... - Carsten On 11/24/07, Adam Spiers <[EMAIL PROTECTED]> wrote: > > On Wed, Nov 07, 2007 at 09:42:55AM +0100, Carsten Dominik wrote: > > On 6 Nov 2007, at 11:39 PM, Adam Spiers wrote: > > > On Tue, Nov 06, 2007 at 04:36:47PM +, Adam Spiers wrote: > > > > Thi

Re: [Orgmode] inserting files within remember templates

2007-11-24 Thread Adam Spiers
On Wed, Nov 07, 2007 at 09:42:55AM +0100, Carsten Dominik wrote: > On 6 Nov 2007, at 11:39 PM, Adam Spiers wrote: > > On Tue, Nov 06, 2007 at 04:36:47PM +, Adam Spiers wrote: > > > This could easily be accomplished if remember templates allowed > > > syntax such as > > > > > > ,-- > > >

Re: [Orgmode] inserting files within remember templates

2007-11-07 Thread Bastien
Adam Spiers <[EMAIL PROTECTED]> writes: >> In fact, I was not thinking of "parsing" the message. I imagined that >> the mutt helper would just tell where the message file is, then Emacs >> would do the job of creating a link by visiting this file > > That's going to be costly for mails with very

Re: [Orgmode] inserting files within remember templates

2007-11-07 Thread Adam Spiers
On Wed, Nov 07, 2007 at 02:39:07PM +, Bastien wrote: > Adam Spiers <[EMAIL PROTECTED]> writes: > > > I suppose it depends on the relative merits of parsing the mail via > > the mutt helper (which is Perl in my case) vs. doing it with elisp. > > In fact, I was not thinking of "parsing" the mes

Re: [Orgmode] inserting files within remember templates

2007-11-07 Thread Bastien
Adam Spiers <[EMAIL PROTECTED]> writes: > I suppose it depends on the relative merits of parsing the mail via > the mutt helper (which is Perl in my case) vs. doing it with elisp. In fact, I was not thinking of "parsing" the message. I imagined that the mutt helper would just tell where the mess

Re: [Orgmode] inserting files within remember templates

2007-11-07 Thread Adam Spiers
On Wed, Nov 07, 2007 at 12:46:45PM +, Bastien wrote: > > Currently I do this by coding the helper to dump the Message-Id into > > ~/.clip-mairix, and then the elisp code inserts the contents of this > > file back into the org buffer. However I would like it to be inserted > > via a remember te

Re: [Orgmode] inserting files within remember templates

2007-11-07 Thread Bastien
Adam Spiers <[EMAIL PROTECTED]> writes: > On Wed, Nov 07, 2007 at 02:37:54AM +, Bastien wrote: >> I've seen your patch in the other post and it looks fine. But FWIW here >> was my first reaction: why don't you try to implement a new link type >> for message/mail buffers? > > Because I use mutt

Re: [Orgmode] inserting files within remember templates

2007-11-07 Thread Adam Spiers
On Wed, Nov 07, 2007 at 02:37:54AM +, Bastien wrote: > Adam Spiers <[EMAIL PROTECTED]> writes: > > Currently I do this by coding the helper to dump the Message-Id into > > ~/.clip-mairix, and then the elisp code inserts the contents of this > > file back into the org buffer. However I would li

Re: [Orgmode] inserting files within remember templates

2007-11-07 Thread Carsten Dominik
On 7Nov2007, at 3:47 AM, Bastien wrote: Adam Spiers <[EMAIL PROTECTED]> writes: OK, it turns out that this was easy to implement, and I think the patch is small enough that it could be accepted even though I haven't got around to sending back the copyright assignment form yet (sorry - this *

Re: [Orgmode] inserting files within remember templates

2007-11-07 Thread Carsten Dominik
On 6Nov2007, at 11:39 PM, Adam Spiers wrote: On Tue, Nov 06, 2007 at 04:36:47PM +, Adam Spiers wrote: [snip] This could easily be accomplished if remember templates allowed syntax such as ,-- | * %T | %(shell-command-to-string "grep 'last full' /proc/acpi/battery/ BAT0/info") `

Re: [Orgmode] inserting files within remember templates

2007-11-06 Thread Bastien
Adam Spiers <[EMAIL PROTECTED]> writes: > OK, it turns out that this was easy to implement, and I think the > patch is small enough that it could be accepted even though I haven't > got around to sending back the copyright assignment form yet (sorry - > this *will* happen at some point!) This pat

Re: [Orgmode] inserting files within remember templates

2007-11-06 Thread Bastien
Hi Adam, Adam Spiers <[EMAIL PROTECTED]> writes: > Currently I do this by coding the helper to dump the Message-Id into > ~/.clip-mairix, and then the elisp code inserts the contents of this > file back into the org buffer. However I would like it to be inserted > via a remember template, hence

Re: [Orgmode] inserting files within remember templates

2007-11-06 Thread Adam Spiers
On Tue, Nov 06, 2007 at 04:36:47PM +, Adam Spiers wrote: [snip] > This could easily be accomplished if remember templates allowed syntax > such as > > ,-- > | * %T > | %(shell-command-to-string "grep 'last full' /proc/acpi/battery/BAT0/info") > `-- OK, it turns out that this was eas

Re: [Orgmode] inserting files within remember templates

2007-11-06 Thread Adam Spiers
On Tue, Nov 06, 2007 at 06:41:36AM +0100, Carsten Dominik wrote: > Setting up remember mode runs a remember-mode-hook, you can use that. That could be a workaround. > I would be interested to know what kind of applications you have in mind > when you want to include a file into a template, or exe

Re: [Orgmode] inserting files within remember templates

2007-11-05 Thread Carsten Dominik
Setting up remember mode runs a remember-mode-hook, you can use that. I would be interested to know what kind of applications you have in mind when you want to include a file into a template, or execute elisp code. How about a few examples to persuade us that this is needed? - Carsten On 5Nov2

Re: [Orgmode] inserting files within remember templates

2007-11-05 Thread Eddward DeVilla
I haven't used remember, so I don't know the limitations, but could C-x,C-i work? Edd On 11/5/07, Adam Spiers <[EMAIL PROTECTED]> wrote: > I'm finally getting around to setting up remember properly for regular > use. One thing I think I'll need is the ability to include the > contents of an exte

[Orgmode] inserting files within remember templates

2007-11-05 Thread Adam Spiers
I'm finally getting around to setting up remember properly for regular use. One thing I think I'll need is the ability to include the contents of an external file in a remember template at the time of instantiation. Or if there was a % escape sequence for executing arbitrary elisp, that would be