From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: a bug @ remember template Date: Tue, 2 Feb 2010 11:19:14 +0100 Message-ID: References: <87r5p6e030.fsf@gmail.com> <153468AE-6400-4D07-9DD1-C411E243CA70@gmail.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NcFqr-0000pq-2e for emacs-orgmode@gnu.org; Tue, 02 Feb 2010 05:19:21 -0500 Received: from [199.232.76.173] (port=57098 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NcFqq-0000pR-Cm for emacs-orgmode@gnu.org; Tue, 02 Feb 2010 05:19:20 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NcFqo-0001kl-Qc for emacs-orgmode@gnu.org; Tue, 02 Feb 2010 05:19:20 -0500 Received: from mail-fx0-f226.google.com ([209.85.220.226]:56927) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NcFqo-0001ka-CO for emacs-orgmode@gnu.org; Tue, 02 Feb 2010 05:19:18 -0500 Received: by fxm26 with SMTP id 26so264946fxm.33 for ; Tue, 02 Feb 2010 02:19:16 -0800 (PST) In-Reply-To: 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: zwz Cc: emacs-orgmode@gnu.org On Feb 2, 2010, at 8:46 AM, zwz wrote: > 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.* 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 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 >> >> > > > > > > > _______________________________________________ > 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