From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: [ERROR] if: Agenda file s not in `org-mode' Date: Tue, 29 Nov 2011 12:51:35 -0500 Message-ID: <877h2i95qw.fsf@norang.ca> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:51492) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RVRqM-0006w6-1O for emacs-orgmode@gnu.org; Tue, 29 Nov 2011 12:51:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RVRqG-0005IF-EI for emacs-orgmode@gnu.org; Tue, 29 Nov 2011 12:51:46 -0500 Received: from mho-03-ewr.mailhop.org ([204.13.248.66]:26007 helo=mho-01-ewr.mailhop.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RVRqG-0005IB-CS for emacs-orgmode@gnu.org; Tue, 29 Nov 2011 12:51:40 -0500 In-Reply-To: (Marcelo de Moraes Serpa's message of "Tue, 29 Nov 2011 11:39:04 -0600") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Marcelo de Moraes Serpa Cc: Org Mode Marcelo de Moraes Serpa writes: > Hi guys, > > I added my gtd.org_archive to the agenda as a mean of getting a > timelog of tasks I complete. Recently, and I don't know why, it > started to throw the following error when I try to access any of the > agenda views: > > if: Agenda file ~/org/gtd.org_archive is not in `org-mode' > > Does anyone know why this happens? > > Thanks, > > Marcelo. I'm not sure why you are getting that but adding the archive to your agenda should _not_ be necessary. You can instruct the agenda to include archived files using 'V A' in the agenda. Does your auto-mode-alist specify .org_archive files for org-mode? I have the following: (add-to-list 'auto-mode-alist '("\\.\\(org\\|org_archive\\)$" . org-mode)) HTH, Bernt