From: Mario Martelli <mario@martelli.de>
To: Alan Schmitt <alan.schmitt@polytechnique.org>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Capture template 'C': nil
Date: Fri, 30 Jun 2017 10:15:13 +0200 [thread overview]
Message-ID: <5B3B8446-E0EA-4DDF-8CE9-8CBEECC7DF48@martelli.de> (raw)
In-Reply-To: <m2r2y2j5w5.fsf@charm-wifi.irisa.fr>
[-- Attachment #1.1: Type: text/plain, Size: 894 bytes --]
Hi,
> Here is the template
>
> ("C" "capture CWN through org protocol" item (file "next-cwn.org")
> "- %?%:description\n %:link\n\n")
>
> When I use it on a page, it directly adds the entry to the file, without
> going through the capture interface, and it adds an extra %? in the
> text.
Try to use ‘entry’ instead of ‘item’
("C" "capture CWN through org protocol" entry (file "next-cwn.org")
"- %?%:description\n %:link\n\n")
“C” is usually bound to “Customise org-capture-templates”. Probably it’s better to choose another key.
In the next step you will probably get an error: org-capture: Capture template ‘i’: Template is not a valid Org entry or tree
To avoid that make the entry a tree:
(“c" "capture CWN through org protocol" entry (file "next-cwn.org")
“* %?%:description\n %:link\n\n")
rgrds
Mario
—
[-- Attachment #1.2: Type: text/html, Size: 1916 bytes --]
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 3690 bytes --]
next prev parent reply other threads:[~2017-06-30 8:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-30 7:23 Capture template 'C': nil Alan Schmitt
2017-06-30 8:15 ` Mario Martelli [this message]
2017-06-30 9:23 ` Alan Schmitt
2017-06-30 10:49 ` Mario Martelli
2017-06-30 11:14 ` Alan Schmitt
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=5B3B8446-E0EA-4DDF-8CE9-8CBEECC7DF48@martelli.de \
--to=mario@martelli.de \
--cc=alan.schmitt@polytechnique.org \
--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).