emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [ERROR] if: Agenda file s not in `org-mode'
@ 2011-11-29 17:39 Marcelo de Moraes Serpa
  2011-11-29 17:51 ` Bernt Hansen
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Marcelo de Moraes Serpa @ 2011-11-29 17:39 UTC (permalink / raw)
  To: Org Mode

[-- Attachment #1: Type: text/plain, Size: 336 bytes --]

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.

[-- Attachment #2: Type: text/html, Size: 465 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ERROR] if: Agenda file s not in `org-mode'
  2011-11-29 17:39 [ERROR] if: Agenda file s not in `org-mode' Marcelo de Moraes Serpa
@ 2011-11-29 17:51 ` Bernt Hansen
  2011-11-29 18:13 ` Nick Dokos
  2011-11-29 18:36 ` Carsten Dominik
  2 siblings, 0 replies; 5+ messages in thread
From: Bernt Hansen @ 2011-11-29 17:51 UTC (permalink / raw)
  To: Marcelo de Moraes Serpa; +Cc: Org Mode

Marcelo de Moraes Serpa <celoserpa@gmail.com> 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ERROR] if: Agenda file s not in `org-mode'
  2011-11-29 17:39 [ERROR] if: Agenda file s not in `org-mode' Marcelo de Moraes Serpa
  2011-11-29 17:51 ` Bernt Hansen
@ 2011-11-29 18:13 ` Nick Dokos
  2011-11-29 18:36 ` Carsten Dominik
  2 siblings, 0 replies; 5+ messages in thread
From: Nick Dokos @ 2011-11-29 18:13 UTC (permalink / raw)
  To: Marcelo de Moraes Serpa; +Cc: nicholas.dokos, Org Mode

Marcelo de Moraes Serpa <celoserpa@gmail.com> wrote:


> 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?
> 

You probably changed something (a typo of some sort: deleting or adding a quote,
or a paren) - who knows? A backtrace might help to narrow it down.

Nick

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ERROR] if: Agenda file s not in `org-mode'
  2011-11-29 17:39 [ERROR] if: Agenda file s not in `org-mode' Marcelo de Moraes Serpa
  2011-11-29 17:51 ` Bernt Hansen
  2011-11-29 18:13 ` Nick Dokos
@ 2011-11-29 18:36 ` Carsten Dominik
  2011-11-29 18:54   ` Marcelo de Moraes Serpa
  2 siblings, 1 reply; 5+ messages in thread
From: Carsten Dominik @ 2011-11-29 18:36 UTC (permalink / raw)
  To: Marcelo de Moraes Serpa; +Cc: Org Mode


On 29.11.2011, at 18:39, Marcelo de Moraes Serpa wrote:

> 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?

The first line of that file should look like

    -*- mode: org -*-


does it?

- Carsten

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ERROR] if: Agenda file s not in `org-mode'
  2011-11-29 18:36 ` Carsten Dominik
@ 2011-11-29 18:54   ` Marcelo de Moraes Serpa
  0 siblings, 0 replies; 5+ messages in thread
From: Marcelo de Moraes Serpa @ 2011-11-29 18:54 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: Org Mode

[-- Attachment #1: Type: text/plain, Size: 797 bytes --]

Thank you all,

The problem was that this file shouldn't actually be part of the agenda. If
I really wanted to, I'd have to add the mode to it, like Carnsten and Bernt
suggested.

Cheers,

Marcelo.

On Tue, Nov 29, 2011 at 12:36 PM, Carsten Dominik <carsten.dominik@gmail.com
> wrote:

>
> On 29.11.2011, at 18:39, Marcelo de Moraes Serpa wrote:
>
> > 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?
>
> The first line of that file should look like
>
>    -*- mode: org -*-
>
>
> does it?
>
> - Carsten

[-- Attachment #2: Type: text/html, Size: 1308 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-11-29 18:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-29 17:39 [ERROR] if: Agenda file s not in `org-mode' Marcelo de Moraes Serpa
2011-11-29 17:51 ` Bernt Hansen
2011-11-29 18:13 ` Nick Dokos
2011-11-29 18:36 ` Carsten Dominik
2011-11-29 18:54   ` Marcelo de Moraes Serpa

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).