From: Carsten Dominik <carsten.dominik@gmail.com>
To: Desmond Rivet <desmond.rivet@videotron.ca>
Cc: emacs-orgmode@gnu.org
Subject: Re: Percent signs in org-remember-templates
Date: Thu, 10 Sep 2009 20:04:15 +0200 [thread overview]
Message-ID: <144E5409-B070-40D1-99BF-086869642CB3@gmail.com> (raw)
In-Reply-To: <87hbvci69h.fsf@zinc.branchcut.ath.cx>
On Sep 9, 2009, at 3:42 PM, Desmond Rivet wrote:
> Carsten Dominik <carsten.dominik@gmail.com> 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.
next prev parent reply other threads:[~2009-09-10 18:04 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-21 6:15 Please test org-indent-mode Carsten Dominik
2009-08-22 14:05 ` RC
2009-08-24 0:45 ` Manish
2009-08-24 1:27 ` Percent signs in org-remember-templates Desmond Rivet
2009-08-24 5:17 ` Carsten Dominik
2009-09-09 13:42 ` Desmond Rivet
2009-09-10 18:04 ` Carsten Dominik [this message]
2009-08-24 4:49 ` Please test org-indent-mode Carsten Dominik
2009-08-25 19:05 ` Sebastian Rose
2009-08-25 9:37 ` Bastien
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=144E5409-B070-40D1-99BF-086869642CB3@gmail.com \
--to=carsten.dominik@gmail.com \
--cc=desmond.rivet@videotron.ca \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.