[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/indent-bars 169b85f092 068/431: README: update stipple
From: |
ELPA Syncer |
Subject: |
[elpa] externals/indent-bars 169b85f092 068/431: README: update stipple test |
Date: |
Mon, 16 Sep 2024 12:59:15 -0400 (EDT) |
branch: externals/indent-bars
commit 169b85f0929fe051e660b4dd2b583ddd11aad7f5
Author: JD Smith <93749+jdtsmith@users.noreply.github.com>
Commit: GitHub <noreply@github.com>
README: update stipple test
---
README.md | 20 +++++++++++++-------
1 file changed, 13 insertions(+), 7 deletions(-)
diff --git a/README.md b/README.md
index f3b65d8ebc..1215453775 100644
--- a/README.md
+++ b/README.md
@@ -92,17 +92,23 @@ Stipples are repeating patterns anchored to the entire
emacs frame. `indent-bar
### Testing Stipples
-If you are having issues and would like to determine if stipples are working
correctly in your version of emacs, enter (via `M-:` or in the `*scratch*`
buffer, hitting `C-x C-e` just after it):
+If you are experiencing issues with bar display, and would like to determine
if stipples are working correctly in your version of emacs, enter (in the
`*scratch*` buffer, hitting `C-x C-e` just after the last `)`):
```elisp
-(let ((w (window-font-width)))
- (set-face-stipple
- 'default
- `(,w 1 ,(apply #'unibyte-string
- (append (make-list (1- (/ (+ w 7) 8)) ?\0) '(1))))))
+(let* ((w (window-font-width))
+ (stipple `(,w 1 ,(apply #'unibyte-string
+ (append (make-list (1- (/ (+ w 7) 8)) ?\0)
+ '(1))))))
+ (insert "\n" (propertize (concat (make-string 15 ?\s)
+ "THIS IS A TEST"
+ (make-string 15 ?\s))
+ 'face `(:background "red" :foreground "blue"
:stipple ,stipple))))
```
-and you should see a "jailbar" pattern in the default foreground color across
all windows.
+which should then look something like:
+
+<img width="668" alt="image"
src="https://github.com/jdtsmith/indent-bars/assets/93749/dd0f65f5-3cdc-4865-a66d-41365cecadd0";>
+
### Per-buffer stipple offsets
To get the bars in the right place, `indent-bars` must consider the starting
horizontal pixel position of the current window, and adjust the stipple pattern
accordingly. It does this automatically, per buffer, so you shouldn't ever
notice problems, even when re-sizing or re-arranging windows, changing font
size, etc.
- [elpa] externals/indent-bars 257b723c72 014/431: Use stipple-rot for rotating stipple, (continued)
- [elpa] externals/indent-bars 257b723c72 014/431: Use stipple-rot for rotating stipple, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 2452b96761 021/431: Simplify create-faces, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 00a26de005 020/431: rename indentation->depth, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars fa1d59893f 026/431: Some custom doc improvements, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 73af2efff2 029/431: change bar pattern and blend defaults, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 69d3b3924c 091/431: format FAQs, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars c5ccaf5926 067/431: Update README.md, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars f4f2cba7c9 060/431: Add zz example, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 6ec3e9b24b 052/431: Add more info on dual-buffer stipple issue, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 96d64efa43 064/431: Update README.md, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 169b85f092 068/431: README: update stipple test,
ELPA Syncer <=
- [elpa] externals/indent-bars 759a80e5cf 082/431: Bump version, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 9935c0f9a2 105/431: teardown no-stipple-chars, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 01583822ab 095/431: New example image, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 6f0f2bf5ce 092/431: Update README.md, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 55d8ef1711 096/431: Update README.md, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 180b6ab95c 053/431: Mention stipple compatibility, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 5eb33cc94f 085/431: Update README.md, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 7da1a4a2a4 107/431: Update examples.md, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 54d15a437d 122/431: customize and var name tweaks, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 77aec85ad0 124/431: Merge branch 'treesit' into dev, ELPA Syncer, 2024/09/16