From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: BUG? starting org-agenda-list from .emacs Date: Sun, 20 Jan 2008 13:11:57 -0500 Message-ID: <87ejccl636.fsf@gollum.intra.norang.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JGeeU-00014H-GR for emacs-orgmode@gnu.org; Sun, 20 Jan 2008 13:12:14 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JGeeT-00013P-Qq for emacs-orgmode@gnu.org; Sun, 20 Jan 2008 13:12:13 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JGeeT-00013F-9Y for emacs-orgmode@gnu.org; Sun, 20 Jan 2008 13:12:13 -0500 Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JGeeT-0003BG-40 for emacs-orgmode@gnu.org; Sun, 20 Jan 2008 13:12:13 -0500 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JGeeL-00050w-4Y for emacs-orgmode@gnu.org; Sun, 20 Jan 2008 18:12:05 +0000 Received: from cpe000102d0fe75-cm0012256ecbde.cpe.net.cable.rogers.com ([99.239.148.180]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 20 Jan 2008 18:12:05 +0000 Received: from bernt by cpe000102d0fe75-cm0012256ecbde.cpe.net.cable.rogers.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 20 Jan 2008 18:12:05 +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 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