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

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

[elpa] externals/corfu-doc 4119d58e8e 76/95: Rename calculating doc popu


From: ELPA Syncer
Subject: [elpa] externals/corfu-doc 4119d58e8e 76/95: Rename calculating doc popup position function
Date: Tue, 19 Jul 2022 15:58:06 -0400 (EDT)

branch: externals/corfu-doc
commit 4119d58e8ec9060cb78b242442c54ae27e8c27e6
Author: Yuwei Tian <ibluefocus@outlook.com>
Commit: Yuwei Tian <ibluefocus@outlook.com>

    Rename calculating doc popup position function
---
 corfu-doc.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/corfu-doc.el b/corfu-doc.el
index cc45e75442..9e81173606 100644
--- a/corfu-doc.el
+++ b/corfu-doc.el
@@ -256,8 +256,8 @@ See `frame-edges' for details.")
     (unless (string-empty-p (string-trim doc))
       doc)))
 
-(defun corfu-doc--calculate-doc-frame-position (&optional fwidth fheight)
   "Calculate doc frame position (x, y), pixel width and height.
+(defun corfu-doc--calc-popup-position (&optional fwidth fheight)
 
 The pixel width and height of the doc frame are calculated by the
 documentation content, they can also be specified by optional parameters
@@ -390,7 +390,7 @@ FWIDTH and FHEIGHT."
   (when (corfu-doc--cf-popup-edges-changed-p)
     (apply #'corfu-doc--set-frame-position
            corfu-doc--frame
-           (corfu-doc--calculate-doc-frame-position
+           (corfu-doc--calc-popup-position
             (frame-pixel-width corfu-doc--frame)
             (frame-pixel-height corfu-doc--frame)))
     (setq corfu-doc--cf-popup-edges (corfu-doc--get-cf-popup-edges))))
@@ -399,7 +399,7 @@ FWIDTH and FHEIGHT."
   (corfu-doc--make-frame doc)
   (apply #'corfu-doc--set-frame-position
          corfu-doc--frame
-         (corfu-doc--calculate-doc-frame-position)))
+         (corfu-doc--calc-popup-position)))
 
 (defun corfu-doc--cf-popup-visible-p ()
   (and (frame-live-p corfu--frame)



reply via email to

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