From: Alan Schmitt <alan.schmitt@polytechnique.org>
To: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: Setting a parametric org-agenda-skip-function?
Date: Sun, 23 Jun 2013 16:19:01 +0200 [thread overview]
Message-ID: <m24ncohpuy.fsf@polytechnique.org> (raw)
In-Reply-To: <m2d2rfh0uj.fsf@polytechnique.org>
Hello,
alan.schmitt@polytechnique.org writes:
> Hello,
>
> I'm trying to have a custom agenda where I say I want to skip some
> tags. I wrote a function that does what I want (it takes two arguments:
> the list of tags to keep, and a boolean that says whether entries with
> no tags should be kept). The function works well, but for some reason it
> is not called. Here is how I try to call it:
>
> ("w" "Work Agenda"
> ((agenda ""
> ((org-agenda-skip-function
> '(org-agenda-skip-entry-unless-tags
> my-work-tags
> t))))
>
> I make org-agenda-skip-entry-unless-tags as debugged, and when I call
> this agenda view, I don't go in the debugger, so I guess it is not
> called.
I'm still trying to investigate this, but I can't find out how to step
in the debugger for this. I tried using a "skip everything" function,
defined as:
(defun as/skip-everything ()
(let ((next-headline (save-excursion (or (outline-next-heading) (point-max)))))
next-headline))
)
and it is taken into account. However, I can't seem to debug this
function (if I C-u C-M-x it, running the agenda generation command
works, and everything is skipped, but I don't get into the
debugger). This is quite strange because I can debug skipping functions
for tags-todo blocks, but for some reason I cannot debug skipping
functions for agenda blocks.
Is there something special about how skipping functions work with agenda
blocks? I'd appreciate any hint on how to try to debug this.
Thanks,
Alan
next prev parent reply other threads:[~2013-06-23 14:19 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-21 16:42 Setting a parametric org-agenda-skip-function? Alan Schmitt
2013-06-23 14:19 ` Alan Schmitt [this message]
2013-06-24 15:12 ` Alan Schmitt
2013-06-24 16:42 ` Achim Gratz
2013-06-25 6:30 ` Alan Schmitt
2013-06-27 14:09 ` Bastien
2013-06-27 17:25 ` Alan Schmitt
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=m24ncohpuy.fsf@polytechnique.org \
--to=alan.schmitt@polytechnique.org \
--cc=emacs-orgmode@gnu.org \
/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).