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

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

[elpa] externals/posframe 8a76d75aa8 3/3: * posframe.el (posframe--creat


From: ELPA Syncer
Subject: [elpa] externals/posframe 8a76d75aa8 3/3: * posframe.el (posframe--create-posframe): Update comment.
Date: Fri, 7 Jan 2022 18:57:40 -0500 (EST)

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

    * posframe.el (posframe--create-posframe): Update comment.
---
 posframe.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/posframe.el b/posframe.el
index e2cd8defdd..c0b028794e 100644
--- a/posframe.el
+++ b/posframe.el
@@ -201,8 +201,8 @@ ACCEPT-FOCUS."
       (unless respect-header-line
         (setq-local header-line-format nil))
 
-      ;; Find existing posframe: Sometimes, the buffer of posframe
-      ;; will be recreated by other packages, so we should find
+      ;; Find existing posframe: buffer-local variables used by
+      ;; posframe can be cleaned by other packages, so we should find
       ;; existing posframe first if possible.
       (unless (or posframe--frame posframe--last-args)
         (setq-local posframe--frame
@@ -283,6 +283,8 @@ ACCEPT-FOCUS."
           (unless respect-header-line
             (set-window-parameter posframe-window 'header-line-format 'none))
           (set-window-buffer posframe-window buffer)
+          ;; When the buffer of posframe is killed, the child-frame of
+          ;; this posframe will be deleted too.
           (set-window-dedicated-p posframe-window t)))
 
       ;; Remove tab-bar always.



reply via email to

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