From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Clemente Subject: org-agenda-filter-by-tag doesn't work with custom effort property Date: Tue, 24 Feb 2009 15:52:28 +0100 Message-ID: <877i3f6g5v.fsf@CPU107.opentrends.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lbyed-0004XP-1r for emacs-orgmode@gnu.org; Tue, 24 Feb 2009 09:53:03 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lbyeb-0004XD-3Q for emacs-orgmode@gnu.org; Tue, 24 Feb 2009 09:53:02 -0500 Received: from [199.232.76.173] (port=34261 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lbyea-0004XA-U0 for emacs-orgmode@gnu.org; Tue, 24 Feb 2009 09:53:00 -0500 Received: from mail-fx0-f174.google.com ([209.85.220.174]:54646) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lbyea-00017A-Dx for emacs-orgmode@gnu.org; Tue, 24 Feb 2009 09:53:00 -0500 Received: by fxm22 with SMTP id 22so2854832fxm.18 for ; Tue, 24 Feb 2009 06:52:58 -0800 (PST) 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 Hi, I would like to contribute 1 byte to org-mode; it's an "a": --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -4407,7 +4407,7 @@ to switch to narrowing." (lambda (x) (if (cdr x) (char-to-string (cdr x)) "")) alist "")) (efforts (org-split-string - (or (cdr (assoc (concat org-effort-property "_ALL") + (or (cadr (assoc (concat org-effort-property "_ALL") org-global-properties)) "0 0:10 0:30 1:00 2:00 3:00 4:00 5:00 6:00 7:00 8:00" ""))) (effort-op org-agenda-filter-effort-default-operator) This solves the following stack trace: Debugger entered--Lisp error: (wrong-type-argument stringp ("0 0:10 0:30 1:= 00 2:00 3:00 4:00 5:00 6:00 12:00 18:00 24:00 30:00")) string-match("[ \f \n=E2=80=A6]+" ("0 0:10 0:30 1:00 2:00 3:00 4:00 5:00 = 6:00 12:00 18:00 24:00 30:00") 0) org-split-string(("0 0:10 0:30 1:00 2:00 3:00 4:00 5:00 6:00 12:00 18:00 = 24:00 30:00")) org-agenda-filter-by-tag(nil) call-interactively(org-agenda-filter-by-tag nil nil) Thanks, Daniel