progfolio / doct

DOCT: Declarative Org Capture Templates for Emacs
GNU General Public License v3.0
380 stars 8 forks source link

doct--target-file: Get :olp path when :datetree declared first #32

Closed progfolio closed 2 years ago

progfolio commented 2 years ago

If :datetree is declared before :olp, we need to explicitly fetch the :olp value. Otherwise, the :olp value was silently dropped from the declaration. This didn't raise any errors because nil is a valid :olp value (in order to override any :olp inheritance), and (file+olp+datetree "file/without/olp") is a valid target.

See: #31