[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/golden-ratio 38948457fd 48/95: Merge remote-tracking branc
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/golden-ratio 38948457fd 48/95: Merge remote-tracking branch 'refs/remotes/upstream/master' |
Date: |
Thu, 7 Sep 2023 22:02:12 -0400 (EDT) |
branch: elpa/golden-ratio
commit 38948457fdd972c65e8076c49bc1855a750eeebe
Merge: ac6ca479cc 807c441682
Author: Thierry Volpiatto <thierry.volpiatto@gmail.com>
Commit: Thierry Volpiatto <thierry.volpiatto@gmail.com>
Merge remote-tracking branch 'refs/remotes/upstream/master'
---
golden-ratio.el | 15 ++++++++++++---
1 file changed, 12 insertions(+), 3 deletions(-)
diff --git a/golden-ratio.el b/golden-ratio.el
index eb3601c58e..1ef0ca9f7c 100644
--- a/golden-ratio.el
+++ b/golden-ratio.el
@@ -56,7 +56,7 @@ will not cause the window to be resized to the golden ratio."
"List of extra commands used to jump to other window."
:group 'golden-ratio
:type '(repeat symbol))
-
+
;;; Compatibility
;;
(unless (fboundp 'window-resizable-p)
@@ -108,6 +108,11 @@ will not cause the window to be resized to the golden
ratio."
(around golden-ratio-resize-window)
(prog1 ad-do-it (golden-ratio)))
+(when (fboundp 'select-window-by-number)
+ (defadvice select-window-by-number
+ (after golden-ratio-resize-window)
+ (golden-ratio) nil))
+
(defun golden-ratio--post-command-hook ()
(when (or (memq this-command golden-ratio-extra-commands)
(and (consp this-command) ; A lambda form.
@@ -126,11 +131,15 @@ will not cause the window to be resized to the golden
ratio."
(add-hook 'window-configuration-change-hook 'golden-ratio)
(add-hook 'post-command-hook 'golden-ratio--post-command-hook)
(ad-activate 'other-window)
- (ad-activate 'pop-to-buffer))
+ (ad-activate 'pop-to-buffer)
+ (when (fboundp 'select-window-by-number)
+ (ad-activate 'select-window-by-number)))
(remove-hook 'window-configuration-change-hook 'golden-ratio)
(remove-hook 'post-command-hook 'golden-ratio--post-command-hook)
(ad-deactivate 'other-window)
- (ad-activate 'pop-to-buffer)))
+ (ad-deactivate 'pop-to-buffer)
+ (when (fboundp 'select-window-by-number)
+ (ad-deactivate 'select-window-by-number))))
(provide 'golden-ratio)
- [nongnu] elpa/golden-ratio 0d7e18325d 33/95: Merge pull request #1 from thierryvolpiatto/exp, (continued)
- [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, 2023/09/07
- [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 <=
- [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
- [nongnu] elpa/golden-ratio 892e668685 55/95: * golden-ratio.el (golden-ratio): Fix Issue #32 don't recenter and scroll-right., ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio cb9ccd04bb 58/95: Also resize windows when using mouse, ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio 79ead1cba6 61/95: Merge pull request #35 from thierryvolpiatto/master, ELPA Syncer, 2023/09/07