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

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

[elpa] externals/vertico-posframe 7913c2c5fa 1/2: Do not enable vertico-


From: ELPA Syncer
Subject: [elpa] externals/vertico-posframe 7913c2c5fa 1/2: Do not enable vertico-posframe when emacs do not support posframe.
Date: Sun, 18 Dec 2022 19:58:15 -0500 (EST)

branch: externals/vertico-posframe
commit 7913c2c5fa0bc8969a7dd67b7f670bc97e65e7fe
Author: Feng Shu <tumashu@163.com>
Commit: Feng Shu <tumashu@163.com>

    Do not enable vertico-posframe when emacs do not support posframe.
---
 vertico-posframe.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/vertico-posframe.el b/vertico-posframe.el
index e4e52f63d0..9c71d13ddb 100644
--- a/vertico-posframe.el
+++ b/vertico-posframe.el
@@ -320,7 +320,8 @@ is called, window-point will be set to WINDOW-POINT."
   "Display Vertico in posframe instead of the minibuffer."
   :global t
   (cond
-   (vertico-posframe-mode
+   ((and vertico-posframe-mode
+         (posframe-workable-p))
     (advice-add #'vertico--display-candidates :after 
#'vertico-posframe--display)
     (advice-add #'vertico--setup :after #'vertico-posframe--setup)
     (advice-add #'vertico--resize-window :override #'ignore))



reply via email to

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