[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/indent-bars 62d4a834b7 282/431: Restore use of base sti
From: |
ELPA Syncer |
Subject: |
[elpa] externals/indent-bars 62d4a834b7 282/431: Restore use of base stipple-face-spec |
Date: |
Mon, 16 Sep 2024 12:59:39 -0400 (EDT) |
branch: externals/indent-bars
commit 62d4a834b7c82ac7a4d94bd70677e79c9cbe5cde
Author: JD Smith <93749+jdtsmith@users.noreply.github.com>
Commit: JD Smith <93749+jdtsmith@users.noreply.github.com>
Restore use of base stipple-face-spec
Needed for character-based bars, for which there are no remaps applied.
---
indent-bars.el | 22 +++++++++++++++-------
1 file changed, 15 insertions(+), 7 deletions(-)
diff --git a/indent-bars.el b/indent-bars.el
index 982b7f0727..f29ab7dfef 100644
--- a/indent-bars.el
+++ b/indent-bars.el
@@ -651,12 +651,15 @@ color, if setup (see
`indent-bars-highlight-current-depth')."
(defun indent-bars--stipple-face-spec (w h rot &optional style stipple)
"Create a face specification for the stipple face for STYLE.
Create for character size W x H with offset ROT. If STIPPLE is
-non-nil, use it instead of calculating."
- (let ((stipple (or stipple (indent-bars--stipple w h rot style))))
- (when stipple
- `((t ( :inherit nil :stipple ,stipple
- ,@(when indent-bars-no-stipple-char-font-weight
- `(:weight ,indent-bars-no-stipple-char-font-weight))))))))
+non-nil, use it instead of calculating. Includes
+:weight (affecting only non-stipple character display) if
+`indent-bars-no-stipple-char-font-weight' (or equivalent for the
+STYLE) is non-nil."
+ (let ((stipple (or stipple (indent-bars--stipple w h rot style)))
+ (wt (indent-bars--style style "no-stipple-char-font-weight")))
+ `((t ( :inherit nil
+ ,@(and stipple `(:stipple ,stipple))
+ ,@(and wt `(:weight ,wt)))))))
(defun indent-bars--calculate-face-spec (style depth)
"Calculate the face spec for bar at DEPTH in STYLE.
@@ -850,7 +853,12 @@ Useful for calling after theme changes."
(ibs/no-stipple-chars style) (indent-bars--create-no-stipple-chars
style 7))
;; Base stipple face
- (face-spec-set (ibs/stipple-face style) nil) ;stipple only via filtered
remaps
+ (face-spec-set
+ (ibs/stipple-face style)
+ (indent-bars--stipple-face-spec
+ (frame-char-width) (frame-char-height)
+ (indent-bars--stipple-rot (selected-window) (frame-char-width))
+ style))
;; Current depth highlight faces/stipple
(setf (ibs/current-bg-color style)
- [elpa] externals/indent-bars ff7a45fe99 247/431: docstring cleanup, (continued)
- [elpa] externals/indent-bars ff7a45fe99 247/431: docstring cleanup, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 6d59b8ff3b 272/431: Merge branch 'main' into treesit-scope, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 12204b155b 278/431: Use indent-bars group for everything (with sub-groups), ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 0df7ac5ce5 269/431: Supply correct arguments to handle-blank-lines, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 770d2c7066 251/431: New: text-scale and schedule-remap-cleanup, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars bbc97b6c04 277/431: reset-styles for theme change, all face setup now via styles, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 748ffeec7f 276/431: New highlight-method, including 'context (new default), ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars ffaaae3d42 265/431: Remove styles on reset so that are recomputed, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars f5f0392ab6 254/431: window-change: remap even if whr val unchanged, use remap-cleanup, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars ceb2eb00e9 266/431: ppss-based no-descend-string/list, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 62d4a834b7 282/431: Restore use of base stipple-face-spec,
ELPA Syncer <=
- [elpa] externals/indent-bars d7af7b3d42 283/431: Restore unspecified for "parent decides" config, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 247b35f55d 286/431: on-bar tweaks and doc improvements, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars f80c712b37 288/431: update-current-depth-highlight: reindent, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 9d374e0650 291/431: Fix timer teardown and run-hooks (which takes a hook name), ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 8d8b0b964b 292/431: Do not test bol but point to skip scope update, simplify markers, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 4fa1058326 293/431: Never recreate the same style TAG, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 86113c74ee 298/431: docs: minor tweaks, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 71b787c7d0 294/431: display: goto BEG prior to checking indentation depth, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars b433c5ca4d 308/431: TS: add developer note, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 4d1e7db294 309/431: TS: remove debug message, ELPA Syncer, 2024/09/16