emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Brady Trainor <algebrat@uw.edu>
To: emacs-orgmode@gnu.org
Subject: undocumented? struggled with category filter on daily/weekly agenda view custom command.
Date: Tue, 15 Apr 2014 23:32:43 +0000 (UTC)	[thread overview]
Message-ID: <loom.20140416T011359-889@post.gmane.org> (raw)



Goal: To make an agenda view custom command that will filter a daily/weekly
view by category. 


I tried to use the documented `org-agenda-category-filter-preset', similar
to functionality of the analogous tag variable,
`org-agenda-tag-filter-preset'. It does not seem to work. However, a word
search in the `org-agenda.el' file uncovered an undocumented variable
`org-agenda-category-filter', which seemed to do the job for me. 

(That is, `C-h v' on the latter leads to "Not documented as a variable.") 

Am I using the right variable for the job? I do not really understand the
"preset" nomenclature. Does this mean it should only be used on the global
block, as opposed to say inside of `(agenda "" ...)'? 



Here are some minimal examples I used to work out where my issue was: 

 ____
/

(setq 
 org-agenda-custom-commands 
 '(("r" 
    "the real test" (
                     (agenda "")
                     (todo "")
                                ;; +CATEGORY=\"acat\"
                     )(
                       (org-agenda-files
'("/e/emacs-config/therealagendatest.org"))
                       ;; (org-agenda-filter-preset '("+acat"))
                       (org-agenda-category-filter '("+acat"))
                       ))))

\____
/

* TODO an appt
<2014-04-15 Tue>
* TODO a test todo                                                     :acat:
:PROPERTIES:
:CATEGORY: acat
:END:

\____


- Brady

             reply	other threads:[~2014-04-15 23:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-15 23:32 Brady Trainor [this message]
2014-04-17  7:57 ` undocumented? struggled with category filter on daily/weekly agenda view custom command Bastien

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=loom.20140416T011359-889@post.gmane.org \
    --to=algebrat@uw.edu \
    --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).