emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ian Barton <lists@wilkesley.net>
To: Bastien <bzg@altern.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: [PATCH] Category filtering in the agenda
Date: Sun, 06 Nov 2011 20:48:16 +0000	[thread overview]
Message-ID: <4EB6F290.3010808@wilkesley.net> (raw)
In-Reply-To: <8739e1hzh9.fsf@gnu.org>


> here is a patch implementing category filtering in the agenda.
>
> The patch is not 100% clean wrt documentation, but I throw it
> now to get some feedback and some testing done.
>
> Press "<" in the agenda to filter by category.
>
> Press "<  <" to filter by the category of the entry point.
> Another "/ /" removes the filter.  "/" + " " filters by the
> default category ("General") since everything is in a category.
>
> I find this last function quick and useful, so I also implemented
> it for tag filtering: pressing "/ /" filters by tags from the entry
> on the current line.  A second "/ /" removes the filter.
>
> Let me know if the category filtering works ok with you, and
> if you find the new "/ /" behavior useful.
>
> There is one limitation for now: it does not combine with Effort
> filtering.
>

I get the folllowing error with the latest HEAD:

Debugger entered--Lisp error: (args-out-of-range "" 0 1)
   #[(x) "\b\301\302O\207" [x 0 1] 3]("")
   mapconcat(#[(x) "\b\301\302O\207" [x 0 1] 3] (#("Weather" 0 7 
(fontified nil org-category #("Day/Year" 0 8 ...) org-category-position 
603)) "" #("Computer" 0 8 (fontified nil org-category #("Animals" 0 7 
...) org-category-position 1281)) #("House" 0 5 (fontified nil 
org-category #("Animals" 0 7 ...) org-category-position 1281)) 
#("Writing" 0 7 (fontified nil org-category #("Tasks" 0 5 ...) 
org-category-position 69425)) #("Tasks" 0 5 (fontified nil org-category 
#("Tasks" 0 5 ...) org-category-position 69382)) #("Parish Council" 0 14 
(fontified nil org-category #("Parish Council" 0 14 ...) 
org-category-position 67962)) #("Animals" 0 7 (fontified nil 
org-category #("Weather" 0 7 ...) org-category-position 647)) 
#("Subscriptions" 0 13 (fontified nil org-category #("House" 0 5 ...) 
org-category-position 49251)) #("Car" 0 3 (fontified nil org-category 
#("Animals" 0 7 ...) org-category-position 1281)) "home" #("Market 
Drayton." 0 15 (fontified nil org-category "Tasks")) #("Capel Curig." 0 
12 (fontified nil org-category #("Market Drayton." 0 15 ...) 
org-category-position 464)) #("Day/Year" 0 8 (fontified nil org-category 
#("Capel Curig." 0 12 ...) org-category-position 534)) #("Appointment." 
0 12 (fontified nil org-category "calendar"))) "")
   org-agenda-filter-by-category(nil)
   call-interactively(org-agenda-filter-by-category nil nil)

  parent reply	other threads:[~2011-11-06 20:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-06 18:34 [PATCH] Category filtering in the agenda Bastien
2011-11-06 18:36 ` Bastien
2011-11-06 20:48 ` Ian Barton [this message]
2011-11-07 17:27 ` Carsten Dominik

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=4EB6F290.3010808@wilkesley.net \
    --to=lists@wilkesley.net \
    --cc=bzg@altern.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).