emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "William Léchelle" <william.lechelle@ens-lyon.fr>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Globally set categories overwhelm tree inheritance
Date: Wed, 02 Jan 2013 19:38:55 +0100	[thread overview]
Message-ID: <87y5gbwhts.wl%william.lechelle@ens-lyon.fr> (raw)

Happy new year list :)

Constructing a custom agenda using (org-entry-get (point) "CATEGORY" t) in an
org-agenda-skip-function, I found a rare case of strangely inherited property,
when a #+Category:foo line is present (at the top of the file) :

If an entry has no property drawer, it correctly inherits its CATEGORY property
from its hierarchy, but if it *has* one, *not* featuring a category property,
then the #+Category one supersedes that of the entry's hierarchy.

I know #+Category is obsolete, and for subtree-category differentiation
properties are the way to go, but I thought of it as a file-local fallback
value, and apparently it's not reliable for this either, as it infringes
inheritance logic when property drawers are present.

Reporting just in case someone else still uses #+Category and bumps into it.

             reply	other threads:[~2013-01-03  0:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-02 18:38 William Léchelle [this message]
2013-01-07 17:00 ` Globally set categories overwhelm tree inheritance 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=87y5gbwhts.wl%william.lechelle@ens-lyon.fr \
    --to=william.lechelle@ens-lyon.fr \
    --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).