[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/page-break-lines 67b5928a7f 38/80: Keep the correct ine wi
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/page-break-lines 67b5928a7f 38/80: Keep the correct ine width even when text-scale-mode is active |
Date: |
Tue, 5 Sep 2023 04:03:06 -0400 (EDT) |
branch: elpa/page-break-lines
commit 67b5928a7f14568baf2716b5741e13659a86b9ea
Author: Steve Purcell <steve@sanityinc.com>
Commit: Steve Purcell <steve@sanityinc.com>
Keep the correct ine width even when text-scale-mode is active
Thanks @cpitclaudel!
---
page-break-lines.el | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/page-break-lines.el b/page-break-lines.el
index ebb530dc16..11715799e2 100644
--- a/page-break-lines.el
+++ b/page-break-lines.el
@@ -125,11 +125,13 @@ its display table will be modified as necessary."
(progn
(unless buffer-display-table
(setq buffer-display-table (make-display-table)))
- (let* ((width (- (window-width window) 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))
- (aset buffer-display-table ?\^L new-display-entry))))
+ (let ((default-height (face-attribute 'default :height nil
'default)))
+ (set-face-attribute 'page-break-lines nil :height default-height)
+ (let* ((width (- (window-width window) 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))
+ (aset buffer-display-table ?\^L new-display-entry)))))
(when buffer-display-table
(aset buffer-display-table ?\^L nil)))))
- [nongnu] elpa/page-break-lines 4864661bf6 58/80: Allow specifying maximum width of page break indicator, (continued)
- [nongnu] elpa/page-break-lines 4864661bf6 58/80: Allow specifying maximum width of page break indicator, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines 9b509e2cb2 57/80: Merge pull request #21 from kyleam/fix-var-ref, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines 6a7dd69727 63/80: Enable lexical-binding, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines 460567485e 71/80: Tidy up readme links. prefer https, update footer, ELPA Syncer, 2023/09/05
- [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 <=
- [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, 2023/09/05
- [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