From: Bernt Hansen <bernt@norang.ca>
To: Felix <felixfcaf@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Capture aborts after selecting template
Date: Sat, 26 Nov 2011 07:24:05 -0500 [thread overview]
Message-ID: <87y5v3f4wq.fsf@norang.ca> (raw)
In-Reply-To: <loom.20111126T112648-581@post.gmane.org> (Felix's message of "Sat, 26 Nov 2011 10:42:52 +0000 (UTC)")
Felix <felixfcaf@gmail.com> 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
next prev parent reply other threads:[~2011-11-26 12:24 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-26 10:42 Capture aborts after selecting template Felix
2011-11-26 12:24 ` Bernt Hansen [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y5v3f4wq.fsf@norang.ca \
--to=bernt@norang.ca \
--cc=emacs-orgmode@gnu.org \
--cc=felixfcaf@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).