emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* a bug @ remember template
@ 2010-01-31 16:00 zwz
  2010-02-01  6:42 ` Carsten Dominik
  0 siblings, 1 reply; 4+ messages in thread
From: zwz @ 2010-01-31 16:00 UTC (permalink / raw)
  To: emacs-orgmode

I use org-remember for my contact records.

This is a template in org-remember-templates
("Contact" ?c "* %^{Name} \n%[~/.contact]\n" "contact.org" "Contacts")

the content of the file "~/.contact":
:PROPERTIES:
:Mobile: %^{mobile}
:Email:
:Added: %u
:END:

I found that the prompt "%^{mobile}" works, but *the inactive time stamp "%u"
does not.* It is not replaced.

I guess it is a bug.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: a bug @ remember template
  2010-01-31 16:00 a bug @ remember template zwz
@ 2010-02-01  6:42 ` Carsten Dominik
  2010-02-02  7:46   ` zwz
  0 siblings, 1 reply; 4+ messages in thread
From: Carsten Dominik @ 2010-02-01  6:42 UTC (permalink / raw)
  To: zwz; +Cc: emacs-orgmode


On Jan 31, 2010, at 5:00 PM, zwz wrote:

> I use org-remember for my contact records.
>
> This is a template in org-remember-templates
> ("Contact" ?c "* %^{Name} \n%[~/.contact]\n" "contact.org" "Contacts")
>
> the content of the file "~/.contact":
> :PROPERTIES:
> :Mobile: %^{mobile}
> :Email:
> :Added: %u
> :END:
>
> I found that the prompt "%^{mobile}" works, but *the inactive time  
> stamp "%u"
> does not.* It is not replaced.
>
> I guess it is a bug.
>

Maybe not a bug - this simplt depends on the sequence
in which % escapes are expanded in the template.

However, I can see that it could be nice to define the templates
in a separate file like you do - so I have changed the sequence now.
File insertion happens first, so that this should now work (untested).

HTH

- Carsten


>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

- Carsten

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: a bug @ remember template
  2010-02-01  6:42 ` Carsten Dominik
@ 2010-02-02  7:46   ` zwz
  2010-02-02 10:19     ` Carsten Dominik
  0 siblings, 1 reply; 4+ messages in thread
From: zwz @ 2010-02-02  7:46 UTC (permalink / raw)
  To: emacs-orgmode

Carsten Dominik <carsten.dominik <at> gmail.com> writes:

> 
> 
> On Jan 31, 2010, at 5:00 PM, zwz wrote:
> 
> > I use org-remember for my contact records.
> >
> > This is a template in org-remember-templates
> > ("Contact" ?c "* %^{Name} \n%[~/.contact]\n" "contact.org" "Contacts")
> >
> > the content of the file "~/.contact":
> > :PROPERTIES:
> > :Mobile: %^{mobile}
> > :Email:
> > :Added: %u
> > :END:
> >
> > I found that the prompt "%^{mobile}" works, but *the inactive time  
> > stamp "%u"
> > does not.* It is not replaced.
> >
> > I guess it is a bug.
> >
> 
> Maybe not a bug - this simplt depends on the sequence
> in which % escapes are expanded in the template.

Yes, it indeed depend on the expanding-order.

Yesterday, I tried a workaround.

I moved ":Added: %u \n :END:" from "~/.contact" to "~/.emacs",
which makes the new template in org-remember-templates as
("Contact" ?c "* %^{Name} \n%[~/.contact] :Added: %u \n :END:" "contact.org"
"Contacts")

But then I found that the content of the file "~/.contact" was not inserted at
all.  *Maybe this is a bug.*

I added "\n" before ":Added:":
("Contact" ?c "* %^{Name} \n%[~/.contact]\n :Added: %u \n :END:" "contact.org"
"Contacts")
then it did the work, but the result was not perfect.



> 
> However, I can see that it could be nice to define the templates
> in a separate file like you do - so I have changed the sequence now.
> File insertion happens first, so that this should now work (untested).
> 
> HTH
> 
> - Carsten
> 
> >
> >
> >
> > _______________________________________________
> > Emacs-orgmode mailing list
> > Please use `Reply All' to send replies to the list.
> > Emacs-orgmode <at> gnu.org
> > http://lists.gnu.org/mailman/listinfo/emacs-orgmode
> 
> - Carsten
> 
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode <at> gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
> 
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Re: a bug @ remember template
  2010-02-02  7:46   ` zwz
@ 2010-02-02 10:19     ` Carsten Dominik
  0 siblings, 0 replies; 4+ messages in thread
From: Carsten Dominik @ 2010-02-02 10:19 UTC (permalink / raw)
  To: zwz; +Cc: emacs-orgmode


On Feb 2, 2010, at 8:46 AM, zwz wrote:

> Carsten Dominik <carsten.dominik <at> gmail.com> writes:
>
>>
>>
>> On Jan 31, 2010, at 5:00 PM, zwz wrote:
>>
>>> I use org-remember for my contact records.
>>>
>>> This is a template in org-remember-templates
>>> ("Contact" ?c "* %^{Name} \n%[~/.contact]\n" "contact.org"  
>>> "Contacts")
>>>
>>> the content of the file "~/.contact":
>>> :PROPERTIES:
>>> :Mobile: %^{mobile}
>>> :Email:
>>> :Added: %u
>>> :END:
>>>
>>> I found that the prompt "%^{mobile}" works, but *the inactive time
>>> stamp "%u"
>>> does not.* It is not replaced.
>>>
>>> I guess it is a bug.
>>>
>>
>> Maybe not a bug - this simplt depends on the sequence
>> in which % escapes are expanded in the template.
>
> Yes, it indeed depend on the expanding-order.
>
> Yesterday, I tried a workaround.
>
> I moved ":Added: %u \n :END:" from "~/.contact" to "~/.emacs",
> which makes the new template in org-remember-templates as
> ("Contact" ?c "* %^{Name} \n%[~/.contact] :Added: %u \n :END:"  
> "contact.org"
> "Contacts")
>
> But then I found that the content of the file "~/.contact" was not  
> inserted at
> all.  *Maybe this is a bug.*

This does work just fine for me.

- Carsten

>
> I added "\n" before ":Added:":
> ("Contact" ?c "* %^{Name} \n%[~/.contact]\n :Added: %u \n :END:"  
> "contact.org"
> "Contacts")
> then it did the work, but the result was not perfect.
>
>
>
>>
>> However, I can see that it could be nice to define the templates
>> in a separate file like you do - so I have changed the sequence now.
>> File insertion happens first, so that this should now work  
>> (untested).
>>
>> HTH
>>
>> - Carsten
>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Emacs-orgmode mailing list
>>> Please use `Reply All' to send replies to the list.
>>> Emacs-orgmode <at> gnu.org
>>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>
>> - Carsten
>>
>> _______________________________________________
>> Emacs-orgmode mailing list
>> Please use `Reply All' to send replies to the list.
>> Emacs-orgmode <at> gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>
>>
>
>
>
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

- Carsten

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-02-02 10:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-31 16:00 a bug @ remember template zwz
2010-02-01  6:42 ` Carsten Dominik
2010-02-02  7:46   ` zwz
2010-02-02 10:19     ` Carsten Dominik

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).