branch: externals/corfu-doc
commit 7f7e25117334c9c13bbc5a925bd0a95a2b0965d8
Author: Yuwei Tian <[email protected]>
Commit: Yuwei Tian <[email protected]>
Fix #19: display a warning when child frames unavailable
Also fix #17
---
corfu-doc.el | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/corfu-doc.el b/corfu-doc.el
index b159df7b2a..302734c20a 100644
--- a/corfu-doc.el
+++ b/corfu-doc.el
@@ -440,7 +440,10 @@ it should be compared with the value recorded by
`corfu--index'."
The optional CANDIDATE-INDEX is the the current completion candidate index."
(unless (corfu--popup-support-p)
- (error "Corfu-doc requires child frames to display documentation"))
+ (display-warning
+ 'corfu-doc
+ "Corfu-doc requires child frames to display documentation"
+ :warning))
(when (corfu-doc--should-show-popup candidate-index)
(when-let ((candidate (corfu-doc--get-candidate))
(cf-popup-edges (corfu-doc--get-cf-popup-edges)))