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

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

[elpa] externals/posframe 8a2bfe9: * posframe.el (posframe--create-posfr


From: ELPA Syncer
Subject: [elpa] externals/posframe 8a2bfe9: * posframe.el (posframe--create-posframe): Do not use posframe--frame's default face.
Date: Sun, 31 Oct 2021 20:57:28 -0400 (EDT)

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

    * posframe.el (posframe--create-posframe): Do not use posframe--frame's 
default face.
    
      (face-attribute 'default :background posframe--frame)
    
    may crashes emacs in MacOS.
---
 posframe.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/posframe.el b/posframe.el
index ba39010..77a1ff4 100644
--- a/posframe.el
+++ b/posframe.el
@@ -265,7 +265,7 @@ ACCEPT-FOCUS."
           (when (version< emacs-version "28.0")
             (set-frame-parameter
              posframe--frame 'background-color
-             (face-attribute 'default :background posframe--frame))))
+             (or background-color (face-attribute 'default :background)))))
         (let ((posframe-window (frame-root-window posframe--frame)))
           ;; This method is more stable than 'setq mode/header-line-format nil'
           (unless respect-mode-line



reply via email to

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