[Top][All Lists]

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

[elpa] master d8ec23d 13/33: posframe-hide-frame -> posframe--make-frame

From: Feng Shu
Subject: [elpa] master d8ec23d 13/33: posframe-hide-frame -> posframe--make-frame-invisible
Date: Fri, 14 Dec 2018 06:21:15 -0500 (EST)

branch: master
commit d8ec23d41c40eff70e4c63a8b3c3b5bdf735c82e
Author: Feng Shu <address@hidden>
Commit: Feng Shu <address@hidden>

    posframe-hide-frame -> posframe--make-frame-invisible
    posframe-hide-frame is a good name, may be used as user commands
    in the future.
 posframe.el | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/posframe.el b/posframe.el
index 35b8fab..9fa4d74 100644
--- a/posframe.el
+++ b/posframe.el
@@ -475,9 +475,9 @@ This need PARENT-FRAME-WIDTH and PARENT-FRAME-HEIGHT"
       (cancel-timer posframe--timeout-timer))
     (setq-local posframe--timeout-timer
-                 secs nil #'posframe-hide-frame posframe))))
+                 secs nil #'posframe--make-frame-invisible posframe))))
-(defun posframe-hide-frame (frame)
+(defun posframe--make-frame-invisible (frame)
   "This function used to instead `make-frame-invisible' to make hide frame 
   (when (frame-live-p frame)
     (make-frame-invisible frame)))
@@ -508,7 +508,7 @@ WIDTH and MIN-WIDTH."
     (let ((buffer-info (frame-parameter frame 'posframe-buffer)))
       (when (or (equal posframe-buffer (car buffer-info))
                 (equal posframe-buffer (cdr buffer-info)))
-        (posframe-hide-frame frame)))))
+        (posframe--make-frame-invisible frame)))))
 (defun posframe-delete (posframe-buffer)
   "Delete posframe which buffer POSFRAME-BUFFER."
@@ -542,7 +542,7 @@ This posframe's buffer is POSFRAME-BUFFER."
   (dolist (frame (frame-list))
     (let ((buffer-info (frame-parameter frame 'posframe-buffer)))
-      (when buffer-info (posframe-hide-frame frame)))))
+      (when buffer-info (posframe--make-frame-invisible frame)))))
 (defun posframe-delete-all ()

reply via email to

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