* 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
* Re: Globally set categories overwhelm tree inheritance
2013-01-02 18:38 Globally set categories overwhelm tree inheritance William Léchelle
@ 2013-01-07 17:00 ` Bastien
0 siblings, 0 replies; 2+ messages in thread
From: Bastien @ 2013-01-07 17:00 UTC (permalink / raw)
To: William Léchelle; +Cc: emacs-orgmode
Hi William,
William Léchelle <william.lechelle@ens-lyon.fr> writes:
> 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.
Fixed, thanks!
--
Bastien
^ 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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.