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

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

[elpa] externals/posframe b71b530 05/16: Simplify posframe--set-frame-si


From: Feng Shu
Subject: [elpa] externals/posframe b71b530 05/16: Simplify posframe--set-frame-size
Date: Thu, 21 May 2020 00:57:30 -0400 (EDT)

branch: externals/posframe
commit b71b530ff73b56f956097d844db2cd66dc0e632b
Author: Feng Shu <address@hidden>
Commit: Feng Shu <address@hidden>

    Simplify posframe--set-frame-size
---
 posframe.el | 15 ++++-----------
 1 file changed, 4 insertions(+), 11 deletions(-)

diff --git a/posframe.el b/posframe.el
index 1a5041e..d93c5d3 100644
--- a/posframe.el
+++ b/posframe.el
@@ -649,17 +649,10 @@ will be removed."
   "Set POSFRAME's size.
 It will set the size by the POSFRAME's HEIGHT, MIN-HEIGHT
 WIDTH and MIN-WIDTH."
-  (if (and width height)
-      (unless (equal posframe--last-posframe-size
-                     (list height min-height width min-width))
-        (fit-frame-to-buffer
-         posframe height min-height width min-width)
-        (setq-local posframe--last-posframe-size
-                    (list height min-height width min-width)))
-    (fit-frame-to-buffer
-     posframe height min-height width min-width)
-    (setq-local posframe--last-posframe-size
-                (list height min-height width min-width))))
+  (fit-frame-to-buffer
+   posframe height min-height width min-width)
+  (setq-local posframe--last-posframe-size
+              (list height min-height width min-width)))
 
 (defun posframe--set-frame-position (posframe position
                                               parent-frame-width



reply via email to

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