[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/visual-fill-column 15b5cd1410 007/137: Remove option to us
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/visual-fill-column 15b5cd1410 007/137: Remove option to use a fraction for `visual-fill-column-width'. |
Date: |
Sun, 2 Jan 2022 22:59:07 -0500 (EST) |
branch: elpa/visual-fill-column
commit 15b5cd141072fc295abc41959318d70767b9fc44
Author: Joost Kremers <joostkremers@fastmail.fm>
Commit: Joost Kremers <joostkremers@fastmail.fm>
Remove option to use a fraction for `visual-fill-column-width'.
---
README.md | 2 +-
visual-fill-column.el | 17 +++++------------
2 files changed, 6 insertions(+), 13 deletions(-)
diff --git a/README.md b/README.md
index d83549ab81..67eef23eab 100644
--- a/README.md
+++ b/README.md
@@ -21,7 +21,7 @@ Widening the margin causes the fringe to be pushed inward.
Since the fringe is v
## Options ##
-`visual-fill-column-width`: column at which to wrap lines. If set to `nil`
(the default), use the value of `fill-column` instead. Can also be set to a
fraction between `0` and `1`, in which case the text width is relative to the
window width.
+`visual-fill-column-width`: column at which to wrap lines. If set to `nil`
(the default), use the value of `fill-column` instead.
`visual-fill-column-center-text`: if set to `t`, centre the text area in the
window. By default, the text is displayed at the window’s (left) edge,
mimicking the effect of `fill-column`.
diff --git a/visual-fill-column.el b/visual-fill-column.el
index a2dd473ca0..5368341ce7 100644
--- a/visual-fill-column.el
+++ b/visual-fill-column.el
@@ -37,13 +37,10 @@
(defcustom visual-fill-column-width nil
"Width of the text area.
By default, the global value of `fill-column' is used, but if
-this option is set to a value, it is used instead. Alternatively,
-the value can be specified relative to the window width. In this
-case, it must be a value between 0 and 1."
+this option is set to a value, it is used instead."
:group 'visual-fill-column
:type '(choice (const :tag "Use `fill-column'" :value nil)
- (integer :tag "Absolute width" :value 70)
- (float :tag "Relative width:" :value 0.5)))
+ (integer :tag "Specify width" :value 70)))
(make-variable-buffer-local 'visual-fill-column-width)
(put 'visual-fill-column-width 'safe-local-variable 'numberp)
@@ -119,13 +116,9 @@ in which `visual-line-mode' is active as well."
(total-width (window-total-width window))
(width (or visual-fill-column-width
fill-column))
- (margins (cond
- ((and (floatp width)
- (< 0 width 1))
- (- total-width (truncate (* total-width width))))
- (t (if (< (- total-width width) 0) ; margins must be >= 0
- 0
- (- total-width width)))))
+ (margins (if (< (- total-width width) 0) ; margins must be >= 0
+ 0
+ (- total-width width)))
(left (if visual-fill-column-center-text
(/ margins 2)
0))
- [nongnu] elpa/visual-fill-column db1ca8f337 016/137: Use set-window-fringes to set fringes outside the margins, (continued)
- [nongnu] elpa/visual-fill-column db1ca8f337 016/137: Use set-window-fringes to set fringes outside the margins, ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column 60d8a031d5 017/137: Do not use `window-total-width'., ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column 8b98476819 018/137: Update README.md, ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column 5908ad2422 019/137: Use package name in installation instructions, ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column 7ec32c974a 027/137: Some optical code improvements., ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column 6e6b71177d 025/137: Make calls to `add-hook' a bit more self-documenting., ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column 4223f9b6f9 034/137: Add PIXELWISE argument to visual-fill-column-split-window, ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column 62ecc38450 036/137: Make arguments of `visual-fill-column--split-window' optional., ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column 54b941caa6 057/137: Fix code quote in README., ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column 4b903a0adb 002/137: Implement visual-fill-column, ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column 15b5cd1410 007/137: Remove option to use a fraction for `visual-fill-column-width'.,
ELPA Syncer <=
- [nongnu] elpa/visual-fill-column a017cb2a1e 013/137: Update version number to 1.2, ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column ccecfac6ca 029/137: Handle window splitting., ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column 5e698470b6 038/137: Set window parameter properly in vfc-adjust-window, ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column 865c9b32ea 043/137: Merge pull request #16 from wbolster/patch-1, ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column 6c6074114d 068/137: Make visual-fill-column--adjust-frame global in `window-size-change-functions'., ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column c8d61f0287 070/137: Take line number width into account., ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column b3b953116b 046/137: Make `visual-fill-column-adjust-window' a public function., ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column 9a3a2ef3c7 074/137: Add Cask & ert-runner, ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column da5a8d688a 066/137: Merge pull request #35 from yuhan0/patch-1, ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column 772d4b25ba 073/137: Merge pull request #38 from peterwvj/patch-1, ELPA Syncer, 2022/01/02