emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: Detlef Steuer <steuer@unibwh.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: Re: Update of orgmode broke my setup
Date: Thu, 03 Jul 2008 11:54:34 -0400	[thread overview]
Message-ID: <9050.1215100474@alphaville.zko.hp.com> (raw)
In-Reply-To: Message from Detlef Steuer <steuer@unibwh.de> of "Thu, 03 Jul 2008 13:33:04 +0200." <20080703133304.75acb066@renner>

Detlef Steuer <steuer@unibwh.de> wrote:

> On Thu, 3 Jul 2008 16:45:50 +0530
> Manish <mailtomanish.sharma@gmail.com> 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

  parent reply	other threads:[~2008-07-03 15:56 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-03  8:46 Update of orgmode broke my setup Detlef Steuer
2008-07-03 11:15 ` Manish
2008-07-03 11:33   ` Detlef Steuer
2008-07-03 13:42     ` Manish
2008-07-03 15:42     ` Carsten Dominik
2008-07-03 18:04       ` Manish
2008-07-03 18:07         ` Carsten Dominik
2008-07-03 15:54     ` Nick Dokos [this message]
2008-07-04  6:57       ` Detlef Steuer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9050.1215100474@alphaville.zko.hp.com \
    --to=nicholas.dokos@hp.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=steuer@unibwh.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).