From mboxrd@z Thu Jan 1 00:00:00 1970 From: Manish Subject: Re: Re: Update of orgmode broke my setup Date: Thu, 3 Jul 2008 19:12:09 +0530 Message-ID: References: <20080703104618.2a2880da@renner> <20080703133304.75acb066@renner> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KEP4m-0007iu-GT for emacs-orgmode@gnu.org; Thu, 03 Jul 2008 09:42:20 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KEP4j-0007ii-Rg for emacs-orgmode@gnu.org; Thu, 03 Jul 2008 09:42:20 -0400 Received: from [199.232.76.173] (port=49811 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KEP4j-0007if-LT for emacs-orgmode@gnu.org; Thu, 03 Jul 2008 09:42:17 -0400 Received: from rv-out-0708.google.com ([209.85.198.248]:14112) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KEP4i-0008ET-6o for emacs-orgmode@gnu.org; Thu, 03 Jul 2008 09:42:17 -0400 Received: by rv-out-0708.google.com with SMTP id k29so966318rvb.6 for ; Thu, 03 Jul 2008 06:42:09 -0700 (PDT) In-Reply-To: <20080703133304.75acb066@renner> Content-Disposition: inline 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 On Thu, Jul 3, 2008 at 5:03 PM, 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. > > emacs --version > GNU Emacs 22.1.1 > Copyright (C) 2007 Free Software Foundation, Inc. > GNU Emacs comes with ABSOLUTELY NO WARRANTY. > You may redistribute copies of Emacs > under the terms of the GNU General Public License. > For more information about these matters, see the file named COPYING. > > git before update some 6.04 > git after 6.05c and todays git pull . > > relevant part of .emacs (unchanged): I just updated from git repo, no issues here (WinXP, Emacs22.2, Org at commit 9919ff82a0f2952d6f36e13f242e6c23d96da14c). It may not resolve your error but you may consider the suggestion below. > (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 I think an (easier and cleaner, I think) alternate way to achieve this would be something like this: (setq org-use-fast-todo-selection t) (setq org-todo-keywords '((sequence "TODO(t)" "STARTED(s)" "WAITING(w)" "DELEGATED(l)" "|" "DONE(d)" "DEFERRED(f)"))) Fast selection shortcuts this way can also record the time of state change and/or take a note at the time of switching states. http://orgmode.org/manual/Tracking-TODO-state-changes.html#Tracking-TODO-state-changes HTH, -- Manish