Felix Fernandes <felixf...@gmail.com> writes: >> It does not bother me as much as the following keyboard macro >> >> (fset 'jk >> [?\M-x ?o ?r ?g ?- ?c ?a ?p ?t ?u ?r ?e return ?t return ?\C-e ? ?j ?k >> ?\C-c ?\C-c]) >> >> that should invoke the following template: >> (setq org-capture-templates '(("t" "Todo" entry (file "~/org/j.org")))) >> > > If it helps to debug, here is the backtrace from M-x jk as defined above: > Debugger entered--Lisp error: (error "Capture abort: (wrong-type-argument > stringp (file:~/org/todo.org::*Tasks Tasks))") > signal(error ("Capture abort: (wrong-type-argument stringp > (file:~/org/todo.org::*Tasks Tasks))")) > error("Capture abort: %s" (wrong-type-argument stringp > ("file:~/org/todo.org::*Tasks" "Tasks"))) > byte-code("\301\302!\203\302!\210\300\304" [error get-buffer "*Capture*" > kill-buffer "Capture abort: %s"] 3) > org-capture(nil) > call-interactively(org-capture record nil) > command-execute(org-capture record) > execute-extended-command(nil "org-capture") > call-interactively(execute-extended-command nil nil) > command-execute(jj record) > execute-extended-command(nil "jj") > call-interactively(execute-extended-command nil nil)
That works for me. M-x jk <RET> produces ~/org/j.org: --8<---------------cut here---------------start------------->8--- * jk --8<---------------cut here---------------end--------------->8--- The backtrace is not very useful as is because of the byte code. You might try to reproduce with uncompiled code and see if it is any clearer. Nick