From mboxrd@z Thu Jan 1 00:00:00 1970 From: Felix Subject: Capture aborts after selecting template Date: Sat, 26 Nov 2011 10:42:52 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:45053) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RUFkr-00062v-9Y for emacs-orgmode@gnu.org; Sat, 26 Nov 2011 05:45:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RUFkp-0004LG-P8 for emacs-orgmode@gnu.org; Sat, 26 Nov 2011 05:45:09 -0500 Received: from lo.gmane.org ([80.91.229.12]:48491) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RUFkp-0004Ji-DC for emacs-orgmode@gnu.org; Sat, 26 Nov 2011 05:45:07 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RUFkm-0001fz-Mg for emacs-orgmode@gnu.org; Sat, 26 Nov 2011 11:45:05 +0100 Received: from host020.samsungtelecom.com ([host020.samsungtelecom.com]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 26 Nov 2011 11:45:04 +0100 Received: from felixfcaf by host020.samsungtelecom.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 26 Nov 2011 11:45:04 +0100 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: emacs-orgmode@gnu.org 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(# "~/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)