For the benefit of future archive-reading generations, I isolated the issue to a bug in the emacs head revision at the time I built it. Re-fetching and building fixed it. On Mon, Jan 9, 2012 at 20:17, Ido Magal wrote: > This is GNU Emacs 24.0.92.1 (i386-apple-darwin11.2.0, NS > apple-appkit-1138.23) > > I've reduced my .emacs to the following: > > ========================================= > (setq org-capture-templates > '(("t" "Task" entry (file+datetree "~/org/tasks.org") > "** next %?"))) > ========================================= > > ~/org/tasks.org may not exist for this to repro. It repros either way. > > > Repro steps: > > 1. M-x org-capture > > 2. enter anything > > 3. C-c C-c > > Result: > "byte-code: To bind the key M-DEL, use "\M-\d", not [M-DEL]" > > 4. C-c C-c again. > > Result: > "save-restriction: Wrong type argument: integer-or-marker-p, nil" > > 5. Kill the 'CAPTURE-tasks.org' buffer. (C-x k) > > 6. repeat steps 1-3 > Result: Success(!?) > > > > Thanks for investigating! > > > On Mon, Jan 9, 2012 at 02:57, Bastien wrote: > > Hi Ido, > > > > Ido Magal writes: > > > >> When I attempt to org-capture-finalize, I get > >> > >> Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p > nil) > >> org-capture-bookmark-last-stored-position() > >> org-capture-finalize(nil) > >> call-interactively(org-capture-finalize nil nil) > > > > I cannot (even try to) reproduce this. > > > > Please provide a complete and minimal example -- a test file > > and the relevant part of your configuration. > > > > Thanks, > > > > -- > > Bastien >