Compare priority, archived, and commented in headlines.

This commit is contained in:
Tom Alexander
2023-09-08 15:57:24 -04:00
parent c7c0deed74
commit 93d3d9471f
2 changed files with 57 additions and 1 deletions

View File

@@ -141,6 +141,11 @@ fn maybe_token_to_usize(
.map_or(Ok(None), |r| r.map(Some))?)
}
/// Get a named property from the emacs token.
///
/// Returns Ok(None) if value is nil.
///
/// Returns error if the attribute is not specified on the token at all.
pub fn get_property<'s, 'x>(
emacs: &'s Token<'s>,
key: &'x str,