emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Percent signs in org-remember-templates


From: Carsten Dominik
Subject: Re: [Orgmode] Percent signs in org-remember-templates
Date: Thu, 10 Sep 2009 20:04:15 +0200


On Sep 9, 2009, at 3:42 PM, Desmond Rivet wrote:

Carsten Dominik <address@hidden> 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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]