[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/indent-bars 1bf77531f2 257/431: Better handling of --st
From: |
ELPA Syncer |
Subject: |
[elpa] externals/indent-bars 1bf77531f2 257/431: Better handling of --styles on setup and teardown |
Date: |
Mon, 16 Sep 2024 12:59:35 -0400 (EDT) |
branch: externals/indent-bars
commit 1bf77531f2ed0e578c6da3d54ad6310b1b0a23fc
Author: JD Smith <93749+jdtsmith@users.noreply.github.com>
Commit: JD Smith <93749+jdtsmith@users.noreply.github.com>
Better handling of --styles on setup and teardown
---
indent-bars.el | 15 +++++++--------
1 file changed, 7 insertions(+), 8 deletions(-)
diff --git a/indent-bars.el b/indent-bars.el
index b86165a564..a575fd3b38 100644
--- a/indent-bars.el
+++ b/indent-bars.el
@@ -1428,8 +1428,8 @@ Adapted from `highlight-indentation-mode'."
(or (not (display-graphic-p)) indent-bars-prefer-character))
;; Style (color + stipple)
- (unless indent-bars-style
- (indent-bars--initialize-style ; default style
+ (unless (and indent-bars-style indent-bars--styles)
+ (indent-bars--initialize-style
(setq indent-bars-style (indent-bars--new-style))))
;; Window state: selection/size
@@ -1442,10 +1442,10 @@ Adapted from `highlight-indentation-mode'."
;; Remap/Resize
(setq indent-bars--stipple-remaps (make-hash-table))
- (add-hook 'text-scale-mode-hook #'indent-bars--text-scale t)
- (indent-bars--window-change) ; just in case
+ (add-hook 'text-scale-mode-hook #'indent-bars--update-all-stipples t)
+ (indent-bars--update-all-stipples)
- ;; Current depth
+ ;; Current depth Highlighting
(when (indent-bars--style 'any "highlight-current-depth")
(add-hook 'post-command-hook
#'indent-bars--highlight-current-depth nil t)
@@ -1482,9 +1482,8 @@ Adapted from `highlight-indentation-mode'."
(when indent-bars-orig-unfontify-region
(setq font-lock-unfontify-region-function
indent-bars-orig-unfontify-region))
- (setq indent-bars--current-depth 0
- indent-bars--styles nil)
- (remove-hook 'text-scale-mode-hook #'indent-bars--text-scale t)
+ (setq indent-bars--current-depth 0)
+ (remove-hook 'text-scale-mode-hook #'indent-bars--update-all-stipples t)
(remove-hook 'post-command-hook #'indent-bars--highlight-current-depth t)
(remove-hook 'font-lock-extend-region-functions
#'indent-bars--extend-blank-line-regions t)
- [elpa] externals/indent-bars 4ad704782a 233/431: Properly handle SWITCH-AFTER=0, (continued)
- [elpa] externals/indent-bars 4ad704782a 233/431: Properly handle SWITCH-AFTER=0, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 7acbd9124b 235/431: README: Acknowledgements, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 117121cbd6 230/431: Guard update-scope against non-mode buffers, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars cd463afdbc 223/431: Use union of old and new ranges, not symdiff, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 48646b1123 234/431: README: Acknowledgements, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 2ee5157b41 244/431: Require 'subr-x for hash functions, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars e4d73d35a5 249/431: use indent-bars--tag in create-faces, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 470d99ddd1 262/431: Relocate remap local variables closer to usage, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 3279f93449 220/431: Do no 'reset faces on setup, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars bf1132775d 217/431: Require cus-edit for custom functionality, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 1bf77531f2 257/431: Better handling of --styles on setup and teardown,
ELPA Syncer <=
- [elpa] externals/indent-bars e4ab2f8865 231/431: Prevent altering the original custom var during inherit, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 7d63303e27 275/431: current-indentation-depth: no takes no POS arg, use s-e, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 00ee9d62fe 250/431: Do not apply face-remap given new final face argument, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 7d415237d8 258/431: Use style correctly when setting main stipple face, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars aacb0a574b 279/431: docstring: treesit-wrap, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars c6f08762b2 273/431: Use min-lines 3 for TS scope, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars d06e6e10da 268/431: Overhaul scope structure and logic, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars bfcc3fac50 271/431: assign update-depth-function in :success clause, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars d883507335 270/431: docs: improve update-scope1 docstring, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 10ce56b4e0 255/431: Improve stipple docstring and comment, ELPA Syncer, 2024/09/16