From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brady Trainor Subject: undocumented? struggled with category filter on daily/weekly agenda view custom command. Date: Tue, 15 Apr 2014 23:32:43 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41895) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WaCqf-0007mJ-6X for emacs-orgmode@gnu.org; Tue, 15 Apr 2014 19:33:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WaCqY-00080N-Gz for emacs-orgmode@gnu.org; Tue, 15 Apr 2014 19:33:05 -0400 Received: from plane.gmane.org ([80.91.229.3]:48370) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WaCqY-00080F-Bb for emacs-orgmode@gnu.org; Tue, 15 Apr 2014 19:32:58 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WaCqX-0005HV-0z for emacs-orgmode@gnu.org; Wed, 16 Apr 2014 01:32:57 +0200 Received: from 65-102-183-242.tukw.qwest.net ([65.102.183.242]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 16 Apr 2014 01:32:57 +0200 Received: from algebrat by 65-102-183-242.tukw.qwest.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 16 Apr 2014 01:32:57 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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