From mboxrd@z Thu Jan 1 00:00:00 1970 From: Detlef Steuer Subject: Re: Update of orgmode broke my setup Date: Fri, 4 Jul 2008 08:57:31 +0200 Message-ID: <20080704085731.32d1e812@renner> References: <20080703104618.2a2880da@renner> <20080703133304.75acb066@renner> <9050.1215100474@alphaville.zko.hp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KEfEs-0005rP-C3 for emacs-orgmode@gnu.org; Fri, 04 Jul 2008 02:57:50 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KEfEq-0005qD-9s for emacs-orgmode@gnu.org; Fri, 04 Jul 2008 02:57:49 -0400 Received: from [199.232.76.173] (port=59115 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KEfEq-0005q8-23 for emacs-orgmode@gnu.org; Fri, 04 Jul 2008 02:57:48 -0400 Received: from mx20.gnu.org ([199.232.41.8]:32613) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KEfEp-0006Ql-D9 for emacs-orgmode@gnu.org; Fri, 04 Jul 2008 02:57:47 -0400 Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KEfEn-0003ra-W3 for emacs-orgmode@gnu.org; Fri, 04 Jul 2008 02:57:46 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KEfEk-00085A-Qy for emacs-orgmode@gnu.org; Fri, 04 Jul 2008 06:57:42 +0000 Received: from gaia.unibw-hamburg.de ([139.11.181.103]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 04 Jul 2008 06:57:42 +0000 Received: from steuer by gaia.unibw-hamburg.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 04 Jul 2008 06:57:42 +0000 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: emacs-orgmode@gnu.org Thank you all for the help! It's astonishing how great tools and great communities coincide. Detlef On Thu, 03 Jul 2008 11:54:34 -0400 Nick Dokos wrote: > 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 > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode >