[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/page-break-lines 610dbdc9d3 51/80: Perform width calculati
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/page-break-lines 610dbdc9d3 51/80: Perform width calculations pixel-wise to increase accuracy |
Date: |
Tue, 5 Sep 2023 04:03:07 -0400 (EDT) |
branch: elpa/page-break-lines
commit 610dbdc9d39a37912e2b8bfbd3e3d15c7e5d622f
Author: Steve Purcell <steve@sanityinc.com>
Commit: Steve Purcell <steve@sanityinc.com>
Perform width calculations pixel-wise to increase accuracy
---
page-break-lines.el | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/page-break-lines.el b/page-break-lines.el
index b2feda82b0..dd65ba692d 100644
--- a/page-break-lines.el
+++ b/page-break-lines.el
@@ -126,12 +126,12 @@ its display table will be modified as necessary."
(let ((default-height (face-attribute 'default :height nil
'default)))
(set-face-attribute 'page-break-lines nil :height default-height)
(let* ((cwidth (char-width page-break-lines-char))
- (wwidth (- (window-width)
- (if (bound-and-true-p display-line-numbers)
- (+ (line-number-display-width) 2)
- 0)
- (if (display-graphic-p) 0 1)))
- (width (/ wwidth cwidth))
+ (wwidth-pix (- (window-width nil t)
+ (if (bound-and-true-p display-line-numbers)
+ (line-number-display-width t)
+ 0)))
+ (width (- (/ wwidth-pix (frame-char-width) cwidth)
+ (if (display-graphic-p) 0 1)))
(glyph (make-glyph-code page-break-lines-char
'page-break-lines))
(new-display-entry (vconcat (make-list width glyph))))
(unless (equal new-display-entry (elt buffer-display-table
?\^L))
- [nongnu] elpa/page-break-lines b72e1c4f96 02/80: Fix function names, (continued)
- [nongnu] elpa/page-break-lines b72e1c4f96 02/80: Fix function names, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines 5420486ed3 15/80: Rule can apparently extend safely to the full window width, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines fd3de66bb8 29/80: Mention @wasamasa's similar form-feed package, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines 17b60b19aa 28/80: Add screenshot, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines ac91cf5703 25/80: Always shorten rule by 1 character relative to window width, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines 8c0c47dd22 35/80: Make mode line indicator customizable, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines 67b5928a7f 38/80: Keep the correct ine width even when text-scale-mode is active, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines 65fc27e4c8 42/80: Remove turn-on/turn-off functions, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines 614293efeb 56/80: Fix docstring reference to page-break-lines-char, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines b8082232c5 45/80: Autoload customizable variables, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines 610dbdc9d3 51/80: Perform width calculations pixel-wise to increase accuracy,
ELPA Syncer <=
- [nongnu] elpa/page-break-lines 913732ad06 49/80: Fix minor package-lint issues, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines 314b397910 67/80: Revert "Prefer set-display-table-slot to raw aset", ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines ba4f69f4af 69/80: Add README reference to Emacs “pages” and their bindings, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines 34cd91d841 73/80: Fix other link, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines e9fe243810 32/80: Prefer Package-Version header to Version, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines 2b8b800e1d 36/80: Merge pull request #8 from peniblec/mode-line-indicator, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines a550e8d534 65/80: Add CI, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines 29f9314f8e 47/80: Handle the new native display-line-number functionality, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines 4e5034de4b 43/80: Adjust the length according to the width of page-break-lines-char, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines 6f19d894bd 59/80: Merge pull request #22 from camdez/max-width, ELPA Syncer, 2023/09/05