Re: [Orgmode] Percent signs in org-remember-templates
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. ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Percent signs in org-remember-templates
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}%?" "~/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. ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Percent signs in org-remember-templates
On Aug 24, 2009, at 3:27 AM, Desmond Rivet wrote: Hi all, 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}%? HTH - Carsten -- Desmond Rivet Pain is weakness leaving the body. ___ Emacs-orgmode mailing list Remember: 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 Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Percent signs in org-remember-templates
Hi all, 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? -- Desmond Rivet Pain is weakness leaving the body. ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode