emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/golden-ratio a19b9b0a3b 39/95: * golden-ratio.el: Fix wind


From: ELPA Syncer
Subject: [nongnu] elpa/golden-ratio a19b9b0a3b 39/95: * golden-ratio.el: Fix window-resizable-p compatibility with 24.2.
Date: Thu, 7 Sep 2023 22:02:12 -0400 (EDT)

branch: elpa/golden-ratio
commit a19b9b0a3b96a3534539febc39112e3f8e6a6b4c
Author: Thierry Volpiatto <thierry.volpiatto@gmail.com>
Commit: Thierry Volpiatto <thierry.volpiatto@gmail.com>

    * golden-ratio.el: Fix window-resizable-p compatibility with 24.2.
---
 golden-ratio.el | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/golden-ratio.el b/golden-ratio.el
index 468103ebe0..c6607f5d61 100644
--- a/golden-ratio.el
+++ b/golden-ratio.el
@@ -51,6 +51,11 @@ will not cause the window to be resized to the golden ratio."
   :group 'golden-ratio
   :type 'hook)
 
+;;; Compatibility
+;;
+(unless (fboundp 'window-resizable-p)
+  (defalias 'window-resizable-p 'window--resizable-p))
+
 (defun golden-ratio--dimensions ()
   (list (floor (/ (frame-height) golden-ratio--value))
         (floor (/ (frame-width)  golden-ratio--value))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]