Switch back to the old compare heading function until we support additional properties.

This commit is contained in:
Tom Alexander 2023-10-09 21:32:29 -04:00
parent 65615c64d2
commit 33c53a14ab
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

@ -605,6 +605,8 @@ fn new_compare_heading<'b, 's>(
let mut child_status = Vec::new();
let mut message = None;
// TODO: This needs to support additional properties from the property drawer
compare_children(
source,
emacs,
@ -684,17 +686,17 @@ fn new_compare_heading<'b, 's>(
compare_property_boolean
),
(
EmacsField::Required(":scheduled"),
EmacsField::Optional(":scheduled"),
|r| r.scheduled.as_ref(),
compare_property_single_ast_node
),
(
EmacsField::Required(":deadline"),
EmacsField::Optional(":deadline"),
|r| r.deadline.as_ref(),
compare_property_single_ast_node
),
(
EmacsField::Required(":closed"),
EmacsField::Optional(":closed"),
|r| r.closed.as_ref(),
compare_property_single_ast_node
),