[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/page-break-lines 36d3f93a23 34/80: More efficiently update
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/page-break-lines 36d3f93a23 34/80: More efficiently update display tables |
Date: |
Tue, 5 Sep 2023 04:03:06 -0400 (EDT) |
branch: elpa/page-break-lines
commit 36d3f93a23b767e7558b9c90f3631b03ce9fbdce
Author: Steve Purcell <steve@sanityinc.com>
Commit: Steve Purcell <steve@sanityinc.com>
More efficiently update display tables
---
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 b826bdbf64..becf18a974 100644
--- a/page-break-lines.el
+++ b/page-break-lines.el
@@ -116,14 +116,14 @@ 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
- (let ((width (- (window-width window) 1)))
+ (progn
(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 width
- page-break-lines-char)))))
+ (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] branch elpa/page-break-lines created (now 5e9ed86bb5), ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines 9c3140f88c 06/80: Docstring updates, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines b836f614db 09/80: Better docstring for customization group, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines dd8387ab74 08/80: Indentation fix, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines 2298a8769a 21/80: Also enable by default in scheme and lisp modes, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines 71f1eacbaf 07/80: Add missing autoload, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines 502aee8208 16/80: Add more information about font width issue, and provide workaround, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines 260bdd6a86 24/80: Also shorten rule by one character in console windows (fixes #6), ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines 610887764e 27/80: Update MELPA URLs, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines 36d3f93a23 34/80: More efficiently update display tables,
ELPA Syncer <=
- [nongnu] elpa/page-break-lines 92d7d1b699 33/80: Also update display tables via after-setting-font-hook, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines 965bc23670 03/80: Add a basic README, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines d1d87ba829 17/80: Mark up code in README as lisp, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines 5d0e9d140a 22/80: Add help-mode to the list of default modes, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines b75fe828dc 26/80: Add MELPA badges, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines eb42a4150d 19/80: Omit redundant buffer argument to minibufferp, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines 17ef8e30de 64/80: Add FUNDING.yml, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines ae1c006598 52/80: Current code requires Emacs 24.4, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines 2da89cae7d 66/80: Add fboundp check for line-number-display-width, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines 79eca86e06 78/80: Add Emacs 28.2 to CI, cut down size of matrix, ELPA Syncer, 2023/09/05