[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/vertico-posframe ef3bb9825c 2/3: Remove vertico-posfram
From: |
ELPA Syncer |
Subject: |
[elpa] externals/vertico-posframe ef3bb9825c 2/3: Remove vertico-posframe--show-init. |
Date: |
Fri, 31 Dec 2021 04:58:29 -0500 (EST) |
branch: externals/vertico-posframe
commit ef3bb9825c16f3406c5a834be4770cc657ab49a5
Author: Feng Shu <tumashu@163.com>
Commit: Feng Shu <tumashu@163.com>
Remove vertico-posframe--show-init.
* vertico-posframe.el (vertico-posframe--show-init): removed.
(vertico-posframe-mode): Do not run vertico-posframe--show-init.
---
vertico-posframe.el | 15 ---------------
1 file changed, 15 deletions(-)
diff --git a/vertico-posframe.el b/vertico-posframe.el
index 4cf5813a87..e1f6d07140 100644
--- a/vertico-posframe.el
+++ b/vertico-posframe.el
@@ -230,20 +230,6 @@ Show STRING when it is a string."
:lines-truncate t
(funcall vertico-posframe-size-function)))
-(defun vertico-posframe--show-init ()
- "Create posframe in advance to limit flicker for `vertico-posframe--show'."
- (unless (buffer-live-p (get-buffer vertico-posframe--buffer))
- (posframe-show vertico-posframe--buffer
- :string ""
- :font vertico-posframe-font
- :position (cons 0 0)
- :background-color (face-attribute 'vertico-posframe
:background nil t)
- :foreground-color (face-attribute 'vertico-posframe
:foreground nil t)
- :border-width vertico-posframe-border-width
- :border-color (face-attribute 'vertico-posframe-border
:background nil t)
- :override-parameters vertico-posframe-parameters
- :timeout 0.1)))
-
(defun vertico-posframe--create-minibuffer-cover (&optional string)
"Create minibuffer cover."
(let ((color (face-background 'default nil))
@@ -316,7 +302,6 @@ Argument MESSAGE ."
(advice-add #'vertico--display-candidates :override
#'vertico-posframe--display)
(advice-add #'vertico--setup :after #'vertico-posframe--setup)
;; Create posframe in advance to limit flicker.
- (vertico-posframe--show-init)
(vertico-posframe--create-minibuffer-cover ""))
(t
(advice-remove #'minibuffer-message #'vertico-posframe--minibuffer-message)