emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/indent-bars 070ab26c6d 197/431: new 'force option for i


From: ELPA Syncer
Subject: [elpa] externals/indent-bars 070ab26c6d 197/431: new 'force option for init-scope
Date: Mon, 16 Sep 2024 12:59:28 -0400 (EDT)

branch: externals/indent-bars
commit 070ab26c6d68cc99eadb44b57df4fc8627302532
Author: JD Smith <93749+jdtsmith@users.noreply.github.com>
Commit: JD Smith <93749+jdtsmith@users.noreply.github.com>

    new 'force option for init-scope
---
 indent-bars-ts.el | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/indent-bars-ts.el b/indent-bars-ts.el
index 2b80171d15..3963c9d118 100644
--- a/indent-bars-ts.el
+++ b/indent-bars-ts.el
@@ -300,9 +300,11 @@ both)."
                          #'indent-bars-ts--update-scope1))))
 
 ;;;; Setup
-(defun indent-bars-ts--init-scope ()
-  "Initialize scope style and variables."
-  (unless (get 'indent-bars-ts-setup :init-scope)
+(defun indent-bars-ts--init-scope (&optional force)
+  "Initialize scope style and variables.
+If FORCE is non-nil, initialize even if this has already been
+performed."
+  (unless (or force (get 'indent-bars-ts-setup :init-scope))
     (indent-bars-ts--add-customs)
     (indent-bars--initialize-style
      (setq indent-bars-ts-out-scope-style (indent-bars--new-style)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]