emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/page-break-lines 31f1fbe0e3 62/80: Prefer set-display-tabl


From: ELPA Syncer
Subject: [nongnu] elpa/page-break-lines 31f1fbe0e3 62/80: Prefer set-display-table-slot to raw aset
Date: Tue, 5 Sep 2023 04:03:08 -0400 (EDT)

branch: elpa/page-break-lines
commit 31f1fbe0e36423a9cd141b3595a31c0e9237da67
Author: Steve Purcell <steve@sanityinc.com>
Commit: Steve Purcell <steve@sanityinc.com>

    Prefer set-display-table-slot to raw aset
---
 page-break-lines.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/page-break-lines.el b/page-break-lines.el
index 2f71ecaf1d..a0f63fe709 100644
--- a/page-break-lines.el
+++ b/page-break-lines.el
@@ -141,10 +141,10 @@ its display table will be modified as necessary."
                      (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)))))
+                  (set-display-table-slot buffer-display-table ?\^L 
new-display-entry)))))
         (when (and (apply 'derived-mode-p page-break-lines-modes)
                    buffer-display-table)
-          (aset buffer-display-table ?\^L nil))))))
+          (set-display-table-slot buffer-display-table ?\^L nil))))))
 
 (defun page-break-lines--update-display-tables  (&optional frame)
   "Function called for updating display table in windows of FRAME."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]