[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/page-break-lines c133848345 44/80: Merge pull request #13
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/page-break-lines c133848345 44/80: Merge pull request #13 from knu/char-width |
Date: |
Tue, 5 Sep 2023 04:03:06 -0400 (EDT) |
branch: elpa/page-break-lines
commit c133848345ceef91e257aab8804c61f31c31b264
Merge: 65fc27e4c8 4e5034de4b
Author: Steve Purcell <steve@sanityinc.com>
Commit: GitHub <noreply@github.com>
Merge pull request #13 from knu/char-width
Adjust the length according to the width of page-break-lines-char
---
page-break-lines.el | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/page-break-lines.el b/page-break-lines.el
index f80a9e42b2..91ff51879a 100644
--- a/page-break-lines.el
+++ b/page-break-lines.el
@@ -119,7 +119,11 @@ its display table will be modified as necessary."
(setq buffer-display-table (make-display-table)))
(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))
+ (let* ((cwidth (char-width page-break-lines-char))
+ (wwidth (window-width window))
+ (width (if (zerop (% wwidth cwidth))
+ (1- (/ wwidth cwidth))
+ (/ wwidth cwidth)))
(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 c4283f580f 79/80: Release 0.15, (continued)
- [nongnu] elpa/page-break-lines c4283f580f 79/80: Release 0.15, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines 85cec0af15 11/80: Enable page-break-lines in outline-mode, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines fc6e1c648c 14/80: Merge pull request #2 from drothlis/derived-modes, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines 1f71eb258a 18/80: Add note about the use of text-scale-{increase, decrease}, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines 077aba9ced 20/80: Set checkdoc-minor-mode locally using var, not exec, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines a294b61364 30/80: Swap section order to avoid byte compilation warning, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines 9229260e88 39/80: Drop mention of marmalade, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines 128f1fe3eb 40/80: Not to intefere with buffers not in page-break-lines-modes., ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines 5e9ed86bb5 80/80: Ignore all .elc files, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines 69caea0703 74/80: Remove obsolete alias (fixes #33), ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines c133848345 44/80: Merge pull request #13 from knu/char-width,
ELPA Syncer <=