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

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

[elpa] externals/posframe 3543f16 8/9: Fix void-function fit-frame-to-bu


From: Feng Shu
Subject: [elpa] externals/posframe 3543f16 8/9: Fix void-function fit-frame-to-buffer-1 #86
Date: Tue, 12 Jan 2021 22:15:07 -0500 (EST)

branch: externals/posframe
commit 3543f1616a6a27a9156403d8677f04ec2f7fc129
Author: Feng Shu <tumashu@163.com>
Commit: Feng Shu <tumashu@163.com>

    Fix void-function fit-frame-to-buffer-1 #86
    
    Fix frame fit when there are leading or trailing spaces #85 (again)
---
 posframe.el | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/posframe.el b/posframe.el
index 37254f2..e313946 100644
--- a/posframe.el
+++ b/posframe.el
@@ -720,8 +720,13 @@ will be removed."
 (defun posframe--fit-frame-to-buffer (posframe height min-height width 
min-width)
   ;; This only has effect if the user set the latter var to `hide'.
   (let ((x-gtk-resize-child-frames posframe-gtk-resize-child-frames))
-    (fit-frame-to-buffer
-     posframe height min-height width min-width)))
+    ;; More info: Don't skip empty lines when fitting mini frame to buffer 
(Bug#44080)
+    ;; 
http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=e0de9f3295b4c46cb7198ec0b9634809d7b7a36d
+    (if (version< emacs-version "27.2")
+        (fit-frame-to-buffer
+         posframe height min-height width min-width)
+      (fit-frame-to-buffer-1
+       posframe height min-height width min-width nil nil nil))))
 
 (defun posframe--set-frame-size (posframe height min-height width min-width)
   "Set POSFRAME's size.



reply via email to

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