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

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

[elpa] externals/posframe 94719253d6: Use parent frame's font when font


From: ELPA Syncer
Subject: [elpa] externals/posframe 94719253d6: Use parent frame's font when font is not set. #119
Date: Mon, 12 Dec 2022 13:57:59 -0500 (EST)

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

    Use parent frame's font when font is not set. #119
---
 posframe.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/posframe.el b/posframe.el
index a32684acbd..37e15b9784 100644
--- a/posframe.el
+++ b/posframe.el
@@ -229,8 +229,6 @@ ACCEPT-FOCUS."
                           (cons 'foreground-color foreground-color))
                        ,(when background-color
                           (cons 'background-color background-color))
-                       ,(when font
-                          (cons 'font font))
                        (title . "posframe")
                        (parent-frame . ,parent-frame)
                        (keep-ratio ,keep-ratio)
@@ -265,6 +263,9 @@ ACCEPT-FOCUS."
                        ;; Do not save child-frame when use desktop.el
                        (desktop-dont-save . t))))
         (set-frame-parameter posframe--frame 'last-args args)
+        (set-frame-parameter
+         posframe--frame 'font
+         (or font (face-attribute 'default :font parent-frame)))
         (when border-color
          (set-face-background
            (if (facep 'child-frame-border)



reply via email to

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