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

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

[nongnu] elpa/gnuplot a885233 124/184: Cleanup workaround for window-ful


From: ELPA Syncer
Subject: [nongnu] elpa/gnuplot a885233 124/184: Cleanup workaround for window-full-height-p
Date: Sun, 29 Aug 2021 11:03:29 -0400 (EDT)

branch: elpa/gnuplot
commit a885233bd9b99638e8ef208a902d1b0079cc18e5
Author: joddie <jonxfield@gmail.com>
Commit: joddie <jonxfield@gmail.com>

    Cleanup workaround for window-full-height-p
---
 gnuplot.el | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/gnuplot.el b/gnuplot.el
index a9fc483..6e25b15 100644
--- a/gnuplot.el
+++ b/gnuplot.el
@@ -382,14 +382,14 @@ real work."
         (comint-dynamic-complete))))
 
 ;; Work around missing `window-full-height-p'
-(if (not (fboundp 'window-full-height-p))
-    ;; The below is taken from GNU Emacs window.el
-    (defun gnuplot-window-full-height-p (&optional window)
+(if (fboundp 'window-full-height-p)
+    (defalias 'gnuplot-window-full-height-p 'window-full-height-p)
+  ;; The below is taken from window.el in GNU Emacs
+  (defun gnuplot-window-full-height-p (&optional window)
       (unless window
        (setq window (selected-window)))
       (= (window-height window)
-        (window-height (frame-root-window (window-frame window)))))
-  (defalias 'gnuplot-window-full-height-p 'window-full-height-p))
+        (window-height (frame-root-window (window-frame window))))))
 
 ;; Workaround for differing eval-after-load behavior
 (defun gnuplot--run-after-load (fun)



reply via email to

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