[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/page-break-lines 6f19d894bd 59/80: Merge pull request #22
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/page-break-lines 6f19d894bd 59/80: Merge pull request #22 from camdez/max-width |
Date: |
Tue, 5 Sep 2023 04:03:07 -0400 (EDT) |
branch: elpa/page-break-lines
commit 6f19d894bda6a981c10a58df5e23419f4d2ba353
Merge: 9b509e2cb2 4864661bf6
Author: Steve Purcell <steve@sanityinc.com>
Commit: GitHub <noreply@github.com>
Merge pull request #22 from camdez/max-width
Max width
---
page-break-lines.el | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/page-break-lines.el b/page-break-lines.el
index 450168121b..fa83aa5e74 100644
--- a/page-break-lines.el
+++ b/page-break-lines.el
@@ -75,6 +75,13 @@
:type '(choice (const :tag "No lighter" "") string)
:group 'page-break-lines)
+;;;###autoload
+(defcustom page-break-lines-max-width nil
+ "If non-nil, maximum width (in characters) of page break indicator.
+If nil, indicator will span the width of the frame."
+ :type '(choice integer (const :tag "Full width" nil))
+ :group 'page-break-lines)
+
;;;###autoload
(defcustom page-break-lines-modes
'(emacs-lisp-mode lisp-mode scheme-mode compilation-mode outline-mode
help-mode)
@@ -133,6 +140,9 @@ its display table will be modified as necessary."
0)))
(width (- (/ wwidth-pix (frame-char-width) cwidth)
(if (display-graphic-p) 0 1)))
+ (width (if page-break-lines-max-width
+ (min width page-break-lines-max-width)
+ width))
(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 610dbdc9d3 51/80: Perform width calculations pixel-wise to increase accuracy, (continued)
- [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
- [nongnu] elpa/page-break-lines e9fe243810 32/80: Prefer Package-Version header to Version, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines 2b8b800e1d 36/80: Merge pull request #8 from peniblec/mode-line-indicator, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines a550e8d534 65/80: Add CI, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines 29f9314f8e 47/80: Handle the new native display-line-number functionality, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines 4e5034de4b 43/80: Adjust the length according to the width of page-break-lines-char, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines 6f19d894bd 59/80: Merge pull request #22 from camdez/max-width,
ELPA Syncer <=
- [nongnu] elpa/page-break-lines 28783cd6b8 76/80: Replace deprecated function name in README, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines f8c4cd7fc6 68/80: Add Emacs 27.1 to CI, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines cff419b126 01/80: Initial commit, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines a74fba388e 04/80: Convert to separate minor-mode and global-minor-mode variants., ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines 24fee30edf 70/80: Merge pull request #32 from MicahElliott/master, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines d310e75652 05/80: Rename face from page-break-lines-face to page-break-lines, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines 58c0dd0ace 10/80: Add blog/twitter links, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines 908581b869 23/80: Shorten rule width slightly when word-wrap is on (see #5), ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines 55d36c6af4 12/80: Merge pull request #1 from lunaryorn/patch-1, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines 87e801efb8 55/80: Merge pull request #20 from peniblec/master, ELPA Syncer, 2023/09/05