From: Sharon Kimble <boudiccas@skimble09.plus.com>
To: emacs-orgmode@gnu.org
Subject: org-capture-templates failing
Date: Tue, 12 Jul 2022 16:33:28 +0100 [thread overview]
Message-ID: <87o7xujqgn.fsf@skimble09.plus.com> (raw)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Using this template culled from the org-mode manual
- --8<---------------cut here---------------start------------->8---
#+BEGIN_SRC emacs-lisp
(setq org-capture-templates
'(("t" "Todo" entry (file+headline "~/.emacs.d/org/scratch.org" "Tasks")
"* TODO %?\n %i\n %a")
("o" "Journal" entry (file+datetree "~/.emacs.d/org/scratch.org")
"* %?\nEntered on %U\n %i\n %a")))
#+END_SRC
[2022-07-12 Tue 16:24]
- --8<---------------cut here---------------end--------------->8---
and selecting either of the 2 keys from my org-capture setup, this is displayed in a debugger *backtrace*
- --8<---------------cut here---------------start------------->8---
Debugger entered--Lisp error: (error "Capture template ‘t’: Symbol’s value as variable i...")
signal(error ("Capture template ‘t’: Symbol’s value as variable i..."))
error("Capture template `%s': %s" "t" "Symbol’s value as variable is void: org-fold-core-...")
#f(compiled-function (&optional goto keys) "Capture something.\n\\<org-capture-mode-map>\nThis will let you select a template from `org-capture-templates', and\nthen file the newly captured information. The text is immediately\ninserted at the target location, and an indirect buffer is shown where\nyou can edit it. Pressing `\\[org-capture-finalize]' brings you back to the previous\nstate of Emacs, so that you can continue your work.\n\nWhen called interactively with a `\\[universal-argument]' prefix argument GOTO, don't\ncapture anything, just go to the file/headline where the selected\ntemplate stores its notes.\n\nWith a `\\[universal-argument] \\[universal-argument]' prefix argument, go to the last note stored.\n\nWhen called with a `C-0' (zero) prefix, insert a template at point.\n\nWhen called with a `C-1' (one) prefix, force prompting for a date when\na datetree entry is made.\n\nELisp programs can set KEYS to a string associated with a template\nin `org-capture-templates'. In this case, interactive selection\nwill be bypassed.\n\nIf `org-capture-use-agenda-date' is non-nil, capturing from the\nagenda will use the date at point as the default date. Then, a\n`C-1' prefix will tell the capture process to use the HH:MM time\nof the day at point (if any) or the current HH:MM time." (interactive "P") #<bytecode 0x68d4988a5436cc>)(nil nil)
ad-Advice-org-capture(#f(compiled-function (&optional goto keys) "Capture something.\n\\<org-capture-mode-map>\nThis will let you select a template from `org-capture-templates', and\nthen file the newly captured information. The text is immediately\ninserted at the target location, and an indirect buffer is shown where\nyou can edit it. Pressing `\\[org-capture-finalize]' brings you back to the previous\nstate of Emacs, so that you can continue your work.\n\nWhen called interactively with a `\\[universal-argument]' prefix argument GOTO, don't\ncapture anything, just go to the file/headline where the selected\ntemplate stores its notes.\n\nWith a `\\[universal-argument] \\[universal-argument]' prefix argument, go to the last note stored.\n\nWhen called with a `C-0' (zero) prefix, insert a template at point.\n\nWhen called with a `C-1' (one) prefix, force prompting for a date when\na datetree entry is made.\n\nELisp programs can set KEYS to a string associated with a template\nin `org-capture-templates'. In this case, interactive selection\nwill be bypassed.\n\nIf `org-capture-use-agenda-date' is non-nil, capturing from the\nagenda will use the date at point as the default date. Then, a\n`C-1' prefix will tell the capture process to use the HH:MM time\nof the day at point (if any) or the current HH:MM time." (interactive "P") #<bytecode 0x68d4988a5436cc>) nil)
apply(ad-Advice-org-capture #f(compiled-function (&optional goto keys) "Capture something.\n\\<org-capture-mode-map>\nThis will let you select a template from `org-capture-templates', and\nthen file the newly captured information. The text is immediately\ninserted at the target location, and an indirect buffer is shown where\nyou can edit it. Pressing `\\[org-capture-finalize]' brings you back to the previous\nstate of Emacs, so that you can continue your work.\n\nWhen called interactively with a `\\[universal-argument]' prefix argument GOTO, don't\ncapture anything, just go to the file/headline where the selected\ntemplate stores its notes.\n\nWith a `\\[universal-argument] \\[universal-argument]' prefix argument, go to the last note stored.\n\nWhen called with a `C-0' (zero) prefix, insert a template at point.\n\nWhen called with a `C-1' (one) prefix, force prompting for a date when\na datetree entry is made.\n\nELisp programs can set KEYS to a string associated with a template\nin `org-capture-templates'. In this case, interactive selection\nwill be bypassed.\n\nIf `org-capture-use-agenda-date' is non-nil, capturing from the\nagenda will use the date at point as the default date. Then, a\n`C-1' prefix will tell the capture process to use the HH:MM time\nof the day at point (if any) or the current HH:MM time." (interactive "P") #<bytecode 0x68d4988a5436cc>) nil)
org-capture(nil)
funcall-interactively(org-capture nil)
call-interactively(org-capture nil nil)
command-execute(org-capture)
- --8<---------------cut here---------------end--------------->8---
Can someone enlighten me as to why it isn't working? And how can I get them all working properly please?
Thanks
Sharon.
- --
Debian 11, fluxbox 1.3.7, emacs 29.0.50, org 9.5.4
-----BEGIN PGP SIGNATURE-----
iQJRBAEBCgA7FiEELSc/6QwVBIYugJDbNoGAGQr4g1sFAmLNlEgdHGJvdWRpY2Nh
c0Bza2ltYmxlMDkucGx1cy5jb20ACgkQNoGAGQr4g1uByA/9E8iTTNs/q4qrOmsw
AMsA1jEdjFt1iRvPsxDkdyxCY7xh0VGGjiYastByZb/oKviMnsqyPFNrkqnGg3zd
UZUS24qUrqzT249sa1QyIxBvcRRSHS6K+QUB75+2kVTcH2+nyh2Krt69cP5+4vs5
va0xd/fHD/qkdP+PoymECU7vHeBBEkxv158bhOAgFD1DNFosNXbAz6HA59PAmkKV
T9+T5VguQD3jYB8PDr3sjMFOKyX44cMcJP7wSeqTLQ+YIa61V4RnmfMc4A8s6pmX
qwcusZcOvnU+Li28lyZQl/JcwT+SWhiDqDXVheqSKdbrE+Qq6G9u4pAJFCWmxbr7
EfyZ0JkNY6lXCEDZ31JAc+WC5hK5+CvynQ324vXpibFui4y0hSbh1AEXGO/55hrK
cwdb2aAsZzEIkJrg8Rpy1lM62g1kmraG9pvCP5gLmmny1nace7J87ofcLLcoZC3O
Uyg/uTRj63uRSZFH37mAeem0/77BTsR8zV76gL0B+Xy0BDtF+rdDNhyC9DeC1dtw
X3iadc0PrDnvzfytTz7MQhSsfqYKuBhrjruwXjgL/Bj9qD2YX9BKAf8kKyTeeKv9
xh79ILw2prXLXmg6n4qHG8r7vXNHUFqFmD4QcwlSoxU9fk+2hL3pDBsW9pK++IgM
pcoiTQGH4Z5P3j9r3zToWBhzMNE=
=5Cd6
-----END PGP SIGNATURE-----
next reply other threads:[~2022-07-12 15:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-12 15:33 Sharon Kimble [this message]
2022-07-12 23:23 ` org-capture-templates failing Ihor Radchenko
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=87o7xujqgn.fsf@skimble09.plus.com \
--to=boudiccas@skimble09.plus.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 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.