From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer Stengele Subject: Re: how to filter CATEGORY entries in org-agenda-custom command (agenda)? Date: Tue, 22 Feb 2011 14:40:56 +0100 Message-ID: <4D63BCE8.5080503@diplan.de> References: <87oc6iyi8b.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=51231 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PrsUS-0005U2-GG for emacs-orgmode@gnu.org; Tue, 22 Feb 2011 08:41:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PrsUI-00026Z-S4 for emacs-orgmode@gnu.org; Tue, 22 Feb 2011 08:41:12 -0500 Received: from ns.diplan.de ([212.34.188.4]:50422 helo=mail.diplan.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PrsUI-00023D-Lo for emacs-orgmode@gnu.org; Tue, 22 Feb 2011 08:41:10 -0500 In-Reply-To: <87oc6iyi8b.fsf@gnu.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bastien Cc: emacs-orgmode@gnu.org Am 11.02.2011 11:32, schrieb Bastien: > Hi Rainer, > > Rainer Stengele writes: > >> how to filter CATEGORY entries in org-agenda-custom command (agenda)? > You can do this by setting `org-agenda-skip-function' to a function > that matches CATEGORY. You can find a subtree's category through > > (org-entry-get (point) "CATEGORY") > > HTH, > Hi Bastien, I am in the middle of my org file, having a #+CATEGORY: TEST in line 1 of the file. Putting the code (org-entry-get (point) "CATEGORY") in the middle of my file under any headline and evaluating it gives me "nil". Shouldn't the code give me "TEST"? - Rainer