[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/idris-mode e1fd68e494 4/8: Revert removal of s flag from i
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/idris-mode e1fd68e494 4/8: Revert removal of s flag from interactive. |
Date: |
Fri, 11 Nov 2022 06:58:58 -0500 (EST) |
branch: elpa/idris-mode
commit e1fd68e4940b905ac3e892a8b8682062666ede7c
Author: Marek L <nospam.keram@gmail.com>
Commit: Marek L <nospam.keram@gmail.com>
Revert removal of s flag from interactive.
Why:
It is not typo but a flag. (mea culpa)
Regression introduced in
https://github.com/idris-hackers/idris-mode/pull/555
---
idris-commands.el | 9 +++++----
idris-tests.el | 11 +++++++++++
2 files changed, 16 insertions(+), 4 deletions(-)
diff --git a/idris-commands.el b/idris-commands.el
index 6e0f7485db..e91c7562f7 100644
--- a/idris-commands.el
+++ b/idris-commands.el
@@ -544,14 +544,15 @@ KILLFLAG is set if N was explicitly specified."
;; `delete-forward-char' does
(t (delete-char 1 killflag))))
+
(defun idris-apropos (what)
- "Look up WHAT in names, type signatures, and docstrings"
- (interactive "Search Idris docs for: ")
+ "Look up WHAT in names, type signatures, and docstrings."
+ (interactive "sSearch Idris docs for: ")
(idris-info-for-name :apropos what))
(defun idris-type-search (what)
- "Search the Idris libraries for WHAT by fuzzy type matching"
- (interactive "Search for type: ")
+ "Search the Idris libraries for WHAT by fuzzy type matching."
+ (interactive "sSearch for type: ")
(idris-info-for-name :interpret (concat ":search " what)))
(defun idris-docs-at-point (thing)
diff --git a/idris-tests.el b/idris-tests.el
index 0d1ed4e557..7a679801c1 100644
--- a/idris-tests.el
+++ b/idris-tests.el
@@ -157,6 +157,17 @@ remain."
(kill-buffer))
(idris-quit)))
+(ert-deftest idris-test-idris-type-search ()
+ "Test that `idris-type-search' produces output in Idris info buffer."
+ (let ((buffer (find-file "test-data/Empty.idr")))
+ (with-current-buffer buffer
+ (idris-load-file)
+ (funcall-interactively 'idris-type-search "Nat"))
+ (with-current-buffer (get-buffer idris-info-buffer-name)
+ (goto-char (point-min))
+ (should (re-search-forward "Zero" nil t)))
+ (idris-quit)))
+
(ert-deftest idris-test-ipkg-packages-with-underscores-and-dashes ()
"Test that loading an ipkg file can have dependencies on packages with _ or
- in the name."
(let ((buffer (find-file "test-data/package-test/Packaging.idr")))
- [nongnu] elpa/idris-mode updated (8933ab84f9 -> 1adee4fe06), ELPA Syncer, 2022/11/11
- [nongnu] elpa/idris-mode d1a9171fd7 1/8: Jump to last Idris Code buffer when we quit buffer, ELPA Syncer, 2022/11/11
- [nongnu] elpa/idris-mode cba57f7ff4 6/8: Merge pull request #557 from keram/jump-back-on-quit, ELPA Syncer, 2022/11/11
- [nongnu] elpa/idris-mode e7e2a6c3bc 3/8: Remove dependency on if-let* defined in subr-x, ELPA Syncer, 2022/11/11
- [nongnu] elpa/idris-mode 1adee4fe06 8/8: Merge pull request #560 from keram/interactive-s-flag, ELPA Syncer, 2022/11/11
- [nongnu] elpa/idris-mode 103f1e5fbf 2/8: Add ability to quickly switch from Idris repl to, ELPA Syncer, 2022/11/11
- [nongnu] elpa/idris-mode e1fd68e494 4/8: Revert removal of s flag from interactive.,
ELPA Syncer <=
- [nongnu] elpa/idris-mode bc44e934f8 5/8: Stop CI run?, ELPA Syncer, 2022/11/11
- [nongnu] elpa/idris-mode 7a0b5c736d 7/8: Merge pull request #558 from keram/jump-to-file-from-repl, ELPA Syncer, 2022/11/11