* Update of orgmode broke my setup
@ 2008-07-03 8:46 Detlef Steuer
2008-07-03 11:15 ` Manish
0 siblings, 1 reply; 9+ messages in thread
From: Detlef Steuer @ 2008-07-03 8:46 UTC (permalink / raw
To: emacs-orgmode
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?
Detlef
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Update of orgmode broke my setup
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
0 siblings, 1 reply; 9+ messages in thread
From: Manish @ 2008-07-03 11:15 UTC (permalink / raw
To: Detlef Steuer; +Cc: emacs-orgmode
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.
-- Manish
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Update of orgmode broke my setup
2008-07-03 11:15 ` Manish
@ 2008-07-03 11:33 ` Detlef Steuer
2008-07-03 13:42 ` Manish
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: Detlef Steuer @ 2008-07-03 11:33 UTC (permalink / raw
To: emacs-orgmode
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.
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):
;;;; Org Mode ;;;
(require 'org-install)
(setq org-log-done t)
;; The following lines are always needed. Choose your own keys.
(add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode))
(global-set-key "\C-cl" 'org-store-link)
(global-set-key "\C-ca" 'org-agenda)
(add-hook 'org-mode-hook 'turn-on-font-lock) ; org-mode buffers only
;; remind mode
(add-to-list 'load-path "~/.emacs.d/remind")
(require 'remind-conf-mode)
;; remember mode
(add-to-list 'load-path "~/.emacs.d/remember")
(require 'remember)
(org-remember-insinuate)
(setq org-directory "~/.pim/")
(setq org-default-notes-file (concat org-directory "/.pim/notes.org"))
(define-key global-map "\C-cr" 'org-remember)
;; from Wiegley's article
;; (require 'org-install)
(add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
(define-key mode-specific-map [?a] 'org-agenda)
(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
(define-key org-agenda-keymap "\C-n" 'next-line)
(define-key org-agenda-mode-map "\C-p" 'previous-line)
(define-key org-agenda-keymap "\C-p" 'previous-line)))
(require 'remember)
(add-hook 'remember-mode-hook 'org-remember-apply-template)
(define-key global-map [(control meta ?r)] 'remember)
(custom-set-variables
'(org-agenda-files (quote ("~/.pim/todo.org" "~/.pim/remindout.org")))
'(org-default-notes-file "~/.pim/notes.org")
'(org-agenda-ndays 7)
'(org-deadline-warning-days 14)
'(org-agenda-show-all-dates t)
'(org-agenda-skip-deadline-if-done t)
'(org-agenda-skip-scheduled-if-done t)
'(org-agenda-start-on-weekday nil)
'(org-reverse-note-order t)
'(org-fast-tag-selection-single-key (quote expert))
'(org-agenda-custom-commands
(quote (("d" todo "DELEGATED" nil)
("c" todo "DONE|DEFERRED|CANCELLED" nil)
("w" todo "WAITING" nil)
("W" agenda "" ((org-agenda-ndays 21)))
("A" agenda ""
((org-agenda-skip-function
(lambda nil
(org-agenda-skip-entry-if (quote notregexp) "\\=.*\\[#A\\]")))
(org-agenda-ndays 1)
(org-agenda-overriding-header "Today's Priority #A tasks: ")))
("u" alltodo ""
((org-agenda-skip-function
(lambda nil
(org-agenda-skip-entry-if (quote scheduled) (quote deadline)
(quote regexp) "<[^>\n]+>")))
(org-agenda-overriding-header "Unscheduled TODO entries: "))))))
'(org-remember-store-without-prompt t)
'(org-remember-templates
(quote ((116 "* TODO %?\n %u" "~/.pim/todo.org" "Inbox")
(110 "* %u %?" "~/.pim/notes.org" "Notes"))))
'(remember-annotation-functions (quote (org-remember-annotation)))
'(remember-handler-functions (quote (org-remember-handler))))
--Detlef
>
> -- Manish
>
>
> _______________________________________________
> 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
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Re: Update of orgmode broke my setup
2008-07-03 11:33 ` Detlef Steuer
@ 2008-07-03 13:42 ` Manish
2008-07-03 15:42 ` Carsten Dominik
2008-07-03 15:54 ` Nick Dokos
2 siblings, 0 replies; 9+ messages in thread
From: Manish @ 2008-07-03 13:42 UTC (permalink / raw
To: Detlef Steuer; +Cc: emacs-orgmode
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
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Re: Update of orgmode broke my setup
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 15:54 ` Nick Dokos
2 siblings, 1 reply; 9+ messages in thread
From: Carsten Dominik @ 2008-07-03 15:42 UTC (permalink / raw
To: Detlef Steuer; +Cc: emacs-orgmode
On Jul 3, 2008, at 4:33 AM, Detlef Steuer wrote:
> (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
Yes. The agenda mode map is not known before org-agenda is loaded.
You need to wrap this into eval-after-load "org-agenda", of do this in
org-agenda-mode-hook.
- Carsten
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Re: Update of orgmode broke my setup
2008-07-03 11:33 ` Detlef Steuer
2008-07-03 13:42 ` Manish
2008-07-03 15:42 ` Carsten Dominik
@ 2008-07-03 15:54 ` Nick Dokos
2008-07-04 6:57 ` Detlef Steuer
2 siblings, 1 reply; 9+ messages in thread
From: Nick Dokos @ 2008-07-03 15:54 UTC (permalink / raw
To: Detlef Steuer; +Cc: emacs-orgmode
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
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Re: Update of orgmode broke my setup
2008-07-03 15:42 ` Carsten Dominik
@ 2008-07-03 18:04 ` Manish
2008-07-03 18:07 ` Carsten Dominik
0 siblings, 1 reply; 9+ messages in thread
From: Manish @ 2008-07-03 18:04 UTC (permalink / raw
To: Carsten Dominik; +Cc: Detlef Steuer, emacs-orgmode
On Thu, Jul 3, 2008 at 9:12 PM, Carsten Dominik wrote:
[snip]
> Yes. The agenda mode map is not known before org-agenda is
> loaded. You need to wrap this into eval-after-load
> "org-agenda", of do this in org-agenda-mode-hook.
Out of curiousity, I wonder why should OP see the error now on
upgrading from 6.04 to HEAD? I think Org was split into multiple
files quite a while ago.
-- Manish
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Re: Update of orgmode broke my setup
2008-07-03 18:04 ` Manish
@ 2008-07-03 18:07 ` Carsten Dominik
0 siblings, 0 replies; 9+ messages in thread
From: Carsten Dominik @ 2008-07-03 18:07 UTC (permalink / raw
To: Manish; +Cc: Detlef Steuer, emacs-orgmode
On Jul 3, 2008, at 11:04 AM, Manish wrote:
> On Thu, Jul 3, 2008 at 9:12 PM, Carsten Dominik wrote:
> [snip]
>> Yes. The agenda mode map is not known before org-agenda is
>> loaded. You need to wrap this into eval-after-load
>> "org-agenda", of do this in org-agenda-mode-hook.
>
> Out of curiousity, I wonder why should OP see the error now on
> upgrading from 6.04 to HEAD? I think Org was split into multiple
> files quite a while ago.
No idea.
- Carsten
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Update of orgmode broke my setup
2008-07-03 15:54 ` Nick Dokos
@ 2008-07-04 6:57 ` Detlef Steuer
0 siblings, 0 replies; 9+ messages in thread
From: Detlef Steuer @ 2008-07-04 6:57 UTC (permalink / raw
To: emacs-orgmode
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 <nicholas.dokos@hp.com> wrote:
> 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
>
>
> _______________________________________________
> 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
>
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2008-07-04 6:57 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2008-07-04 6:57 ` Detlef Steuer
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.