emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* problems invoking org-agenda
@ 2012-02-25  2:51 Peter Salazar
  2012-02-25  5:52 ` Nick Dokos
  0 siblings, 1 reply; 4+ messages in thread
From: Peter Salazar @ 2012-02-25  2:51 UTC (permalink / raw)
  To: emacs-orgmode

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

Maybe this is too esoteric for anyone to know, but I'm struggling and I
can't figure this out.

The time is Aquamacs 2.4. The place is org-mode 7.8.03. When I try to
invoke org-agenda (C-c a a --- i.e.  "Agenda for current week or day"), I
get the error message:

Args out of range: #(" work :        " 0 14 org-category "work" tags nil
org-highest-priority 65 or-lowest priority 67 time-of-day nil ...)), 0, 20

As far as I know I don't have any categories or priorities.

Has anyone seen this before?

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

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

* Re: problems invoking org-agenda
  2012-02-25  2:51 problems invoking org-agenda Peter Salazar
@ 2012-02-25  5:52 ` Nick Dokos
  2012-02-28 21:05   ` Peter Salazar
  0 siblings, 1 reply; 4+ messages in thread
From: Nick Dokos @ 2012-02-25  5:52 UTC (permalink / raw)
  To: Peter Salazar; +Cc: nicholas.dokos, emacs-orgmode

Peter Salazar <cycleofsong@gmail.com> wrote:

> Maybe this is too esoteric for anyone to know, but I'm struggling and I can't figure this out. 
> 
> The time is Aquamacs 2.4. The place is org-mode 7.8.03. When I try to invoke org-agenda (C-c a a ---
> i.e.  "Agenda for current week or day"), I get the error message: 
> 
> Args out of range: #(" work :        " 0 14 org-category "work" tags nil org-highest-priority 65
> or-lowest priority 67 time-of-day nil ...)), 0, 20
> 
> As far as I know I don't have any categories or priorities. 
> 
> Has anyone seen this before? 
> 

It's probably because of a bad customization. To make sure,
run with a minimal .emacs that just loads org and *none*
of your customizations, something as simple as the following
(with obvious adjustments for your setup):

--8<---------------cut here---------------start------------->8---
;;; -*- mode: emacs-lisp -*-
;;; constant part
(add-to-list 'load-path (expand-file-name "~/src/emacs/org/org-mode/lisp"))
(add-to-list 'auto-mode-alist '("\\.\\(org\\|org_archive\\|txt\\)$" . org-mode))
(require 'org-install)

(setq debug-on-error t)
(setq debug-on-quit t)
(setq eval-expression-print-length nil)
(setq eval-expression-print-level nil)

(global-set-key "\C-cl" 'org-store-link)
(global-set-key "\C-ca" 'org-agenda)
--8<---------------cut here---------------end--------------->8---

Save this in your home directory as minimal.org.el and start emacs
with

	emacs -q -l ~/minimal.org.el

and then do C-c a a - do you get the error? Probably not.

The second thing you should do (this in your full emacs session,
where you get the error) is

M-x toggle-debug-on-error RET

and then C-c a a to trigger the error - but now it will produce a
backtrace which should tell you where the error occurred.  If you can't
figure it out, post the backtrace to the list.

Nick

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

* Re: problems invoking org-agenda
  2012-02-25  5:52 ` Nick Dokos
@ 2012-02-28 21:05   ` Peter Salazar
  2012-02-28 21:38     ` Nick Dokos
  0 siblings, 1 reply; 4+ messages in thread
From: Peter Salazar @ 2012-02-28 21:05 UTC (permalink / raw)
  To: nicholas.dokos, emacs-orgmode

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

Ah perfect! I followed your steps and tracked the problem down to one of my
agenda files. Not sure why org didn't like it, but when I removed that file
from my agenda list, it worked like a charm.

Thank you!


On Sat, Feb 25, 2012 at 12:52 AM, Nick Dokos <nicholas.dokos@hp.com> wrote:

> Peter Salazar <cycleofsong@gmail.com> wrote:
>
> > Maybe this is too esoteric for anyone to know, but I'm struggling and I
> can't figure this out.
> >
> > The time is Aquamacs 2.4. The place is org-mode 7.8.03. When I try to
> invoke org-agenda (C-c a a ---
> > i.e.  "Agenda for current week or day"), I get the error message:
> >
> > Args out of range: #(" work :        " 0 14 org-category "work" tags nil
> org-highest-priority 65
> > or-lowest priority 67 time-of-day nil ...)), 0, 20
> >
> > As far as I know I don't have any categories or priorities.
> >
> > Has anyone seen this before?
> >
>
> It's probably because of a bad customization. To make sure,
> run with a minimal .emacs that just loads org and *none*
> of your customizations, something as simple as the following
> (with obvious adjustments for your setup):
>
> --8<---------------cut here---------------start------------->8---
> ;;; -*- mode: emacs-lisp -*-
> ;;; constant part
> (add-to-list 'load-path (expand-file-name "~/src/emacs/org/org-mode/lisp"))
> (add-to-list 'auto-mode-alist '("\\.\\(org\\|org_archive\\|txt\\)$" .
> org-mode))
> (require 'org-install)
>
> (setq debug-on-error t)
> (setq debug-on-quit t)
> (setq eval-expression-print-length nil)
> (setq eval-expression-print-level nil)
>
> (global-set-key "\C-cl" 'org-store-link)
> (global-set-key "\C-ca" 'org-agenda)
> --8<---------------cut here---------------end--------------->8---
>
> Save this in your home directory as minimal.org.el and start emacs
> with
>
>        emacs -q -l ~/minimal.org.el
>
> and then do C-c a a - do you get the error? Probably not.
>
> The second thing you should do (this in your full emacs session,
> where you get the error) is
>
> M-x toggle-debug-on-error RET
>
> and then C-c a a to trigger the error - but now it will produce a
> backtrace which should tell you where the error occurred.  If you can't
> figure it out, post the backtrace to the list.
>
> Nick
>
>
>
>
>

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

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

* Re: problems invoking org-agenda
  2012-02-28 21:05   ` Peter Salazar
@ 2012-02-28 21:38     ` Nick Dokos
  0 siblings, 0 replies; 4+ messages in thread
From: Nick Dokos @ 2012-02-28 21:38 UTC (permalink / raw)
  To: Peter Salazar; +Cc: nicholas.dokos, emacs-orgmode

Peter Salazar <cycleofsong@gmail.com> wrote:

> Ah perfect! I followed your steps and tracked the problem down to one
> of my agenda files. Not sure why org didn't like it, but when I
> removed that file from my agenda list, it worked like a charm. 
> 

Did you get a backtrace? That (in combination with the file itself)
should tell pretty clearly why org didn't like it.

> Thank you!
> 

You are welcome!

Nick

> On Sat, Feb 25, 2012 at 12:52 AM, Nick Dokos <nicholas.dokos@hp.com> wrote:
> 
>     Peter Salazar <cycleofsong@gmail.com> wrote:
>    
>     > Maybe this is too esoteric for anyone to know, but I'm struggling and I can't figure this out. 
>     >
>     > The time is Aquamacs 2.4. The place is org-mode 7.8.03. When I try to invoke org-agenda (C-c a a ---
>     > i.e.  "Agenda for current week or day"), I get the error message: 
>     >
>     > Args out of range: #(" work :        " 0 14 org-category "work" tags nil org-highest-priority 65
>     > or-lowest priority 67 time-of-day nil ...)), 0, 20
>     >
>     > As far as I know I don't have any categories or priorities. 
>     >
>     > Has anyone seen this before? 
>     >
>    
>     It's probably because of a bad customization. To make sure,
>     run with a minimal .emacs that just loads org and *none*
>     of your customizations, something as simple as the following
>     (with obvious adjustments for your setup):
>    
>     --8<---------------cut here---------------start------------->8---
>     ;;; -*- mode: emacs-lisp -*-
>     ;;; constant part
>     (add-to-list 'load-path (expand-file-name "~/src/emacs/org/org-mode/lisp"))
>     (add-to-list 'auto-mode-alist '("\\.\\(org\\|org_archive\\|txt\\)$" . org-mode))
>     (require 'org-install)
>    
>     (setq debug-on-error t)
>     (setq debug-on-quit t)
>     (setq eval-expression-print-length nil)
>     (setq eval-expression-print-level nil)
>    
>     (global-set-key "\C-cl" 'org-store-link)
>     (global-set-key "\C-ca" 'org-agenda)
>     --8<---------------cut here---------------end--------------->8---
>    
>     Save this in your home directory as minimal.org.el and start emacs
>     with
>    
>            emacs -q -l ~/minimal.org.el
>    
>     and then do C-c a a - do you get the error? Probably not.
>    
>     The second thing you should do (this in your full emacs session,
>     where you get the error) is
>    
>     M-x toggle-debug-on-error RET
>    
>     and then C-c a a to trigger the error - but now it will produce a
>     backtrace which should tell you where the error occurred.  If you can't
>     figure it out, post the backtrace to the list.
>    
>     Nick
> 
> 
> ----------------------------------------------------
> Alternatives:
> 
> ----------------------------------------------------

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

end of thread, other threads:[~2012-02-28 21:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-25  2:51 problems invoking org-agenda Peter Salazar
2012-02-25  5:52 ` Nick Dokos
2012-02-28 21:05   ` Peter Salazar
2012-02-28 21:38     ` Nick Dokos

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