org.el (org-log-into-drawer): Honor the nil value for the :LOG_INTO_DRAWER: property.

* org.el (org-log-into-drawer): Honor the nil value for the
:LOG_INTO_DRAWER: property.

TINYCHANGE
This commit is contained in:
Erik Hetzner 2012-10-27 09:37:54 +02:00 committed by Bastien Guerry
parent b1f20bde27
commit dda453eb7e

View file

@ -2498,9 +2498,10 @@ a subtree."
"Return the value of `org-log-into-drawer', but let properties overrule.
If the current entry has or inherits a LOG_INTO_DRAWER property, it will be
used instead of the default value."
(let ((p (org-entry-get nil "LOG_INTO_DRAWER" 'inherit)))
(let ((p (org-entry-get nil "LOG_INTO_DRAWER" 'inherit t)))
(cond
((or (not p) (equal p "nil")) org-log-into-drawer)
((not p) org-log-into-drawer)
((equal p "nil") nil)
((equal p "t") "LOGBOOK")
(t p))))