Subject: [PATCH 2/2] gnu: Add emacs-corfu-doc-terminal.

From: jgart <[email-masked]>
Date: Sat, 11 Jun 2022 20:08:16 -0500

* gnu/packages/emacs-xyz.scm (emacs-corfu-doc-terminal): New variable.
---
 gnu/packages/emacs-xyz.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index dff0d99632..eca0423216 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -31684,6 +31684,34 @@ (define-public emacs-corfu-terminal
 to enable.  You'll probably want to enable it only in the terminal.")
       (license license:gpl3+))))
 
+(define-public emacs-corfu-doc-terminal
+  (let ((commit "d8945c64b52d76e864b767b3048674f222daf80b")
+        (revision "0"))
+    (package
+      (name "emacs-corfu-doc-terminal")
+      (version (git-version "0.5" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri
+          (git-reference
+           (url "https://codeberg.org/akib/emacs-corfu-doc-terminal")
+           (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "0j0dd8np5x93wic22bc5i9h7bq2gj700n4fh11dzzgsj14lv2r5k"))))
+      (build-system emacs-build-system)
+      (propagated-inputs
+        (list emacs-corfu emacs-corfu-doc emacs-corfu-terminal emacs-popon))
+      (home-page "https://codeberg.org/akib/emacs-corfu-doc-terminal/")
+      (synopsis "Documentation popup in terminal provided by corfu")
+      (description
+"@code{emacs-corfu-doc} uses child frames to display
+candidates.  This makes @code{emacs-corfu-doc} unusable on
+terminal.  @code{emac-corfu-doc-terminal} replaces that with
+@code{emacs-popon}, which works everywhere.")
+      (license license:gpl3+))))
+
 (define-public emacs-popon
   ;; Upstream does not tag releases.  The commit below matches the version
   ;; bump.
-- 
2.36.1