emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Globally set categories overwhelm tree inheritance
@ 2013-01-02 18:38 William Léchelle
  2013-01-07 17:00 ` Bastien
  0 siblings, 1 reply; 2+ messages in thread
From: William Léchelle @ 2013-01-02 18:38 UTC (permalink / raw)
  To: emacs-orgmode

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.

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

end of thread, other threads:[~2013-01-07 17:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-02 18:38 Globally set categories overwhelm tree inheritance William Léchelle
2013-01-07 17:00 ` 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).