[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 0e031b3 02/33: posframe: posframe--last-position -> posfra
From: |
Feng Shu |
Subject: |
[elpa] master 0e031b3 02/33: posframe: posframe--last-position -> posframe--last-posframe-pixel-position |
Date: |
Fri, 14 Dec 2018 06:21:13 -0500 (EST) |
branch: master
commit 0e031b3543ea7afabdbe84111a110eccb3eb3fc7
Author: Feng Shu <address@hidden>
Commit: Feng Shu <address@hidden>
posframe: posframe--last-position -> posframe--last-posframe-pixel-position
* posframe.el (posframe--last-posframe-pixel-position): rename
posframe--last-position.
(posframe--create-posframe): Use posframe--last-posframe-pixel-position
instead.
(posframe--set-frame-position): Use posframe--last-posframe-pixel-position
instead.
---
posframe.el | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/posframe.el b/posframe.el
index 9a7a73f..628aa9a 100644
--- a/posframe.el
+++ b/posframe.el
@@ -111,7 +111,7 @@
(defvar-local posframe--frame nil
"Record posframe's frame.")
-(defvar-local posframe--last-position nil
+(defvar-local posframe--last-posframe-pixel-position nil
"Record the last pixel position of posframe's frame.")
(defvar-local posframe--last-posframe-size nil
@@ -184,7 +184,7 @@ This posframe's buffer is POSFRAME-BUFFER."
(equal posframe--last-args args))
(posframe-delete-frame posframe-buffer)
(setq-local posframe--last-args args)
- (setq-local posframe--last-position nil)
+ (setq-local posframe--last-posframe-pixel-position nil)
(setq-local posframe--last-posframe-size nil)
(setq-local posframe--frame
(make-frame
@@ -442,13 +442,13 @@ WIDTH and MIN-WIDTH."
parent-frame-height)
"Move POSFRAME to POSITION.
This need PARENT-FRAME-WIDTH and PARENT-FRAME-HEIGHT"
- (unless (and (equal position posframe--last-position)
+ (unless (and (equal position posframe--last-posframe-pixel-position)
;; When working frame's size change, re-posit
;; the posframe.
(equal posframe--last-parent-frame-size
(cons parent-frame-width parent-frame-height)))
(set-frame-position posframe (car position) (cdr position))
- (setq-local posframe--last-position position)
+ (setq-local posframe--last-posframe-pixel-position position)
(setq-local posframe--last-parent-frame-size
(cons parent-frame-width parent-frame-height)))
;; Make posframe's posframe--frame visible
- [elpa] master updated (d461e05 -> 769adaa), Feng Shu, 2018/12/14
- [elpa] master 0e031b3 02/33: posframe: posframe--last-position -> posframe--last-posframe-pixel-position,
Feng Shu <=
- [elpa] master c29228e 01/33: posframe: update README.md, Feng Shu, 2018/12/14
- [elpa] master 3a8c29e 05/33: posframe: version 0.4.0, Feng Shu, 2018/12/14
- [elpa] master 2e8003e 04/33: posframe: Add posframe--last-font-height-info., Feng Shu, 2018/12/14
- [elpa] master f88138f 03/33: posframe: Add posframe--last-poshandler-info, Feng Shu, 2018/12/14
- [elpa] master 0ac1e46 06/33: Disable posframe-mouse-banish on macOS, Feng Shu, 2018/12/14
- [elpa] master 26d36c7 07/33: Account for frame height and width when repositioning, Feng Shu, 2018/12/14
- [elpa] master d8ec23d 13/33: posframe-hide-frame -> posframe--make-frame-invisible, Feng Shu, 2018/12/14
- [elpa] master fe30ee8 09/33: Merge pull request #7 from raxod502/feat/mouse-banish-on-macos, Feng Shu, 2018/12/14
- [elpa] master c94bf8a 08/33: Merge pull request #9 from aaronjensen/account-for-frame-height-and-width-when-positioning, Feng Shu, 2018/12/14
- [elpa] master 4c31de2 11/33: Merge pull request #10 from manateelazycat/patch-1, Feng Shu, 2018/12/14