* BUG? starting org-agenda-list from .emacs
@ 2008-01-20 18:11 Bernt Hansen
2008-01-21 7:20 ` Carsten Dominik
0 siblings, 1 reply; 3+ messages in thread
From: Bernt Hansen @ 2008-01-20 18:11 UTC (permalink / raw)
To: emacs-orgmode
Carsten,
I live in the agenda view. I'm always wanting to look at that as the
first thing I do when I start Emacs.
If I add (org-agenda-list) as the last thing in my .emacs I get an error
when I try to switch to day view the very first time. Am I missing some
other setup or is this a bug?
If I don't call org-agenda-list from .emacs and display the agenda
normally via C-a a a then d it works fine every time so I think some
initial setup is missing when going straight to org-agenda-list at
startup.
Here's the error I get:
,----
| org-agenda-check-type: Not allowed in nil-type agenda buffers
`----
The second time I hit 'd' it works fine.
,----
| Rebuilding agenda buffer...done
| Switched to day view
`----
,----[ minimal.emacs ]
| (setq inhibit-splash-screen t)
| (global-font-lock-mode t)
| (add-to-list 'load-path (expand-file-name "~/git/org-mode"))
| (add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
| (require 'org-install)
| (define-key global-map "\C-ca" 'org-agenda)
| (custom-set-variables
| '(org-agenda-files (quote ("~/org/test.org"))))
| (setq org-use-fast-todo-selection t)
|
| (org-agenda-list)
`----
,----[ test.org ]
| * one |
| SCHEDULED: <2008-01-20 Sun> |
| * two |
| SCHEDULED: <2008-01-19 Sat> |
| * three |
| SCHEDULED: <2008-01-17 Thu> |
| *** TODO One Two Three |
`----
| Key Sequence | Notes |
|--------------+----------------|
| d | Go to day view |
|--------------+----------------|
You know I can't live without org-mode anymore... My desk is clean and
my notes are all in org-mode :)
Thanks again!
Bernt
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: BUG? starting org-agenda-list from .emacs
2008-01-20 18:11 BUG? starting org-agenda-list from .emacs Bernt Hansen
@ 2008-01-21 7:20 ` Carsten Dominik
2008-01-21 14:28 ` Bernt Hansen
0 siblings, 1 reply; 3+ messages in thread
From: Carsten Dominik @ 2008-01-21 7:20 UTC (permalink / raw)
To: Bernt Hansen; +Cc: emacs-orgmode
Hi Bernt,
this happens because the command needs a variable that is set
by the post-command-hook in the agenda buffer. Normally you are
issuing a command to get to the buffer, so the hook is run. However,
in your case no command has been called yet.
As a work-around, just press d twice, or execute
any command, like a cursor motion first.
I will have this fixed in the next version, thanks for the report.
- Carsten
On Jan 20, 2008, at 7:11 PM, Bernt Hansen wrote:
> Carsten,
>
> I live in the agenda view. I'm always wanting to look at that as the
> first thing I do when I start Emacs.
>
> If I add (org-agenda-list) as the last thing in my .emacs I get an
> error
> when I try to switch to day view the very first time. Am I missing
> some
> other setup or is this a bug?
>
> If I don't call org-agenda-list from .emacs and display the agenda
> normally via C-a a a then d it works fine every time so I think some
> initial setup is missing when going straight to org-agenda-list at
> startup.
>
> Here's the error I get:
>
> ,----
> | org-agenda-check-type: Not allowed in nil-type agenda buffers
> `----
>
> The second time I hit 'd' it works fine.
>
> ,----
> | Rebuilding agenda buffer...done
> | Switched to day view
> `----
>
> ,----[ minimal.emacs ]
> | (setq inhibit-splash-screen t)
> | (global-font-lock-mode t)
> | (add-to-list 'load-path (expand-file-name "~/git/org-mode"))
> | (add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
> | (require 'org-install)
> | (define-key global-map "\C-ca" 'org-agenda)
> | (custom-set-variables
> | '(org-agenda-files (quote ("~/org/test.org"))))
> | (setq org-use-fast-todo-selection t)
> |
> | (org-agenda-list)
> `----
>
> ,----[ test.org ]
> | * one |
> | SCHEDULED: <2008-01-20 Sun> |
> | * two |
> | SCHEDULED: <2008-01-19 Sat> |
> | * three |
> | SCHEDULED: <2008-01-17 Thu> |
> | *** TODO One Two Three |
> `----
>
> | Key Sequence | Notes |
> |--------------+----------------|
> | d | Go to day view |
> |--------------+----------------|
>
> You know I can't live without org-mode anymore... My desk is clean
> and
> my notes are all in org-mode :)
>
> Thanks again!
>
> Bernt
>
>
>
>
> _______________________________________________
> 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] 3+ messages in thread
* Re: BUG? starting org-agenda-list from .emacs
2008-01-21 7:20 ` Carsten Dominik
@ 2008-01-21 14:28 ` Bernt Hansen
0 siblings, 0 replies; 3+ messages in thread
From: Bernt Hansen @ 2008-01-21 14:28 UTC (permalink / raw)
To: Carsten Dominik; +Cc: emacs-orgmode
Carsten Dominik <dominik@science.uva.nl> writes:
> this happens because the command needs a variable that is set
> by the post-command-hook in the agenda buffer. Normally you are
> issuing a command to get to the buffer, so the hook is run. However,
> in your case no command has been called yet.
>
> As a work-around, just press d twice, or execute
> any command, like a cursor motion first.
>
> I will have this fixed in the next version, thanks for the report.
Thanks. I've been using 'd' twice for a long time - I was just
wondering if this (potentially missing setup) is possibly the cause of
some of the other weird problems I've been seeing (like the font faces
issue that still hasn't been resolved -- I still can't reliably
reproduce this but it happens about once/day for me).
Regards,
Bernt
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-01-21 14:28 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-20 18:11 BUG? starting org-agenda-list from .emacs Bernt Hansen
2008-01-21 7:20 ` Carsten Dominik
2008-01-21 14:28 ` Bernt Hansen
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.