emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Capture aborts after selecting template
@ 2011-11-26 10:42 Felix
  2011-11-26 12:24 ` Bernt Hansen
  0 siblings, 1 reply; 7+ messages in thread
From: Felix @ 2011-11-26 10:42 UTC (permalink / raw)
  To: emacs-orgmode

I am using GNU Emacs 23.1.1 with org-mode version 7.7. I want to use C-c c t to
capture a task and send it to ~/todo.org as defined in the org-capture-template
 below. On pressing C-c c, the Org Select buffer opens but when I hit t, I get
the error message "Capture abort: (void-function nil)" and nothing gets written
to todo.org. The relevant lines from my
.emacs and a backtrace from uncompiled code are shown below.  Please help me fix
this.  

.EMACS
(define-key global-map "\C-cc" 'org-capture)
(setq org-directory "~/")

(setq org-capture-templates
      (quote 
      (("t" "Todo" entry (file+headline "~/todo.org" "Tasks")
             "* TODO %?\n  %i\n  %a")
        ("j" "Journal" entry (file+datetree "~/journal.org")
             "* %?\nEntered on %U\n  %i\n  %a"))))

BACKTRACE (Although I followed the instructions carefully, my backtrace still
has some byte code that I couldn't paste here.)
Debugger entered--Lisp error: (void-function nil)
  nil()
  run-hooks(text-mode-hook outline-mode-hook org-mode-hook)
  apply(run-hooks (text-mode-hook outline-mode-hook org-mode-hook))
  run-mode-hooks(org-mode-hook)
  org-mode()
  set-auto-mode-0(org-mode nil)
  byte-code(..."*Ň" [modes mode --dolist-tail-- done keep-mode-if-same nil
functionp message "Ignoring unknown mode `%s'" t set-auto-mode-0 throw nop] 4)
  set-auto-mode()
  normal-mode(t)
  after-find-file(nil t)
  find-file-noselect-1(#<buffer todo.org> "~/todo.org" nil nil "~/todo.org"
(305483 2049))
  find-file-noselect("/home/vadmin/todo.org")
  org-capture-target-buffer("~/todo.org")
  org-capture-set-target-location()
  org-capture(nil)
  call-interactively(org-capture nil nil)

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

end of thread, other threads:[~2011-11-27  9:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-26 10:42 Capture aborts after selecting template Felix
2011-11-26 12:24 ` Bernt Hansen
2011-11-26 14:34   ` Felix
2011-11-26 15:35     ` Bernt Hansen
2011-11-26 15:56       ` Felix
2011-11-26 19:46         ` Bernt Hansen
2011-11-27  9:11           ` Felix

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