branch: externals/posframe
commit 94719253d6a943ab5b42c62d6c8db6d3bc15e808
Author: Feng Shu <tuma...@163.com>
Commit: tumashu <tuma...@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