From f1261ddce84aa9bb8fe8126ac7d328909c897f27 Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Fri, 29 Sep 2023 14:33:52 -0400 Subject: [PATCH] Remove "org_" prefix from list_allow_alphabetical. These settings are exclusively for parsing org-mode so the prefix is redundant. --- src/context/global_settings.rs | 4 ++-- src/parser/plain_list.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/context/global_settings.rs b/src/context/global_settings.rs index e91c93a5..5932cc1f 100644 --- a/src/context/global_settings.rs +++ b/src/context/global_settings.rs @@ -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, } diff --git a/src/parser/plain_list.rs b/src/parser/plain_list.rs index 5b556117..3b10d55d 100644 --- a/src/parser/plain_list.rs +++ b/src/parser/plain_list.rs @@ -298,7 +298,7 @@ fn counter<'b, 'g, 'r, 's>( context: RefContext<'b, 'g, 'r, 's>, input: OrgSource<'s>, ) -> Res, OrgSource<'s>> { - if context.get_global_settings().org_list_allow_alphabetical { + if context.get_global_settings().list_allow_alphabetical { alt(( recognize(one_of( "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",