From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Re: Inline tasks in agenda search Date: Fri, 5 Aug 2011 11:29:23 +0200 Message-ID: <20110805112923.384e34e5@kuru.homelinux.net> References: <87ei10grxk.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:43543) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QpGif-0007ow-5K for emacs-orgmode@gnu.org; Fri, 05 Aug 2011 05:29:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QpGie-00025P-AS for emacs-orgmode@gnu.org; Fri, 05 Aug 2011 05:29:29 -0400 Received: from mail-ew0-f41.google.com ([209.85.215.41]:38999) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QpGid-00025A-TK for emacs-orgmode@gnu.org; Fri, 05 Aug 2011 05:29:28 -0400 Received: by ewy9 with SMTP id 9so1547596ewy.0 for ; Fri, 05 Aug 2011 02:29:26 -0700 (PDT) In-Reply-To: <87ei10grxk.fsf@gmail.com> 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: Nicolas Goaziou Cc: org-mode mailing list Hi Nicolas, Thanks a lot for your response. On Fri, 05 Aug 2011 10:53:43 +0200 Nicolas Goaziou wrote: > #+begin_src org > (and (featurep 'org-inlinetask) > (let ((case-fold-search t)) > (org-looking-at-p (concat (org-inlinetask-outline-regexp) > "end[ \t]*$")))) #+end_src I tried this: (setq org-agenda-skip-function '(and (featurep 'org-inlinetask) (let ((case-fold-search t)) (org-looking-at-p (concat (org-inlinetask-outline-regexp) "end[ \t]*$"))))) But performing a search where an END entry would otherwise show up causes the following error. A search without END in the result completes cleanly though. Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p t) org-agenda-skip() byte-code(..) org-scan-tags(agenda (and (progn (setq org-cached-props nil) (member "Dsh" tags-list)) t) nil) byte-code(..) org-tags-view(nil) call-interactively(org-tags-view) byte-code(..) org-agenda(nil) call-interactively(org-agenda nil nil) -- Suvayu Open source is the future. It sets us free.