From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Salazar Subject: Re: problems invoking org-agenda Date: Tue, 28 Feb 2012 16:05:10 -0500 Message-ID: References: <20464.1330149123@alphaville> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0016e6d58f6f1730c004ba0c9526 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:52728) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S2UEq-0006XS-Kb for emacs-orgmode@gnu.org; Tue, 28 Feb 2012 16:05:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S2UET-00031e-O4 for emacs-orgmode@gnu.org; Tue, 28 Feb 2012 16:05:36 -0500 Received: from mail-we0-f169.google.com ([74.125.82.169]:61441) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S2UET-00030x-Bi for emacs-orgmode@gnu.org; Tue, 28 Feb 2012 16:05:13 -0500 Received: by werj55 with SMTP id j55so1889694wer.0 for ; Tue, 28 Feb 2012 13:05:10 -0800 (PST) In-Reply-To: <20464.1330149123@alphaville> 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: nicholas.dokos@hp.com, emacs-orgmode@gnu.org --0016e6d58f6f1730c004ba0c9526 Content-Type: text/plain; charset=ISO-8859-1 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 wrote: > Peter Salazar 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 > > > > > --0016e6d58f6f1730c004ba0c9526 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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.=A0

Th= ank you!


On Sat, Feb 25, 2012 at 12:52 AM, Nick D= okos <nichola= s.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.=A0
>
> 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. =A0"Agenda for current week or day"), I get the error m= essage:=A0
>
> Args out of range: #(" work : =A0 =A0 =A0 =A0" 0 14 org-cate= gory "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.=A0
>
> Has anyone seen this before?=A0
>

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-mod= e/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

=A0 =A0 =A0 =A0emacs -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. =A0If you can'= ;t
figure it out, post the backtrace to the list.

Nick





--0016e6d58f6f1730c004ba0c9526--