From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: tag search broken Date: Thu, 20 Sep 2012 23:28:21 -0400 Message-ID: <20895.1348198101@alphaville> References: Reply-To: nicholas.dokos@hp.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:45770) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TEtuk-0004kD-5h for emacs-orgmode@gnu.org; Thu, 20 Sep 2012 23:28:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TEtuj-0002QX-3V for emacs-orgmode@gnu.org; Thu, 20 Sep 2012 23:28:26 -0400 Received: from g5t0009.atlanta.hp.com ([15.192.0.46]:5765) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TEtui-0002QM-Uh for emacs-orgmode@gnu.org; Thu, 20 Sep 2012 23:28:25 -0400 In-Reply-To: Message from Marcelo de Moraes Serpa of "Thu\, 20 Sep 2012 19\:28\:14 CDT." 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: Marcelo de Moraes Serpa Cc: Org Mode Marcelo de Moraes Serpa wrote: > Hello guys, >=20 > My tag search is broken, for some reason. When I search for "tag1" for ex= ample, the search breaks > and I get the following message in the *Messages* buffer: >=20 > if: Wrong type argument: stringp, ("tag0" "tag1" "tag3" "tag4") >=20 > Here's the backtrace: >=20 > Debugger entered--Lisp error: (wrong-type-argument stringp ("haxe" "r= uby" "blog" > "coffeinthevein")) > =C2=A0 string-match("\\[\\[\\([^][]+\\)\\]\\(\\[\\([^][]+\\)\\]\\)?\\= ]" ("haxe" "ruby" "blog" > "coffeinthevein")) > =C2=A0 (if (string-match org-bracket-link-regexp category) (progn (se= tq l ...) (when ... ... ...)) > (if (and org-prefix-category-max-length ...) (setq category ...))) > .... > =C2=A0 org-agenda-format-item("" #("cyberchrist haxe engine vs jekyll= -- a nice way to see what's > haxe is capable of and what is missing from ruby :haxe:ruby:blog:coff= einthevein:" 0 142 > (org-category "someday_maybe" fontified nil)) "someday_maybe" ("haxe"= "ruby" "blog" > "coffeinthevein")) ^level argument missing > =C2=A0 (setq txt (org-agenda-format-item "" (concat ... ...) category= tags-list) priority > (org-get-priority txt)) > .... > I can't remember exactly when it started, but I don't remember messing wi= th org sources or > installing additional elisp pacakges in the last days.=C2=A0 >=20 > Does anyone know what could be wrong? >=20 There is a mismatch between the call and the definition of org-agend-format= -item: it recently acquired an extra argument "level" and apparently it is expecti= ng it: ,---- | (defun org-agenda-format-item (extra txt &optional level category tags do= time | remove-re habitp) `---- but the call in org-scan-tags does not pass it. So everything got shifted a= nd when it gets to ,---- | (if (string-match org-bracket-link-regexp category) `---- instead of the category, it tries to do the match on the tags list with predictable results. What causes this is not clear however: check org.el:org-scan-tags to make sure that the call to org-agenda-format-item includes the level argument. That sounds unlikely however. My guess is that you missed a step after some update: a remake and starting with a fresh emacs will probably cure it. Nick