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 12:00:38 +0200 [thread overview]
Message-ID: <874o1wgou1.fsf@gmail.com> (raw)
In-Reply-To: <20110805112923.384e34e5@kuru.homelinux.net> (Suvayu Ali's message of "Fri, 5 Aug 2011 11:29:23 +0200")
Suvayu Ali <fatkasuvayu+linux@gmail.com> writes:
> 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.
It's because I only gave you a part of the required function. Also, if
you look at the doc-string, you'll see that:
1. it should return the position to continue the search from;
2. you should set `org-agenda-skip-function-global' instead.
So, you can try:
#+begin_src org
(setq org-agenda-skip-function-global
(lambda ()
(when (and (featurep 'org-inlinetask)
(let ((case-fold-search t))
(org-looking-at-p (concat (org-inlinetask-outline-regexp)
"end[ \t]*$"))))
(or (save-excursion (outline-next-heading)) (point-max)))))
#+end_src
Regards,
--
Nicolas Goaziou
next prev parent reply other threads:[~2011-08-05 10:01 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
2011-08-05 9:29 ` Suvayu Ali
2011-08-05 10:00 ` Nicolas Goaziou [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874o1wgou1.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.