[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/golden-ratio e66acd10ae 41/95: * golden-ratio.el (window-h
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/golden-ratio e66acd10ae 41/95: * golden-ratio.el (window-height-after-balance, window-width-after-balance): Prefix with golden-ratio. |
Date: |
Thu, 7 Sep 2023 22:02:12 -0400 (EDT) |
branch: elpa/golden-ratio
commit e66acd10aeb490bd29fb0362395d0b7c3db20740
Author: Thierry Volpiatto <thierry.volpiatto@gmail.com>
Commit: Thierry Volpiatto <thierry.volpiatto@gmail.com>
* golden-ratio.el (window-height-after-balance,
window-width-after-balance): Prefix with golden-ratio.
---
golden-ratio.el | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/golden-ratio.el b/golden-ratio.el
index d2611bb1b9..77e31fa51d 100644
--- a/golden-ratio.el
+++ b/golden-ratio.el
@@ -62,14 +62,14 @@ will not cause the window to be resized to the golden
ratio."
(defun golden-ratio--resize-window (dimensions &optional window)
(with-selected-window (or window (selected-window))
- (let ((nrow (floor (- (first dimensions) (window-height-after-balance))))
- (ncol (floor (- (second dimensions) (window-width-after-balance)))))
+ (let ((nrow (floor (- (first dimensions)
(golden-ratio--window-height-after-balance))))
+ (ncol (floor (- (second dimensions)
(golden-ratio--window-width-after-balance)))))
(when (window-resizable-p (selected-window) nrow)
(enlarge-window nrow))
(when (window-resizable-p (selected-window) ncol t)
(enlarge-window ncol t)))))
-(defun window-width-after-balance ()
+(defun golden-ratio--window-width-after-balance ()
(let* ((size-ls (loop for i in (window-list)
unless (window-full-width-p i)
collect (window-width i)))
@@ -77,7 +77,7 @@ will not cause the window to be resized to the golden ratio."
(width (and size-ls (floor (/ (apply #'+ size-ls) len)))))
(if width (min (window-width) width) (window-width))))
-(defun window-height-after-balance ()
+(defun golden-ratio--window-height-after-balance ()
(let* ((size-ls (loop for i in (window-list)
unless (or (window-full-height-p i)
(not (window-full-width-p i)))
- [nongnu] elpa/golden-ratio 239eb4d9cb 29/95: (golden-ratio): scroll left., (continued)
- [nongnu] elpa/golden-ratio 239eb4d9cb 29/95: (golden-ratio): scroll left., ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio d877ceec2c 30/95: Remove commented line., ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio f547dee6ad 31/95: (golden-ratio-mode): fix lighter., ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio 0d7e18325d 33/95: Merge pull request #1 from thierryvolpiatto/exp, ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio 7646627bbf 34/95: * golden-ratio.el: Add group., ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio 07fc7d7f7b 35/95: Merge branch 'master' of github.com:thierryvolpiatto/golden-ratio.el, ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio 4871294c94 36/95: * golden-ratio.el (pop-to-buffer): Advice also pop-to-buffer., ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio 6e58cc5871 37/95: Merge branch 'origin-exp', ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio a19b9b0a3b 39/95: * golden-ratio.el: Fix window-resizable-p compatibility with 24.2., ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio 19bacbeaee 40/95: * golden-ratio.el (golden-ratio--resize-window): Remove unuseful nil arg., ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio e66acd10ae 41/95: * golden-ratio.el (window-height-after-balance, window-width-after-balance): Prefix with golden-ratio.,
ELPA Syncer <=
- [nongnu] elpa/golden-ratio 134156bbff 42/95: * golden-ratio.el: Allow running golden-ratio when switching with other commands than other-window., ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio 5411fb2798 45/95: Merge pull request #23 from thierryvolpiatto/master, ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio 38948457fd 48/95: Merge remote-tracking branch 'refs/remotes/upstream/master', ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio 25e95f7833 49/95: Merge pull request #27 from thierryvolpiatto/master, ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio 1df894012e 51/95: Merge pull request #28 from thierryvolpiatto/master, ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio 12b57a3904 53/95: * golden-ratio.el: Fix Issue #29, a typo., ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio 86ffa26952 54/95: Merge pull request #31 from thierryvolpiatto/master, ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio 0b90ffbf02 59/95: Delay window reconfig to fix autofollow, ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio 73e9bd7f94 57/95: Merge remote-tracking branch 'upstream/master', ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio 7da7dd7d53 60/95: * golden-ratio.el (golden-ratio-recenter): New user var, allow recentering, ELPA Syncer, 2023/09/07