From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: Capture aborts after selecting template Date: Sat, 26 Nov 2011 07:24:05 -0500 Message-ID: <87y5v3f4wq.fsf@norang.ca> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:47438) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RUHIp-0003bf-5U for emacs-orgmode@gnu.org; Sat, 26 Nov 2011 07:24:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RUHIn-0004MP-Tr for emacs-orgmode@gnu.org; Sat, 26 Nov 2011 07:24:19 -0500 Received: from mho-03-ewr.mailhop.org ([204.13.248.66]:42782 helo=mho-01-ewr.mailhop.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RUHIn-0004Lh-S5 for emacs-orgmode@gnu.org; Sat, 26 Nov 2011 07:24:17 -0500 In-Reply-To: (Felix's message of "Sat, 26 Nov 2011 10:42:52 +0000 (UTC)") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Felix Cc: emacs-orgmode@gnu.org Felix writes: > 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)) Hi Felix, What are your values for text-mode-hook, outline-mode-hook, and org-mode-hook? >From your backtrace it looks like invoking one of these hooks is the problem. Regards, Bernt