|
@@ -1917,7 +1917,10 @@ also set this to a string to define the drawer of your choice.
|
|
|
A value of t is also allowed, representing \"LOGBOOK\".
|
|
|
|
|
|
If this variable is set, `org-log-state-notes-insert-after-drawers'
|
|
|
-will be ignored."
|
|
|
+will be ignored.
|
|
|
+
|
|
|
+You can set the property LOG_INTO_DRAWER to overrule this setting for
|
|
|
+a subtree."
|
|
|
:group 'org-todo
|
|
|
:group 'org-progress
|
|
|
:type '(choice
|
|
@@ -1928,6 +1931,16 @@ will be ignored."
|
|
|
(if (fboundp 'defvaralias)
|
|
|
(defvaralias 'org-log-state-notes-into-drawer 'org-log-into-drawer))
|
|
|
|
|
|
+(defun org-log-into-drawer ()
|
|
|
+ "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 (ignore-errors (org-entry-get nil "LOG_INTO_DRAWER" 'inherit))))
|
|
|
+ (cond
|
|
|
+ ((or (not p) (equal p "nil")) org-log-into-drawer)
|
|
|
+ ((equal p "t") "LOGBOOK")
|
|
|
+ (t p))))
|
|
|
+
|
|
|
(defcustom org-log-state-notes-insert-after-drawers nil
|
|
|
"Non-nil means, insert state change notes after any drawers in entry.
|
|
|
Only the drawers that *immediately* follow the headline and the
|
|
@@ -9931,10 +9944,11 @@ When FINDPOS is non-nil, find the correct position for the note in
|
|
|
the current entry. If not, assume that it can be inserted at point.
|
|
|
HOW is an indicator what kind of note should be created.
|
|
|
EXTRA is additional text that will be inserted into the notes buffer."
|
|
|
- (let ((drawer (cond ((stringp org-log-into-drawer)
|
|
|
- org-log-into-drawer)
|
|
|
- (org-log-into-drawer "LOGBOOK")
|
|
|
- (t nil))))
|
|
|
+ (let* ((org-log-into-drawer (org-log-into-drawer))
|
|
|
+ (drawer (cond ((stringp org-log-into-drawer)
|
|
|
+ org-log-into-drawer)
|
|
|
+ (org-log-into-drawer "LOGBOOK")
|
|
|
+ (t nil))))
|
|
|
(save-restriction
|
|
|
(save-excursion
|
|
|
(when findpos
|
|
@@ -11371,7 +11385,7 @@ but in some other way.")
|
|
|
"LOCATION" "LOGGING" "COLUMNS" "VISIBILITY"
|
|
|
"TABLE_EXPORT_FORMAT" "TABLE_EXPORT_FILE"
|
|
|
"EXPORT_FILE_NAME" "EXPORT_TITLE" "EXPORT_AUTHOR" "EXPORT_DATE"
|
|
|
- "ORDERED" "NOBLOCKING" "COOKIE_DATA")
|
|
|
+ "ORDERED" "NOBLOCKING" "COOKIE_DATA" "LOG_INTO_DRAWER")
|
|
|
"Some properties that are used by Org-mode for various purposes.
|
|
|
Being in this list makes sure that they are offered for completion.")
|
|
|
|