From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Percent signs in org-remember-templates Date: Thu, 10 Sep 2009 20:04:15 +0200 Message-ID: <144E5409-B070-40D1-99BF-086869642CB3@gmail.com> References: <874oryuhki.fsf_-_@zinc.branchcut.ath.cx> <1E8353CA-3556-48CA-B597-6E1A06E33283@gmail.com> <87hbvci69h.fsf@zinc.branchcut.ath.cx> 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 1Mlo0P-0006fZ-06 for emacs-orgmode@gnu.org; Thu, 10 Sep 2009 14:04:25 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mlo0K-0006Yg-2r for emacs-orgmode@gnu.org; Thu, 10 Sep 2009 14:04:24 -0400 Received: from [199.232.76.173] (port=58443 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mlo0J-0006YP-P9 for emacs-orgmode@gnu.org; Thu, 10 Sep 2009 14:04:19 -0400 Received: from ey-out-1920.google.com ([74.125.78.148]:39021) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mlo0J-0006Nr-7X for emacs-orgmode@gnu.org; Thu, 10 Sep 2009 14:04:19 -0400 Received: by ey-out-1920.google.com with SMTP id 26so960352eyw.2 for ; Thu, 10 Sep 2009 11:04:18 -0700 (PDT) In-Reply-To: <87hbvci69h.fsf@zinc.branchcut.ath.cx> 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: Desmond Rivet Cc: emacs-orgmode@gnu.org On Sep 9, 2009, at 3:42 PM, Desmond Rivet wrote: > Carsten Dominik writes: > >> On Aug 24, 2009, at 3:27 AM, Desmond Rivet wrote: > >>> I'm attempting to use the remember package to insert a diary-sexp >>> into a >>> file for use by the org-mode agenda. It looks like this; >>> >>> %%(diary-remind '(diary-date %^{Month} %^{Day} t) -%^{Remind days}) >>> %^{Brief Description}%? >>> >>> The double percent at the beginning is causing problems. Is there >>> any >>> way to escape the percent signs? >> >> Hi Desmond, >> >> Please pull from git, and then escape like this: >> >> %\%(diary-remind '(diary-date %^{Month} %^{Day} t) -%^{Remind days}) >> %^{Brief Description}%? > > Hrm...tried that with the latest version from git, but it still > doesn't > seem to work. My templates look like this: > > (setq org-remember-templates > '( > ("Next Action" ?n "** TODO %^{Brief Description}\nAdded: %U\n%? > \n" "~/pim/gtd/main_gtd.org" "Misc") > ("Waiting" ?w "** TODO %^{Brief Description}\nAdded: %U\n%?\n" "~/ > pim/gtd/main_gtd.org" "Waiting") > ("Project" ?p "** TODO %^{Brief Description} :project: > \n:PROPERTIES:\n:CATEGORY: %^{Category}\n:END:\nAdded: %U\n%?\n" > "~/pim/gtd/main_gtd.org" "Projects") > ("Someday" ?s "** %^{Brief Description}\nAdded: %U\n%?\n" "~/pim/ > gtd/someday.org" "Misc") > > ;; calendar > ("Birthday" ?b "%\%(diary-remind '(diary-date %^{Month} > %^{Day}t) -%^{Remind days}) %^{Brief Description}%?" Hi Desmond, to get a backslash in a string constant, you need to write two: "%\\%(diary...." HTH - Carsten > "~/pim/gtd/dates.org" "Birthdays") > ("Appointment" ?a "* %^T %^{Brief Description}%?" "~/pim/gtd/ > dates.org" "Appointments") > ) > ) > > The Birthday one is giving me this when I hit C-c r b: > > %%![Error: (void-function diary-remind)] %? > > Any ideas? > > -- > Desmond Rivet > > Pain is weakness leaving the body.