emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Bastien <bzg@altern.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: property searches for #+CATEGORY
Date: Thu, 8 Nov 2007 09:54:08 +0100	[thread overview]
Message-ID: <D728E4E2-ED7A-4221-BCEA-7C9269EE2249@science.uva.nl> (raw)
In-Reply-To: <87ir4dl4kb.fsf@bzg.ath.cx>


On  8Nov2007, at 5:55 AM, Bastien wrote:

> Carsten Dominik <carsten.dominik@gmail.com> writes:
>
>> However, I do think that Adam's initial request to make the
>> category available as a special property for queries in not
>> unreasonble.  Or does anyone disagree?
>
> I'm convinced it's not unreasonable :)
>
>> I am not sure, though, if the #+CATEGORY category should be
>> available with `org-entry-get', because it would then be very
>> hard for the property API to make a difference between a value
>> that is intimately associated with the current entry, and a
>> value that might be derived by some other mechanism.  So here I
>> differ somewhat from Adam's feeling that category is just like
>> TODO or a tag.  It is different.
>
> Then a search like CATEGORY="cat" would also return entries which
> CATEGORY property is not "cat"... ok, maybe this doesn't hurt that
> much for search purposes.  But I expect someone will come in three
> month complaining that `org-entry-get' didn't return the category,
> even though he set it up through #+CATEGORY.

OK, here is what we will do.  We will make `org-entry-get' return
a value from #+CATEGORY if the INHERIT flag is set in the call
to `org-entry-get'.  In this case the value is inherited not from
a higher level entry, but for the "file environment", and even
top-level outline entries can ihnerit it.
We actually already have this mechanism:

    #+PROPERTY: Name Value

So we could then see

    #+CATEGORY: work

as a short-hand for

    #+PROPERTY: CATEGORY work

... which makes all of this suddenly look as if it was designed
like this from the beginning.  I like it.

Thanks again to everyone who contributed to this discussion.

- Carsten

  reply	other threads:[~2007-11-08  8:54 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-07 11:17 property searches for #+CATEGORY Adam Spiers
2007-11-07 12:49 ` Bastien
2007-11-07 12:15   ` Adam Spiers
2007-11-07 13:23 ` Tim O'Callaghan
2007-11-07 13:34   ` Adam Spiers
2007-11-07 13:59     ` Tim O'Callaghan
2007-11-07 14:28       ` Adam Spiers
2007-11-07 14:52         ` Tim O'Callaghan
2007-11-07 16:35           ` Adam Spiers
2007-11-07 16:15       ` Carsten Dominik
2007-11-07 18:07         ` Adam Spiers
2007-11-08  4:55         ` Bastien
2007-11-08  8:54           ` Carsten Dominik [this message]
2007-11-07 14:49     ` Bastien
2007-11-07 14:32       ` Adam Spiers
2007-11-07 14:15 ` Bastien
2007-11-07 13:52   ` Adam Spiers
2007-11-07 17:16     ` Bastien
2007-11-07 17:23       ` Adam Spiers
2007-11-08  4:42         ` Bastien
2007-11-07 16:20   ` Carsten Dominik
2007-11-08  0:04     ` Adam Spiers
  -- strict thread matches above, loose matches on Subject: below --
2008-12-07 23:35 Mario E. Munich
2008-12-08 16:40 ` Carsten Dominik
2008-12-09  0:33   ` Mario E. Munich
2008-12-09  1:41     ` Matthew Lundin
2008-12-09  6:51       ` Mario E. Munich
2008-12-07 23:39 Mario E. Munich

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=D728E4E2-ED7A-4221-BCEA-7C9269EE2249@science.uva.nl \
    --to=carsten.dominik@gmail.com \
    --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).