[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/page-break-lines ac91cf5703 25/80: Always shorten rule by
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/page-break-lines ac91cf5703 25/80: Always shorten rule by 1 character relative to window width |
Date: |
Tue, 5 Sep 2023 04:03:05 -0400 (EDT) |
branch: elpa/page-break-lines
commit ac91cf570314dfe541a3b9e34cafaff9e81dd63e
Author: Steve Purcell <steve@sanityinc.com>
Commit: Steve Purcell <steve@sanityinc.com>
Always shorten rule by 1 character relative to window width
With Emacs 24.4, this seems to yield a full-length rule without a gap at
right. On older versions, it might cause the rule to be too short. It
might be necessary to include an Emacs version check for optimal
behaviour.
---
page-break-lines.el | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/page-break-lines.el b/page-break-lines.el
index dabfefad5e..af948a0566 100644
--- a/page-break-lines.el
+++ b/page-break-lines.el
@@ -89,14 +89,13 @@ If the buffer inside WINDOW has `page-break-lines-mode'
enabled,
its display table will be modified as necessary."
(with-current-buffer (window-buffer window)
(if page-break-lines-mode
- (progn
+ (let ((width (- (window-width window) 1)))
(unless buffer-display-table
(setq buffer-display-table (make-display-table)))
(aset buffer-display-table ?\^L
(vconcat (mapcar (lambda (c)
(make-glyph-code c 'page-break-lines))
- (make-list (- (window-width window)
- (if (or word-wrap (null
window-system)) 1 0))
+ (make-list width
page-break-lines-char)))))
(when buffer-display-table
(aset buffer-display-table ?\^L nil)))))
- [nongnu] elpa/page-break-lines 925447ac16 31/80: Update copyright year, (continued)
- [nongnu] elpa/page-break-lines 925447ac16 31/80: Update copyright year, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines 28a152d9b2 41/80: Merge pull request #11 from xahlee/master, ELPA Syncer, 2023/09/05
- [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 <=
- [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, 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