emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <n.goaziou@gmail.com>
To: suvayu ali <fatkasuvayu+linux@gmail.com>
Cc: org-mode mailing list <emacs-orgmode@gnu.org>
Subject: Re: Inline tasks in agenda search
Date: Fri, 05 Aug 2011 10:53:43 +0200	[thread overview]
Message-ID: <87ei10grxk.fsf@gmail.com> (raw)
In-Reply-To: <CAMXnza2waB3-d=fOtiymsBVLMuow5XMTN5gwgOjAza-zf6xh7Q@mail.gmail.com> (suvayu ali's message of "Wed, 3 Aug 2011 03:32:05 +0200")

Hello,

suvayu ali <fatkasuvayu+linux@gmail.com> writes:

> Hi again,
>
> On Mon, Aug 1, 2011 at 6:49 PM, suvayu ali <fatkasuvayu+linux@gmail.com> wrote:
>> On Mon, Aug 1, 2011 at 5:57 PM, suvayu ali <fatkasuvayu+linux@gmail.com> 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⁰ mass                                                     :mass:
>
> Bs⁰ mass is reconstructed for
> + Bs⁰->Dsπ using the π mass hypothesis
> + Bs⁰->DsK using both the K and π mass hypothesis
>
> _Questions_:
> *************** π hypothesis 					  :Qn:
> 		Why π hypothesis is considered only for DsK, and why
> 		not K hypothesis for Dsπ?
> *************** END
>
>
> Now if I search for the tag mass (C-c a m mass RET), I get a search
> result like this:
>
>
> analysis:     Bs⁰ mass                                          :mass:
> analysis:     π hypothesis                                  :mass::Qn:
> 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,

-- 
Nicolas Goaziou

  reply	other threads:[~2011-08-05  8:54 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-01 15:57 Inline tasks in agenda search suvayu ali
2011-08-01 16:49 ` suvayu ali
2011-08-03  1:32   ` suvayu ali
2011-08-05  8:53     ` Nicolas Goaziou [this message]
2011-08-05  9:29       ` Suvayu Ali
2011-08-05 10:00         ` Nicolas Goaziou
2011-08-05 11:23           ` suvayu ali

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ei10grxk.fsf@gmail.com \
    --to=n.goaziou@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=fatkasuvayu+linux@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).