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 10:35:04 -0500 Message-ID: <87ty5qgamv.fsf@norang.ca> References: <87y5v3f4wq.fsf@norang.ca> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:39164) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RUKHW-0003sC-9G for emacs-orgmode@gnu.org; Sat, 26 Nov 2011 10:35:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RUKHV-00084b-5M for emacs-orgmode@gnu.org; Sat, 26 Nov 2011 10:35:10 -0500 Received: from mho-02-ewr.mailhop.org ([204.13.248.72]:64957) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RUKHV-00084S-0w for emacs-orgmode@gnu.org; Sat, 26 Nov 2011 10:35:09 -0500 In-Reply-To: (Felix's message of "Sat, 26 Nov 2011 14:34:57 +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: > Thanks, Bernt. The values are as shown below. Please suggest any changes. > > Sincerely, > Felix > > text-mode-hook's value is > (nil text-mode-hook-identify) > > outline-mode-hook's value is nil > > org-mode-hook is a variable defined in `org.el'. > Its value is > (#[nil "\300\301\302\303\304$\207" > [org-add-hook change-major-mode-hook org-show-block-all append local] > 5] > #[nil "\300\301\302\303\304$\207" > [org-add-hook change-major-mode-hook org-babel-show-result-all append local] > 5] > org-babel-result-hide-spec org-babel-hide-all-hashes) 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