Remove "org_" prefix from list_allow_alphabetical.

These settings are exclusively for parsing org-mode so the prefix is redundant.
This commit is contained in:
Tom Alexander 2023-09-29 14:33:52 -04:00
parent 3a422e6435
commit f1261ddce8
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
2 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@ pub struct GlobalSettings<'g, 's> {
/// Set to true to allow for plain lists using single letters as the bullet in the same way that numbers are used.
///
/// Corresponds to the org-list-allow-alphabetical elisp variable.
pub org_list_allow_alphabetical: bool,
pub list_allow_alphabetical: bool,
/// How many spaces a tab should be equal to.
///
@ -38,7 +38,7 @@ impl<'g, 's> GlobalSettings<'g, 's> {
},
in_progress_todo_keywords: BTreeSet::new(),
complete_todo_keywords: BTreeSet::new(),
org_list_allow_alphabetical: false,
list_allow_alphabetical: false,
tab_width: 8,
odd_levels_only: HeadlineLevelFilter::OddEven,
}

View File

@ -298,7 +298,7 @@ fn counter<'b, 'g, 'r, 's>(
context: RefContext<'b, 'g, 'r, 's>,
input: OrgSource<'s>,
) -> Res<OrgSource<'s>, OrgSource<'s>> {
if context.get_global_settings().org_list_allow_alphabetical {
if context.get_global_settings().list_allow_alphabetical {
alt((
recognize(one_of(
"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",