[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/haskell-tng-mode dc7aabf 281/385: popup tooltips
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/haskell-tng-mode dc7aabf 281/385: popup tooltips |
Date: |
Tue, 5 Oct 2021 23:59:47 -0400 (EDT) |
branch: elpa/haskell-tng-mode
commit dc7aabf4b1f59fa5c78ac2662506c49329ecc51a
Author: Tseen She <ts33n.sh3@gmail.com>
Commit: Tseen She <ts33n.sh3@gmail.com>
popup tooltips
---
Cask | 1 +
haskell-tng-hsinspect.el | 8 +++++++-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/Cask b/Cask
index 2600d65..705ba60 100644
--- a/Cask
+++ b/Cask
@@ -28,6 +28,7 @@
(development
(depends-on "company")
+ (depends-on "popup")
;;(depends-on "elsa") ;; cask exec elsa FILE
(depends-on "faceup")
(depends-on "ert-runner")
diff --git a/haskell-tng-hsinspect.el b/haskell-tng-hsinspect.el
index 755c2ff..2a0d146 100644
--- a/haskell-tng-hsinspect.el
+++ b/haskell-tng-hsinspect.el
@@ -13,6 +13,12 @@
(require 'subr-x)
+(require 'popup)
+;; TODO remove the dependency on third party "popup". Unfortunately this is
+;; blocked on Emacs shipping with a usable menu and tooltip library.
+;; `tooltip-show' and `popup-menu' are mouse centric whereas we need `point'
+;; centric.
+
(require 'haskell-tng-compile)
;;;###autoload
@@ -26,7 +32,7 @@ name of the symbol at point in the minibuffer."
(haskell-tng--hsinspect-imports))))
;; TODO multiple hits
;; TODO feedback when hsinspect is broken
- (message "%s" (cdar (last found)))
+ (popup-tip (format "%s" (cdar (last found))))
(if (eq t haskell-tng--hsinspect-imports)
(error "hsinspect is not available")
(message "<not imported>"))))
- [nongnu] elpa/haskell-tng-mode 86d9020 373/385: one hsinspect-lsp can be shared by all projects, (continued)
- [nongnu] elpa/haskell-tng-mode 86d9020 373/385: one hsinspect-lsp can be shared by all projects, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode a98dda0 380/385: emacs 27 macro deprecations, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode aeaf363 220/385: bugfinding, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 9a7534e 262/385: bugfixes for abbrev, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 356f27b 278/385: more stable hsinspect calls, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode be39ede 258/385: if/then/else indentation test, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode be4cc15 238/385: better hsinspect command, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 73ba85d 270/385: nicer indentation for single parameter type sigs, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 19c03cc 254/385: company-mode shouldn't force an hsinspect call, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode a947ef0 249/385: support for projects with custom Setup.hs, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode dc7aabf 281/385: popup tooltips,
ELPA Syncer <=
- [nongnu] elpa/haskell-tng-mode fb9174d 292/385: removing popup is futile, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 1b4bf3b 294/385: improve the cabal defaults, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode b2cd1c8 297/385: projectile-tags-command should be buffer local, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 7b45c25 298/385: guard file saving, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode e245a93 296/385: allow opt-out of local history, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 411268e 310/385: improve hsinspect error messages, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 766480d 290/385: fast-tags should be project specific, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode efd8093 299/385: silent formatter errors, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 26c6828 291/385: fqn imports, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 4480bb4 319/385: bump hsinspect/ghcflags versions, ELPA Syncer, 2021/10/06