From mboxrd@z Thu Jan 1 00:00:00 1970 From: zwz Subject: Re: a bug @ remember template Date: Tue, 2 Feb 2010 07:46:38 +0000 (UTC) Message-ID: References: <87r5p6e030.fsf@gmail.com> <153468AE-6400-4D07-9DD1-C411E243CA70@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NcDTh-0004ex-7g for emacs-orgmode@gnu.org; Tue, 02 Feb 2010 02:47:17 -0500 Received: from [140.186.70.92] (port=51846 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NcDTg-0004en-CI for emacs-orgmode@gnu.org; Tue, 02 Feb 2010 02:47:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NcDTd-0001kg-FS for emacs-orgmode@gnu.org; Tue, 02 Feb 2010 02:47:16 -0500 Received: from lo.gmane.org ([80.91.229.12]:42261) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NcDTb-0001k5-1b for emacs-orgmode@gnu.org; Tue, 02 Feb 2010 02:47:12 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1NcDTY-0000m1-An for emacs-orgmode@gnu.org; Tue, 02 Feb 2010 08:47:08 +0100 Received: from 125.119.243.33 ([125.119.243.33]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 02 Feb 2010 08:47:08 +0100 Received: from zhangweize by 125.119.243.33 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 02 Feb 2010 08:47:08 +0100 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: emacs-orgmode@gnu.org Carsten Dominik 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 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 gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > >