emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* how to filter CATEGORY entries in org-agenda-custom command (agenda)?
@ 2010-12-21 15:56 Rainer Stengele
  2011-02-11 10:32 ` Bastien
  0 siblings, 1 reply; 5+ messages in thread
From: Rainer Stengele @ 2010-12-21 15:56 UTC (permalink / raw)
  To: emacs-orgmode

Hi all!

how to filter CATEGORY entries in org-agenda-custom command (agenda)?

Sorry I cannot find it. I know how to filter such entries in "tags-todo" blocks:

tags-todo "-CATEGORY=\"PADUA\"-CATEGORY=\"PADUA-LH\"-CATEGORY=\"PADUA-PH\""

but I cannot find an equivalent for the (agenda) part of my custom command.

- Rainer

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: how to filter CATEGORY entries in org-agenda-custom command (agenda)?
  2010-12-21 15:56 how to filter CATEGORY entries in org-agenda-custom command (agenda)? Rainer Stengele
@ 2011-02-11 10:32 ` Bastien
  2011-02-22 13:40   ` Rainer Stengele
  0 siblings, 1 reply; 5+ messages in thread
From: Bastien @ 2011-02-11 10:32 UTC (permalink / raw)
  To: Rainer Stengele; +Cc: emacs-orgmode

Hi Rainer,

Rainer Stengele <rainer.stengele@diplan.de> 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,

-- 
 Bastien

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: how to filter CATEGORY entries in org-agenda-custom command (agenda)?
  2011-02-11 10:32 ` Bastien
@ 2011-02-22 13:40   ` Rainer Stengele
  2011-02-22 15:05     ` Sébastien Vauban
  2011-02-26  9:27     ` Bastien
  0 siblings, 2 replies; 5+ messages in thread
From: Rainer Stengele @ 2011-02-22 13:40 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode

Am 11.02.2011 11:32, schrieb Bastien:
> Hi Rainer,
>
> Rainer Stengele <rainer.stengele@diplan.de> 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: how to filter CATEGORY entries in org-agenda-custom command (agenda)?
  2011-02-22 13:40   ` Rainer Stengele
@ 2011-02-22 15:05     ` Sébastien Vauban
  2011-02-26  9:27     ` Bastien
  1 sibling, 0 replies; 5+ messages in thread
From: Sébastien Vauban @ 2011-02-22 15:05 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

Hi Rainer,

Rainer Stengele wrote:
> 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"?

That usage of CATEGORY is deprecated, or not actively supported at least. The
advised way is to put the category as a real property, inside the PROPERTIES
drawer.

Best regards,
  Seb

-- 
Sébastien Vauban


_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode-mXXj517/zsQ@public.gmane.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: how to filter CATEGORY entries in org-agenda-custom command (agenda)?
  2011-02-22 13:40   ` Rainer Stengele
  2011-02-22 15:05     ` Sébastien Vauban
@ 2011-02-26  9:27     ` Bastien
  1 sibling, 0 replies; 5+ messages in thread
From: Bastien @ 2011-02-26  9:27 UTC (permalink / raw)
  To: Rainer Stengele; +Cc: emacs-orgmode

Hi Rainer,

Rainer Stengele <rainer.stengele@diplan.de> writes:

> 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")

As Sebastian said please use CATEGORY as a property instead of a general
metadata.  org-entry-get will match properties in :PROPERTIES:.

Thanks,

-- 
 Bastien

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-02-26 16:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-21 15:56 how to filter CATEGORY entries in org-agenda-custom command (agenda)? Rainer Stengele
2011-02-11 10:32 ` Bastien
2011-02-22 13:40   ` Rainer Stengele
2011-02-22 15:05     ` Sébastien Vauban
2011-02-26  9:27     ` Bastien

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).