[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/page-break-lines a294b61364 30/80: Swap section order to a
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/page-break-lines a294b61364 30/80: Swap section order to avoid byte compilation warning |
Date: |
Tue, 5 Sep 2023 04:03:05 -0400 (EDT) |
branch: elpa/page-break-lines
commit a294b61364b15f52a6ef315501e852b70964130f
Author: Steve Purcell <steve@sanityinc.com>
Commit: Steve Purcell <steve@sanityinc.com>
Swap section order to avoid byte compilation warning
---
page-break-lines.el | 46 +++++++++++++++++++++++-----------------------
1 file changed, 23 insertions(+), 23 deletions(-)
diff --git a/page-break-lines.el b/page-break-lines.el
index af948a0566..3d2943ff56 100644
--- a/page-break-lines.el
+++ b/page-break-lines.el
@@ -83,29 +83,6 @@ displayed as a junk character."
-(defun page-break-lines--update-display-table (window)
- "Modify a display-table that displays page-breaks prettily.
-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)))
- (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)))))
- (when buffer-display-table
- (aset buffer-display-table ?\^L nil)))))
-
-(defun page-break-lines--update-display-tables ()
- "Function called for updating display table."
- (mapc 'page-break-lines--update-display-table (window-list nil
'no-minibuffer)))
-
-
-
;;;###autoload
(define-minor-mode page-break-lines-mode
"Toggle Page Break Lines mode.
@@ -132,6 +109,29 @@ horizontal line of `page-break-string-char' characters."
+(defun page-break-lines--update-display-table (window)
+ "Modify a display-table that displays page-breaks prettily.
+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)))
+ (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)))))
+ (when buffer-display-table
+ (aset buffer-display-table ?\^L nil)))))
+
+(defun page-break-lines--update-display-tables ()
+ "Function called for updating display table."
+ (mapc 'page-break-lines--update-display-table (window-list nil
'no-minibuffer)))
+
+
+
;;;###autoload
(defun page-break-lines-mode-maybe ()
"Enable `page-break-lines-mode' in the current buffer if desired.
- [nongnu] elpa/page-break-lines 6fb993a420 61/80: There's no need to autoload the custom vars, (continued)
- [nongnu] elpa/page-break-lines 6fb993a420 61/80: There's no need to autoload the custom vars, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines 5872e5d51c 54/80: Fix disabling when major mode is derived from one of p-b-l-modes, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines fd3b7e38ad 53/80: Drop redundant byte-compile-warnings flag, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines cc283621c6 77/80: Add Emacs 28.1 to CI matrix, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines 3b8549cd41 75/80: Add Emacs 27.2 to CI matrix, ELPA Syncer, 2023/09/05
- [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 <=
- [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, 2023/09/05