[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/visual-fill-column 043485d16a 026/137: Rename ::window-bod
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/visual-fill-column 043485d16a 026/137: Rename ::window-body-width to ::window-max-text-width |
Date: |
Sun, 2 Jan 2022 22:59:09 -0500 (EST) |
branch: elpa/visual-fill-column
commit 043485d16a645c8c6df5d82bc77b8fc155a818aa
Author: Joost Kremers <joostkremers@fastmail.fm>
Commit: Joost Kremers <joostkremers@fastmail.fm>
Rename ::window-body-width to ::window-max-text-width
---
visual-fill-column.el | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/visual-fill-column.el b/visual-fill-column.el
index b1a21cb5db..3ab581d71b 100644
--- a/visual-fill-column.el
+++ b/visual-fill-column.el
@@ -100,11 +100,11 @@ in which `visual-line-mode' is active as well."
(set-window-fringes (selected-window) nil nil
visual-fill-column-fringes-outside-margins)
(visual-fill-column--set-margins))
-(defun visual-fill-column--window-body-width (&optional window)
- "Return the body width of WINDOW.
-The body width here refers to the width of the text area plus the
-margins, but excluding the fringes, scroll bar and right
-divider. WINDOW defaults to the selected window."
+(defun visual-fill-column--window-max-text-width (&optional window)
+ "Return the maximum possible text width of WINDOW.
+The maximum possible text width is the width of the current text
+area plus the margins, but excluding the fringes, scroll bar and
+right divider. WINDOW defaults to the selected window."
(or window (setq window (selected-window)))
(let ((margins (window-margins window)))
(+ (window-width window)
@@ -115,7 +115,7 @@ divider. WINDOW defaults to the selected window."
"Set window margins for the current window."
;; calculate left & right margins
(let* ((window (selected-window))
- (total-width (visual-fill-column--window-body-width window))
+ (total-width (visual-fill-column--window-max-text-width window))
(width (or visual-fill-column-width
fill-column))
(margins (if (< (- total-width width) 0) ; margins must be >= 0
- [nongnu] elpa/visual-fill-column 5f5928fd7f 045/137: Merge pull request #19 from cpitclaudel/master, (continued)
- [nongnu] elpa/visual-fill-column 5f5928fd7f 045/137: Merge pull request #19 from cpitclaudel/master, ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column 34ce0d22da 072/137: Guard against non-existing mouse events, ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column 0044394939 054/137: Make some changes to the README.md, ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column 982606896e 077/137: Change :group parameter of defgroup to `text`., ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column d97017e9bc 058/137: Use correct option `visual-fill-column-fringes-outside-margins' in README., ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column d05a7e9c62 004/137: Allow `visual-fill-column-width` to be set to an integer., ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column b63174ec24 006/137: Update README, ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column d3ebba9e60 009/137: Update version number in header block., ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column 7bf332089a 012/137: Fix typo., ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column 261e27c062 024/137: Update version number to 1.5, ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column 043485d16a 026/137: Rename ::window-body-width to ::window-max-text-width,
ELPA Syncer <=
- [nongnu] elpa/visual-fill-column 96ac324638 031/137: Remove spurious empty line., ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column 4329831dd0 030/137: Add alternative function for `split-window-preferred-function'., ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column 9cae9dbfd9 041/137: Set window-parameter `split-window' only in Emacs 25 and up., ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column 98438fa2b8 048/137: Update version number., ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column 57c2a72d46 053/137: Merge pull request #26 from sten0/master, ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column 8d1326de10 090/137: Update the README., ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column 6e9f35600d 099/137: Remove spurious line from `visual-fill-column--reset-window'., ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column a5332e9625 103/137: Update the README., ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column f7c0aab5c6 102/137: Splitting windows: get things right., ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column 4c86aebd2b 097/137: Make the argument of visual-fill-column--adjust-window optional., ELPA Syncer, 2022/01/02