From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: org-agenda-filter-by-tag doesn't work with custom effort property Date: Wed, 25 Feb 2009 13:51:21 +0100 Message-ID: References: <877i3f6g5v.fsf@CPU107.opentrends.net> Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset=WINDOWS-1252; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LcJET-00062g-CX for emacs-orgmode@gnu.org; Wed, 25 Feb 2009 07:51:25 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LcJER-00061A-Ok for emacs-orgmode@gnu.org; Wed, 25 Feb 2009 07:51:24 -0500 Received: from [199.232.76.173] (port=52616 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LcJER-000610-En for emacs-orgmode@gnu.org; Wed, 25 Feb 2009 07:51:23 -0500 Received: from fg-out-1718.google.com ([72.14.220.155]:16766) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LcJER-0008QZ-1V for emacs-orgmode@gnu.org; Wed, 25 Feb 2009 07:51:23 -0500 Received: by fg-out-1718.google.com with SMTP id l27so253544fgb.30 for ; Wed, 25 Feb 2009 04:51:22 -0800 (PST) In-Reply-To: <877i3f6g5v.fsf@CPU107.opentrends.net> 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: Daniel Clemente Cc: emacs-orgmode@gnu.org On Feb 24, 2009, at 3:52 PM, Daniel Clemente wrote: > > 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") I don't think this is correct. What are the symptoms of the problem you encounter? - Carsten > > org-global-properties)) > "0 0:10 0:30 1:00 2:00 3:00 4:00 5:00 6:00 7:00 = 8:00" =20 > ""))) > (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 =20= > 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=85]+" ("0 0:10 0:30 1:00 2:00 3:00 4:00 5:00 =20= > 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 =20= > 18:00 24:00 30:00")) > org-agenda-filter-by-tag(nil) > call-interactively(org-agenda-filter-by-tag nil nil) > > > Thanks, > Daniel > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode