[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/golden-ratio 6173b7c416 64/95: Prevent recenter error in p
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/golden-ratio 6173b7c416 64/95: Prevent recenter error in post-command-hook for emacs-25. |
Date: |
Thu, 7 Sep 2023 22:02:14 -0400 (EDT) |
branch: elpa/golden-ratio
commit 6173b7c4165b056edbbd948d890dd3498f78138b
Author: Thierry Volpiatto <thierry.volpiatto@gmail.com>
Commit: Thierry Volpiatto <thierry.volpiatto@gmail.com>
Prevent recenter error in post-command-hook for emacs-25.
* golden-ratio.el (golden-ratio--post-command-hook): Delay call to
golden-ratio
until window to resize get its current-buffer.
This error happen only in emacs-25.
---
golden-ratio.el | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/golden-ratio.el b/golden-ratio.el
index 495c961ea8..b28e88bb75 100644
--- a/golden-ratio.el
+++ b/golden-ratio.el
@@ -120,7 +120,10 @@ will not cause the window to be resized to the golden
ratio."
(loop for com in golden-ratio-extra-commands
thereis (or (memq com this-command)
(memq (car-safe com) this-command)))))
- (golden-ratio)))
+ ;; This is needed in emacs-25 to avoid this error from `recenter':
+ ;; `recenter'ing a window that does not display current-buffer.
+ ;; This doesn't happen in emacs-24.4 and previous versions.
+ (run-with-idle-timer 0.01 nil (lambda () (golden-ratio)))))
(defun golden-ratio--mouse-leave-buffer-hook ()
(run-at-time 0.1 nil (lambda ()
- [nongnu] elpa/golden-ratio 550fb22580 32/95: * golden-ratio.el (window-width-after-balance, window-height-after-balance): new, (continued)
- [nongnu] elpa/golden-ratio 550fb22580 32/95: * golden-ratio.el (window-width-after-balance, window-height-after-balance): new, ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio 8f1cd6c9fd 38/95: * golden-ratio.el: make golden-ratio-mode global and recenter window., ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio 95a0633733 43/95: * golden-ratio.el: Finally allow reusing balance-windows safely. Most issues fixed now., ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio 549f94c2db 44/95: * golden-ratio.el: Clean up, add some commands. Ready to merge., ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio ac6ca479cc 47/95: (golden-ratio): use thereis in golden-ratio-inhibit-functions., ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio 807c441682 46/95: Add one extra advice to golden-ratio for window-numbering.el support, ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio ef1fba5902 50/95: * README.md: Update, ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio f4c0dbb164 52/95: Revert "Add one extra advice to golden-ratio for window-numbering.el support", ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio 33aa083b66 56/95: Merge pull request #33 from thierryvolpiatto/master, ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio cbd076aa12 62/95: Merge pull request #34 from hickinbottoms/fix-mouse-window-select, ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio 6173b7c416 64/95: Prevent recenter error in post-command-hook for emacs-25.,
ELPA Syncer <=
- [nongnu] elpa/golden-ratio 64ceb4f0c8 68/95: Added widescreens header to readme., ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio c506ddc04a 66/95: Added explanation of golden-ratio-adjust., ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio b343baac28 69/95: Added automatic scaling of width according to frame size., ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio d5413c832b 75/95: Fix types in golden-ratio-exclude-modes., ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio e47c29f87e 78/95: Trigger after split-window as well, ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio f7bee8e221 65/95: Added width adjustment to adjust for very wide frames., ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio 76f5307ad0 72/95: Merge pull request #43 from EricGebhart/master, ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio 0287ac76fd 76/95: Simplify `golden-ratio-mode', ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio 7593ba59b3 79/95: Merge pull request #48 from abo-abo/master, ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio ac9bcedc63 81/95: Reenable improvements removed by error when reverting last PR., ELPA Syncer, 2023/09/07