From mboxrd@z Thu Jan 1 00:00:00 1970 From: Felix Subject: Re: Capture aborts after selecting template Date: Sat, 26 Nov 2011 15:56:13 +0000 (UTC) Message-ID: References: <87y5v3f4wq.fsf@norang.ca> <87ty5qgamv.fsf@norang.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:37888) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RUKcC-00088S-CB for emacs-orgmode@gnu.org; Sat, 26 Nov 2011 10:56:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RUKcB-0002VY-9p for emacs-orgmode@gnu.org; Sat, 26 Nov 2011 10:56:32 -0500 Received: from lo.gmane.org ([80.91.229.12]:49640) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RUKcA-0002VU-V9 for emacs-orgmode@gnu.org; Sat, 26 Nov 2011 10:56:31 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RUKc9-0004Q1-LO for emacs-orgmode@gnu.org; Sat, 26 Nov 2011 16:56:29 +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 16:56:29 +0100 Received: from felixfcaf by host020.samsungtelecom.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 26 Nov 2011 16:56:29 +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 think the problem is your 'nil' entries. > > My text-mode-hook looks like this: > > --8<---------------cut here---------------start------------->8--- > text-mode-hook's value is > (text-mode-hook-identify) > --8<---------------cut here---------------end--------------->8--- > > I would remove the nil entries and see if that helps > > My org-mode-hook looks like this: > --8<---------------cut here---------------start------------->8--- > Value: > (org-clock-load > (lambda nil > (abbrev-mode 1)) > (lambda nil > (add-hook 'before-save-hook 'org-encrypt-entries nil t)) > (lambda nil > (org-add-hook 'change-major-mode-hook 'org-show-block-all 'append 'local)) > (lambda nil > (org-add-hook 'change-major-mode-hook 'org-babel-show-result-all 'append 'local)) > org-babel-result-hide-spec org-babel-hide-all-hashes turn-on-flyspell > (lambda nil > (org-defkey org-mode-map "[" 'undefined) > (org-defkey org-mode-map "]" 'undefined)) > (lambda nil > (local-set-key > (kbd "C-c M-o") > 'bh/mail-subtree))) > --8<---------------cut here---------------end--------------->8--- > > I'm on GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0) of 2010-12-11 on raven, modified by Debian > > Regards, > Bernt > > Please forgive the question, but how do you remove the nil entries? In .emacs I have (add-hook 'text-mode-hook (setq adaptive-fill-mode nil)) and so I'm not sure how text-mode-hook ends up with (nil (text-mode-hook-identify)). I tried (add-hook 'text-mode-hook (text-mode-hook-identify)) but this set text-mode-hook to (t text-mode-hook-identify) and when I tried C-c c t to enter a task, I get the message "Capture template 't': org-called-interactively-p" and nothing happens.