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

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

[elpa] externals/indent-bars a47382bd4b 043/431: Improve comments and re


From: ELPA Syncer
Subject: [elpa] externals/indent-bars a47382bd4b 043/431: Improve comments and remove unused arg from calculate-face-spec
Date: Mon, 16 Sep 2024 12:59:12 -0400 (EDT)

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

    Improve comments and remove unused arg from calculate-face-spec
---
 indent-bars.el | 17 ++++++++---------
 1 file changed, 8 insertions(+), 9 deletions(-)

diff --git a/indent-bars.el b/indent-bars.el
index 1f991d29b0..39c00d1d47 100644
--- a/indent-bars.el
+++ b/indent-bars.el
@@ -431,17 +431,16 @@ color, if setup (see 
`indent-bars-highlight-current-depth')."
 (defun indent-bars--create-stipple-face (w h rot)
   "Create and set the default `indent-bars-stipple' face.
 Create for character size W x H with offset ROT."
-  (face-spec-set 'indent-bars-stipple
-                `((t
-                   (:inherit nil :stipple ,(indent-bars--stipple w h rot))))))
+  (face-spec-set
+   'indent-bars-stipple
+   `((t
+      (:inherit nil :stipple ,(indent-bars--stipple w h rot))))))
 
-(defun indent-bars--calculate-face-spec (depth &optional current-highlight)
+(defun indent-bars--calculate-face-spec (depth)
   "Calculate the face spec for indentation bar at an indentation DEPTH.
-DEPTH starts at 1.  If CURRENT-HIGHLIGHT is non-nil, use the
-current depth highlight color."
-  (let* () ; no depth config just use main
-    `((t . ( :inherit indent-bars-stipple
-            :foreground ,(indent-bars--get-color depth current-highlight))))))
+DEPTH starts at 1."
+  `((t . ( :inherit indent-bars-stipple
+          :foreground ,(indent-bars--get-color depth)))))
 
 (defun indent-bars--create-faces (num &optional redefine)
   "Create bar faces up to depth NUM, redefining them if REDEFINE is non-nil.



reply via email to

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