Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See
https://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org mailing list. ------------------------------------------------------------------------ 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: (choice :value org-agenda-files (const :tag "All agenda files" org-agenda-files) (const :tag "Current buffer" nil) (function) (variable) (file)) I believe (file) should be (repeat (file)) since the docstring says: - a specification of the files to be considered, either a LIST OF FILES, or a symbol whose function or variable value will be used to retrieve a file name or a list of file names. If you use ‘org-agenda-files’ for that, all agenda files will be scanned for targets. Nil means consider headings in the current buffer. 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. 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. Emacs : GNU Emacs 30.1 (build 4, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0, Xaw scroll bars) of 2025-02-25 Package: Org mode version 9.7.11 (release_9.7.11 @ /usr/local/share/emacs/30.1/lisp/org/) current state: ============== (setq org-capture-templates-contexts '(("r" ((in-mode . "gnus-article-mode") (in-mode . "gnus-summary-mode")) ) ) org-special-ctrl-a/e t org-agenda-skip-scheduled-if-done t org-yank-image-file-name-function 'org-yank-image-autogen-filename org-persist-before-write-hook '(org-element--cache-persist-before-write) org-html-format-headline-function 'org-html-format-headline-default-function org-html-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"] org-pretty-entities t org-preview-latex-image-directory "~/.cache/ltximg/" org-log-into-drawer t org-refile-allow-creating-parent-nodes 'confirm org-directory "~/Notes" org-latex-format-inlinetask-function 'org-latex-format-inlinetask-default-function org-structure-template-alist '(("a" . "export ascii") ("c" . "center") ("C" . "comment") ("e" . "example") ("E" . "export") ("h" . "export html") ("l" . "export latex") ("q" . "quote") ("s" . "src") ("v" . "verse") ("thm" . "theorem") ("pf" . "proof") ("lem" . "lemma") ("cor" . "corollary") ("def" . "definition") ("rem" . "remark") ("exer" . "exercise") ("prop" . "proposition") ("el" . "src emacs-lisp")) org-speed-command-hook '(org-speed-command-activate org-babel-speed-command-activate) org-persist-after-read-hook '(org-element--cache-persist-after-read) org-confirm-elisp-link-function 'yes-or-no-p org-agenda-finalize-hook '(org-modern-agenda) org-latex-format-headline-function 'org-latex-format-headline-default-function org-latex-format-drawer-function #[514 "\207" [] 3 "\n\n(fn _ CONTENTS)"] org-export-async-init-file "~/.emacs.d/my-lisp/org-async-init.el" org-modern-mode-hook '(org-modern-mode-set-explicitly) org-mode-hook '(#[0 "\301\211\207" [imenu-create-index-function org-imenu-get-tree] 2] #[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-fold-show-all append local] 5] #[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-babel-show-result-all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes echo-area-tooltips add-pretty-entities-hook org-tweak-syntax-table turn-on-auto-fill ediff-with-org-show-all turn-on-org-cdlatex beginend-org-mode) org-hide-emphasis-markers t org-use-speed-commands t org-hide-leading-stars t 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") ) outline-mode-hook '(beginend-outline-mode) org-refile-targets '((nil :maxlevel . 2) (("~/Orgzly/Tasks.org" "~/Orgzly/Reference.org") :maxlevel . 1) (("~/Notes/Home.org" "~/Notes/Health.org") :maxlevel . 1) (("~/Notes/Work.org" "~/Notes/Notes.org" "~/Notes/Math.org") :maxlevel . 2) ) org-confirm-shell-link-function 'yes-or-no-p org-odt-format-headline-function 'org-odt-format-headline-default-function org-archive-hook '(org-attach-archive-delete-maybe) org-metaup-hook '(org-babel-load-in-session-maybe) org-occur-hook '(org-first-headline-recenter) org-agenda-skip-timestamp-if-done t org-ellipsis "…" org-entities-user '(("newline" "\\newline" nil "<br>" "\n" "\n" "⏎")) org-html-format-inlinetask-function 'org-html-format-inlinetask-default-function org-modern-star 'replace org-confirm-babel-evaluate nil org-ascii-format-drawer-function #[771 "\207" [] 4 "\n\n(fn NAME CONTENTS WIDTH)"] org-link-from-user-regexp "\\<omar@oficina\\>\\|\\<Omar Antolin Camarena\\>" org-bibtex-headline-format-function 'org-bibtex-headline-format-default org-export-with-smart-quotes t org-link-parameters '(("org-ql-search" :follow org-ql-view--link-follow :store org-ql-view--link-store) ("eww" :follow org-eww-open :store org-eww-store-link) ("rmail" :follow org-rmail-open :store org-rmail-store-link) ("mhe" :follow org-mhe-open :store org-mhe-store-link) ("irc" :follow org-irc-visit :store org-irc-store-link :export org-irc-export) ("info" :follow org-info-open :export org-info-export :store org-info-store-link :insert-description org-info-description-as-command) ("gnus" :follow org-gnus-open :store org-gnus-store-link) ("docview" :follow org-docview-open :export org-docview-export :store org-docview-store-link) ("bibtex" :follow org-bibtex-open :store org-bibtex-store-link) ("bbdb" :follow org-bbdb-open :export org-bbdb-export :complete org-bbdb-complete-link :store org-bbdb-store-link) ("w3m" :store org-w3m-store-link) ("doi" :follow org-link-doi-open :export org-link-doi-export) ("arXiv" :face org-link :follow #[514 "\302\301\"\211\205 \303\300\304\305\"\"\211\205\203 \306!\207\307!\207" ["https://arxiv.org/abs/%s" "^\\(.*?\\)\\(?:/\\(.*\\)\\)?$" string-match format match-string 1 eww browse-url] 8 "\n\n(fn PATH IN-EMACS)"] :export #[771 "\211\304>\205T\305\303\"\205T\306\307\267\202 \310\202 \311\202 \312\306\302\313\314\"\"\206S\306\315\267\2028\316\2029\317\2029\312\306\313\320\n\"\203F\300\202G\301\313\314 \"\313\320\f\"#\"#\207" ["arXiv:%s [%s]" "arXiv:%s" "https://arxiv.org/abs/%s" "^\\(.*?\\)\\(?:/\\(.*\\)\\)?$" (latex html) string-match format #s(hash-table test eq purecopy t data (beamer 20 latex 20 html 24) ) "\\href{%s}{%s}" "<a href=\"%s\">%s</a>" nil match-string 1 #s(hash-table test eq purecopy t data (beamer 48 latex 48 html 52) ) "\\texttt{%s}" "<code>%s</code>" 2] 14 "\n\n(fn PATH DESCRIPTION BACKEND)"] ) ("attachment" :follow org-attach-follow :complete org-attach-complete-link) ("id" :follow org-id-open :store org-id-store-link-maybe) ("org-title" :store store-org-title-link) ("file+sys") ("file+emacs") ("geo" :follow #[(link _) ((osm (concat "geo:" link))) (t)] :store #[nil ((if (eq major-mode 'osm-mode) (progn (apply 'org-link-store-props (osm--org-link-props)) ) ) ) (t)] ) ("shell" :follow org-link--open-shell) ("news" :follow #[514 "\301\300\302Q\"\207" ["news" browse-url ":"] 6 "\n\n(fn URL ARG)"] ) ("mailto" :follow #[514 "\301\300\302Q\"\207" ["mailto" browse-url ":"] 6 "\n\n(fn URL ARG)"] ) ("https" :follow #[514 "\301\300\302Q\"\207" ["https" browse-url ":"] 6 "\n\n(fn URL ARG)"] ) ("http" :follow #[514 "\301\300\302Q\"\207" ["http" browse-url ":"] 6 "\n\n(fn URL ARG)"] ) ("ftp" :follow #[514 "\301\300\302Q\"\207" ["ftp" browse-url ":"] 6 "\n\n(fn URL ARG)"] ) ("help" :follow org-link--open-help :store org-link--store-help) ("file" :complete org-link-complete-file) ("elisp" :follow org-link--open-elisp)) org-ql-find-goto-hook '(org-show-entry org-reveal) org-agenda-use-time-grid nil org-refile-use-outline-path 'file org-cycle-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-agenda-block-separator 61 org-todo-keywords '((sequence "TODO" "|" "DONE" "NOPE") (sequence "WAIT(@)")) org-stuck-projects '("+project/-DONE" ("TODO") nil "") org-agenda-before-write-hook '(org-agenda-add-entry-text) org-metadown-hook '(org-babel-pop-to-session-maybe) org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-sort-function 'string-collate-lessp org--warnings nil org-babel-pre-tangle-hook '(save-buffer) org-publish-project-alist '(("website" :base-directory "~/Website/" :base-extension "org" :style-sheet "~/Website/website.css" :publishing-directory "~/Website/" :recursive t :publishing-function org-html-publish-to-html-with-css :section-numbers nil :author "Omar Antolín Camarena" :email "o...@matem.unam.mx" :language "en" :html-footnotes-section "<div id=\"footnotes\"><hr><!--%s--><div id=\"text-footnotes\">\n%s\n</div></div>" :html-postamble "<p class=\"author\">— <a href=\"http://www.matem.unam.mx/~omar\">%a</a></p>" :html-link-home "http://www.matem.unam.mx/~omar" :html-home/up-format "<div id=\"org-div-home-and-up\"><!-- discard up %s --> <a href=\"%s\"> HOME </a></div>") ) org-agenda-current-time-string "now - - - - - - - - - - - - - - - - - - - - - - - - -" org-highlight-latex-and-related '(latex script entities) org-tags-column 0 org-export-before-parsing-hook '(org-attach-expand-links) org-link-shell-confirm-function 'yes-or-no-p org-cycle-emulate-tab 'whitestart org-modern-checkbox '((88 . "☑") (45 . #("☐–" 0 2 (composition ((2))))) (32 . "☐")) org-fold-core-isearch-open-function 'org-fold-core--isearch-reveal org-agenda-time-grid '((daily today require-timed) (800 1000 1200 1400 1600 1800 2000) "......" "----------------") org-ql-completing-read-snippet-function 'org-ql-completing-read--snippet-simple org-tags-exclude-from-inheritance '("project") outline-isearch-open-invisible-function 'outline-isearch-open-invisible org-latex-classes '(("letter" "\\documentclass{letter}\n[NO-DEFAULT-PACKAGES]\n[NO-PACKAGES]\n\\usepackage[utf8]{inputenc}\n\\usepackage[english]{babel}\n\\usepackage{fourier}\n\\usepackage{graphicx}\n\\usepackage{fancyhdr}\n\\usepackage{hyperref}\n\\usepackage[margin=2.9cm,top=2in,headheight=3cm,headsep=0pt]{geometry}\n\\graphicspath{{/home/omar/Letters/images/}}\n\\name{Omar Antolín Camarena}\n\\address{Institute of Mathematics, UNAM, Mexico City}\n\\signature{\\unskip Omar Antolín Camarena\\\\\n Assistant Professor\\\\Institute of Mathematics, UNAM \\\\\n \\href{mailto:o...@matem.unam.mx}{o...@matem.unam.mx}}\n\\fancypagestyle{empty}{\\fancyhf{}\n \\fancyhead[L]{\\includegraphics[height=1in]{logo-imate.png}}\n \\fancyhead[R]{\\includegraphics[height=1in]{escudo-unam.png}}}\n\\let\\tableofcontents=\\relax\n\\newcommand{\\section}[1]{\\medskip{\\large\\noindent\\textbf{#1}}}\n[EXTRA]" ("\\begin{letter}{%s}" "\\closing{Sincerely,\\\\\n\\hspace{-1cm}\\includegraphics[height=1cm]{firma-omar}}\n\\end{letter}") ("\\opening{%s}") ("\\section{%s}")) ("carta" "\\documentclass{letter}\n[NO-DEFAULT-PACKAGES]\n[NO-PACKAGES]\n\\usepackage[utf8]{inputenc}\n\\usepackage[spanish]{babel}\n\\usepackage{fourier}\n\\usepackage{graphicx}\n\\usepackage{fancyhdr}\n\\usepackage{hyperref}\n\\usepackage[margin=2.9cm,top=2in,headheight=3cm,headsep=0pt]{geometry}\n\\graphicspath{{/home/omar/Letters/images/}}\n\\name{Omar Antolín Camarena}\n\\address{Instituto de Matemáticas, UNAM, Ciudad Universitaria\\\\\nCiudad de México}\n\\signature{\\unskip Omar Antolín Camarena\\\\\n Investigador Titular A\\\\Instituto de Matemáticas, UNAM \\\\\n \\href{mailto:o...@matem.unam.mx}{o...@matem.unam.mx}}\n\\fancypagestyle{empty}{\\fancyhf{}\n \\fancyhead[L]{\\includegraphics[height=1in]{logo-imate.png}}\n \\fancyhead[R]{\\includegraphics[height=1in]{escudo-unam.png}}}\n\\let\\tableofcontents=\\relax\n\\newcommand{\\section}[1]{\\medskip{\\large\\noindent\\textbf{#1}}}\n[EXTRA]" ("\\begin{letter}{%s}" "\\closing{Atentamente,\\\\\n\\hspace{-1cm}\\includegraphics[height=1cm]{firma-omar}}\n\\end{letter}") ("\\opening{%s}") ("\\section{%s}")) ("article" "\\documentclass[11pt]{article}" ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\subparagraph{%s}" . "\\subparagraph*{%s}")) ("report" "\\documentclass[11pt]{report}" ("\\part{%s}" . "\\part*{%s}") ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}")) ("book" "\\documentclass[11pt]{book}" ("\\part{%s}" . "\\part*{%s}") ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}")) ) org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-agenda-mode-hook '(beginend-org-agenda-mode) org-agenda-loop-over-headlines-in-active-region nil org-agenda-start-on-weekday nil org-auto-align-tags nil org-latex-packages-alist '(("AUTO" "babel" t ("pdflatex"))) org-agenda-files '("~/Orgzly/Tasks.org" "~/Notes/Daily.org" "~/Notes/Work.org" "~/Notes/Math.org" "~/Notes/Home.org" "~/Notes/Health.org") org-link-elisp-confirm-function 'yes-or-no-p org-outline-path-complete-in-steps nil org-startup-indented t org-odt-format-inlinetask-function 'org-odt-format-inlinetask-default-function org-src-lang-modes '(("latex-macros" . latex) ("inline-js" . javascript) ("beamer" . LaTeX) ("latex" . LaTeX) ("C" . c) ("C++" . c++) ("asymptote" . asy) ("beamer" . latex) ("calc" . fundamental) ("cpp" . c++) ("ditaa" . artist) ("desktop" . conf-desktop) ("dot" . fundamental) ("elisp" . emacs-lisp) ("ocaml" . tuareg) ("screen" . shell-script) ("sqlite" . sql) ("toml" . conf-toml) ("shell" . sh) ("ash" . sh) ("sh" . sh) ("bash" . sh) ("jsh" . sh) ("bash2" . sh) ("dash" . sh) ("dtksh" . sh) ("ksh" . sh) ("es" . sh) ("rc" . sh) ("itcsh" . sh) ("tcsh" . sh) ("jcsh" . sh) ("csh" . sh) ("ksh88" . sh) ("oash" . sh) ("pdksh" . sh) ("mksh" . sh) ("posix" . sh) ("wksh" . sh) ("wsh" . sh) ("zsh" . sh) ("rpm" . sh)) org-agenda-skip-deadline-if-done t org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-show-empty-lines org-cycle-optimize-window-after-visibility-change org-cycle-display-inline-images) org-persist-before-read-hook '(org-element--cache-persist-before-read) org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default org-odt-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"] )