From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Re: Update of orgmode broke my setup Date: Thu, 03 Jul 2008 11:54:34 -0400 Message-ID: <9050.1215100474@alphaville.zko.hp.com> References: <20080703104618.2a2880da@renner> <20080703133304.75acb066@renner> Reply-To: nicholas.dokos@hp.com Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KERAU-0000dY-Fg for emacs-orgmode@gnu.org; Thu, 03 Jul 2008 11:56:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KERAS-0000cK-SN for emacs-orgmode@gnu.org; Thu, 03 Jul 2008 11:56:22 -0400 Received: from [199.232.76.173] (port=47496 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KERAS-0000cA-Mh for emacs-orgmode@gnu.org; Thu, 03 Jul 2008 11:56:20 -0400 Received: from g1t0029.austin.hp.com ([15.216.28.36]:37705) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KERAS-0000TQ-6z for emacs-orgmode@gnu.org; Thu, 03 Jul 2008 11:56:20 -0400 In-Reply-To: Message from Detlef Steuer of "Thu, 03 Jul 2008 13:33:04 +0200." <20080703133304.75acb066@renner> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Detlef Steuer Cc: emacs-orgmode@gnu.org Detlef Steuer wrote: > On Thu, 3 Jul 2008 16:45:50 +0530 > Manish wrote: > > > On Thu, Jul 3, 2008 at 2:16 PM, Detlef Steuer wrote: > > > Hi, > > > > > > after upgrading my orgmode installation I get: > > > ---------- > > > An error has occurred while loading `/home/steuer/.emacs': > > > > > > Symbol's value as variable is void: org-agenda-mode-map > > > > > > To ensure normal operation, you should investigate and remove the > > > cause of the error in your initialization file. Start Emacs with > > > the `--debug-init' option to view a complete error backtrace. > > > --------- > > > > > > I'm using a setup followig Wiegley > > > http://www.newartisans.com/blog_files/org.mode.day.planner.php > > > > > > The effect is, that agenda commands like C-a a don't work any more. > > > > > > Ok, it must be simple, but I can't find it at the moment. > > > Any hint? > > > > Could you add details of your setup? Emacs version, previous and > > new versions of Org, using git or release versions etc. > ... > > (eval-after-load "org" > '(progn > (define-prefix-command 'org-todo-state-map) > (define-key org-mode-map "\C-cx" 'org-todo-state-map) > (define-key org-todo-state-map "t" > #'(lambda nil (interactive) (org-todo "TODO"))) > (define-key org-todo-state-map "x" > #'(lambda nil (interactive) (org-todo "CANCELLED"))) > (define-key org-todo-state-map "d" > #'(lambda nil (interactive) (org-todo "DONE"))) > (define-key org-todo-state-map "f" > #'(lambda nil (interactive) (org-todo "DEFERRED"))) > (define-key org-todo-state-map "l" > #'(lambda nil (interactive) (org-todo "DELEGATED"))) > (define-key org-todo-state-map "s" > #'(lambda nil (interactive) (org-todo "STARTED"))) > (define-key org-todo-state-map "w" > #'(lambda nil (interactive) (org-todo "WAITING"))) > ==> (define-key org-agenda-mode-map "\C-n" 'next-line) > gives error > ... It's probably because org-agenda-mode-map is not defined in org.el but in org-agenda.el so you'll need to split the eval-after-load into two pieces: (eval-after-load "org" '(progn (add-to-list 'org-file-apps '("py" . emacs)) (define-prefix-command 'org-todo-state-map) (define-key org-mode-map "\C-cx" 'org-todo-state-map) (define-key org-todo-state-map "x" #'(lambda nil (interactive) (org-todo "CANCELLED"))) etc. etc. ) and (eval-after-load "org-agenda" '(progn (define-key org-agenda-mode-map "\C-n" 'next-line) etc. etc. ) HTH, Nick