Omar Antolín Camarena <o...@matem.unam.mx> writes: > I get warnings that org-refile-targets, org-capture-templates and > org-capture-templates-contexts do not satisfy their defcustom :type > specifications, and I believe the reason is that those type > specifications are incorrect! > > 1. For org-refile-targets the defcustom :type specifies that each list starts > with:
Fixed, on bugfix. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=fa99e9cfe4 > > 2. For org-capture-templates-contexts the defcustom :type specifies > that each list must have: > > (string :tag " Capture key") > (string :tag "Replace by template") > > but the docstring specifies the "Replace by template" part is optional. Fixed, on main. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=639b4cafb7 > 3. For org-capture-templates I couldn't quickly figure out what was > wrong, but I believe my configuration is correct (and org-capture > certainly works), so I believe there is probably another error in the > defcustom :type specifier. You can find my org-capture-templates > configuration below. I tried to run the attached and I see no warnings.
(setopt org-capture-templates '(("t" "Task" entry (file "~/Orgzly/Tasks.org") "* TODO %?\n") ("r" "Reply" entry (file "~/Orgzly/Tasks.org") "* TODO Contestarle a %:fromname: [[%L][%:subject]] :mail:\n" :immediate-finish t) ("n" "Note" entry (file "~/Orgzly/Inbox.org") "* %?\n") ("m" "Math talk" entry (file+olp "~/Orgzly/Tasks.org" "Pláticas") "* [[%c][💻]] %^{Speaker}, /%^{Title}/ \n%^T\n%?") ("v" "Talk" entry (file+olp "Notes.org" "Talks") "* [[%c][💻]] %?\n") ("j" "Journal entry" plain (file+olp+datetree "Journal.org")) ("l" "Link" entry (file "~/Orgzly/Inbox.org") "* %?%a\n") ("c" "Clipboard link" entry (file "~/Orgzly/Inbox.org") "* %?[[%c][%^{Title}]]") ("a" "arXiv paper" entry (file+olp "Math.org" "Reading" "arXiv") "* %c\n" :immediate-finish t) ("p" "Blood Pressure" table-line (file+olp "Health.org" "Presión Omar") "| %U | %^{LSys} | %^{LDia} | %^{LPul} | %^{RSys} | %^{RDia} | %^{RPul} |" :immediate-finish t) ("e" "Emacs templates") ("s" "Someday" entry (file+olp "Notes.org" "Someday") "* %?\n") ("ei" "Idea" entry (file+olp "Emacs.org" "Ideas") "* %?\n") ("et" "Tip" entry (file+olp "Emacs.org" "Tips") "* %?\n") ("eq" "Question" entry (file+olp "Emacs.org" "Questions") "* %?\n") ("ep" "Package" entry (file+olp "Emacs.org" "Packages") "* %?\n") ))
-- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>