[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] `org-get-category' and `org-entry-get' do not return the same value
From: |
Samuel Loury |
Subject: |
[O] `org-get-category' and `org-entry-get' do not return the same value |
Date: |
Fri, 30 Jan 2015 08:56:46 +0100 |
User-agent: |
Notmuch/0.18.2 (http://notmuchmail.org) Emacs/24.4.1 (x86_64-pc-linux-gnu) |
Hi,
I use the version cd6fa4c15e8e35afa6beb9e89ad3723fb82df091 (git sha) of
org-mode.
Let's say I have a file looking like this:
--8<---------------cut here---------------start------------->8---
#+CATEGORY: c
* foo
:PROPERTIES:
:CATEGORY: a
:END:
** bar
:PROPERTIES:
:CREATED: [2015-01-30 Fri 08:37]
:END:
--8<---------------cut here---------------end--------------->8---
With the point on bar, `org-get-category' returns "a" while
(org-entry-get (point) "CATEGORY" t) returns "c". Notice that it returns
"c" even if the third argument is INHERIT.
This causes the strange behavior that I cannot set interactively the
CATEGORY property value to "c" with C-x C-c p.
The behavior is again more strange in the agenda, where the bar entry is
correctly shown with the CATEGORY "a" and trying to change it with
--8<---------------cut here---------------start------------->8---
C-x C-c p CATEGORY c
--8<---------------cut here---------------end--------------->8---
does nothing.
Is there a new way to interactively edit the CATEGORY or should
`org-set-property' tackle the special case of CATEGORY?
Best regards,
--
Konubinix
GPG Key : 7439106A
Fingerprint: 5993 BE7A DA65 E2D9 06CE 5C36 75D2 3CED 7439 106A
signature.asc
Description: PGP signature
- [O] `org-get-category' and `org-entry-get' do not return the same value,
Samuel Loury <=