From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Inline tasks in agenda search Date: Fri, 05 Aug 2011 10:53:43 +0200 Message-ID: <87ei10grxk.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:55624) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QpGAT-0008QS-SM for emacs-orgmode@gnu.org; Fri, 05 Aug 2011 04:54:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QpGAS-0003HX-SL for emacs-orgmode@gnu.org; Fri, 05 Aug 2011 04:54:09 -0400 Received: from mail-ww0-f49.google.com ([74.125.82.49]:39890) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QpGAS-0003HO-GJ for emacs-orgmode@gnu.org; Fri, 05 Aug 2011 04:54:08 -0400 Received: by wwf10 with SMTP id 10so623307wwf.30 for ; Fri, 05 Aug 2011 01:54:07 -0700 (PDT) In-Reply-To: (suvayu ali's message of "Wed, 3 Aug 2011 03:32:05 +0200") 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: suvayu ali Cc: org-mode mailing list Hello, suvayu ali writes: > Hi again, > > On Mon, Aug 1, 2011 at 6:49 PM, suvayu ali = wrote: >> On Mon, Aug 1, 2011 at 5:57 PM, suvayu ali = wrote: >>> Hi Orgers, >>> >>> Is there any way to ignore the "END" entries in inline tasks in agenda >>> search results? >> >> Strangely now this works! Don't know what I changed. >> > > I was mistaken, the problem is still there. The second search simply > didn't have the END entries which I mistakenly thought the problem was > resolved. Let me try to outline the issue clearly again. Lets say I have > this subtree: > > > ** Bs=E2=81=B0 mass := mass: > > Bs=E2=81=B0 mass is reconstructed for > + Bs=E2=81=B0->Ds=CF=80 using the =CF=80 mass hypothesis > + Bs=E2=81=B0->DsK using both the K and =CF=80 mass hypothesis > > _Questions_: > *************** =CF=80 hypothesis :Qn: > Why =CF=80 hypothesis is considered only for DsK, and why > not K hypothesis for Ds=CF=80? > *************** END > > > Now if I search for the tag mass (C-c a m mass RET), I get a search > result like this: > > > analysis: Bs=E2=81=B0 mass := mass: > analysis: =CF=80 hypothesis :mass::Q= n: > analysis: END :mass:: > > > The first 2 results are just what I expect. But the END from the inline > task shows up in the agenda too! Is there anyway to get rid of that? You could add the following test, which will return a non-nil value for the closing of an inline-task, in `org-agenda-skip-function': #+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 Regards, --=20 Nicolas Goaziou