Quellcode durchsuchen

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
Erik Hetzner vor 12 Jahren
Ursprung
Commit
dda453eb7e
1 geänderte Dateien mit 3 neuen und 2 gelöschten Zeilen
  1. 3 2
      lisp/org.el

+ 3 - 2
lisp/org.el

@@ -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))))