emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Shelagh Manton <shelagh.manton@gmail.com>
To: emacs-orgmode@gnu.org
Subject: using %(sexp) in remember templates
Date: Sun, 14 Jun 2009 23:27:47 +0000 (UTC)	[thread overview]
Message-ID: <h1411j$4fm$1@ger.gmane.org> (raw)

I'm trying to make a remember template that inserts some text 
automatically.

I read in the manual that %(sexp) would expand in the template. This 
would be what I want, if I've understood the manual aright. 

I made a small function that inserts text (org-csa) and this is the 
template I originally tried.
("CSA" ?C "* TODO %^{topic} %^g\n %t\n %(org-csa) %&" "CSA.org" bottom)

This put 

* TODO %^{topic} %^g
 <2009-06-15 Mon>
  %&

In the remember buffer.

I then tried 

("CSA" ?C "* TODO %^{topic} %^g\n %t\n %^(org-csa) %&" "~/.org/CSA.org" 
bottom)

Which prompted me for a string and added the (org-csa) in the remember 
buffer. (I filled in the various prompts)

* TODO charity ball :July:
 <2009-06-15 Mon>
 (org-csa) 

Have I misunderstood the manual? I thought that the sexp would be 
evaluated in the remember buffer. But neither with the ^ prompt which at 
least made the remember buffer work as expected or without where even the 
other prompts did not work at all, the (org-csa) did not get expanded.

Obviously I can evaluated it in the CSA.org buffer but that is not what I 
want at all. Maybe I should use org-eval? 

Shelagh

             reply	other threads:[~2009-06-14 23:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-14 23:27 Shelagh Manton [this message]
2009-06-15  5:01 ` using %(sexp) in remember templates Nick Dokos
2009-06-15  5:16   ` Shelagh Manton

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='h1411j$4fm$1@ger.gmane.org' \
    --to=shelagh.manton@gmail.com \
    --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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).