emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-capture-templates failing
@ 2022-07-12 15:33 Sharon Kimble
  2022-07-12 23:23 ` Ihor Radchenko
  0 siblings, 1 reply; 2+ messages in thread
From: Sharon Kimble @ 2022-07-12 15:33 UTC (permalink / raw)
  To: emacs-orgmode

-----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-----


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-07-12 23:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-12 15:33 org-capture-templates failing Sharon Kimble
2022-07-12 23:23 ` Ihor Radchenko

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).