[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/hydra cf96140079 12/46: hydra-test.el: Regenerate tests
From: |
Stefan Monnier |
Subject: |
[elpa] externals/hydra cf96140079 12/46: hydra-test.el: Regenerate tests for the last commit |
Date: |
Tue, 25 Oct 2022 22:27:20 -0400 (EDT) |
branch: externals/hydra
commit cf961400796aea8b385b64ac0ad31c1e2500cf6a
Author: Oleh Krehel <ohwoeowho@gmail.com>
Commit: Oleh Krehel <ohwoeowho@gmail.com>
hydra-test.el: Regenerate tests for the last commit
Re #281
---
hydra-test.el | 134 +++++++++++++++++++++++++++++++---------------------------
1 file changed, 72 insertions(+), 62 deletions(-)
diff --git a/hydra-test.el b/hydra-test.el
index ec6a0c48ec..3ecfb047f8 100644
--- a/hydra-test.el
+++ b/hydra-test.el
@@ -104,16 +104,16 @@
31 32 (face hydra-face-red)
42 45 (face hydra-face-red)))))
(defun hydra-error/first-error nil
- "Create a hydra with a \"M-g\" body and the heads:
+ "Call the head `first-error' in the \"hydra-error\" hydra.
+
+The heads for the associated hydra are:
\"h\": `first-error',
\"j\": `next-error',
\"k\": `previous-error',
\"SPC\": `hydra-repeat'
-The body can be accessed via `hydra-error/body'.
-
-Call the head: `first-error'."
+The body can be accessed via `hydra-error/body', which is bound to \"M-g\"."
(interactive)
(hydra-default-pre)
(let ((hydra--ignore t))
@@ -140,16 +140,16 @@ Call the head: `first-error'."
nil)
nil))
(defun hydra-error/next-error nil
- "Create a hydra with a \"M-g\" body and the heads:
+ "Call the head `next-error' in the \"hydra-error\" hydra.
+
+The heads for the associated hydra are:
\"h\": `first-error',
\"j\": `next-error',
\"k\": `previous-error',
\"SPC\": `hydra-repeat'
-The body can be accessed via `hydra-error/body'.
-
-Call the head: `next-error'."
+The body can be accessed via `hydra-error/body', which is bound to \"M-g\"."
(interactive)
(hydra-default-pre)
(let ((hydra--ignore t))
@@ -176,16 +176,16 @@ Call the head: `next-error'."
nil)
nil))
(defun hydra-error/previous-error nil
- "Create a hydra with a \"M-g\" body and the heads:
+ "Call the head `previous-error' in the \"hydra-error\" hydra.
+
+The heads for the associated hydra are:
\"h\": `first-error',
\"j\": `next-error',
\"k\": `previous-error',
\"SPC\": `hydra-repeat'
-The body can be accessed via `hydra-error/body'.
-
-Call the head: `previous-error'."
+The body can be accessed via `hydra-error/body', which is bound to \"M-g\"."
(interactive)
(hydra-default-pre)
(let ((hydra--ignore t))
@@ -225,14 +225,16 @@ Call the head: `previous-error'."
(quote
hydra-error/previous-error))
(defun hydra-error/body nil
- "Create a hydra with a \"M-g\" body and the heads:
+ "Call the body in the \"hydra-error\" hydra.
+
+The heads for the associated hydra are:
\"h\": `first-error',
\"j\": `next-error',
\"k\": `previous-error',
\"SPC\": `hydra-repeat'
-The body can be accessed via `hydra-error/body'."
+The body can be accessed via `hydra-error/body', which is bound to \"M-g\"."
(interactive)
(hydra-default-pre)
(let ((hydra--ignore nil))
@@ -322,16 +324,16 @@ The body can be accessed via `hydra-error/body'."
35 36 (face hydra-face-blue)
48 49 (face hydra-face-blue)))))
(defun hydra-toggle/toggle-truncate-lines-and-exit nil
- "Create a hydra with no body and the heads:
+ "Call the head `toggle-truncate-lines' in the \"hydra-toggle\" hydra.
+
+The heads for the associated hydra are:
\"t\": `toggle-truncate-lines',
\"f\": `auto-fill-mode',
\"a\": `abbrev-mode',
\"q\": `nil'
-The body can be accessed via `hydra-toggle/body'.
-
-Call the head: `toggle-truncate-lines'."
+The body can be accessed via `hydra-toggle/body'."
(interactive)
(hydra-default-pre)
(hydra-keyboard-quit)
@@ -344,16 +346,16 @@ Call the head: `toggle-truncate-lines'."
(function
toggle-truncate-lines))))
(defun hydra-toggle/auto-fill-mode-and-exit nil
- "Create a hydra with no body and the heads:
+ "Call the head `auto-fill-mode' in the \"hydra-toggle\" hydra.
+
+The heads for the associated hydra are:
\"t\": `toggle-truncate-lines',
\"f\": `auto-fill-mode',
\"a\": `abbrev-mode',
\"q\": `nil'
-The body can be accessed via `hydra-toggle/body'.
-
-Call the head: `auto-fill-mode'."
+The body can be accessed via `hydra-toggle/body'."
(interactive)
(hydra-default-pre)
(hydra-keyboard-quit)
@@ -365,16 +367,16 @@ Call the head: `auto-fill-mode'."
(hydra--call-interactively-remap-maybe
(function auto-fill-mode))))
(defun hydra-toggle/abbrev-mode-and-exit nil
- "Create a hydra with no body and the heads:
+ "Call the head `abbrev-mode' in the \"hydra-toggle\" hydra.
+
+The heads for the associated hydra are:
\"t\": `toggle-truncate-lines',
\"f\": `auto-fill-mode',
\"a\": `abbrev-mode',
\"q\": `nil'
-The body can be accessed via `hydra-toggle/body'.
-
-Call the head: `abbrev-mode'."
+The body can be accessed via `hydra-toggle/body'."
(interactive)
(hydra-default-pre)
(hydra-keyboard-quit)
@@ -386,23 +388,25 @@ Call the head: `abbrev-mode'."
(hydra--call-interactively-remap-maybe
(function abbrev-mode))))
(defun hydra-toggle/nil nil
- "Create a hydra with no body and the heads:
+ "Call the head `nil' in the \"hydra-toggle\" hydra.
+
+The heads for the associated hydra are:
\"t\": `toggle-truncate-lines',
\"f\": `auto-fill-mode',
\"a\": `abbrev-mode',
\"q\": `nil'
-The body can be accessed via `hydra-toggle/body'.
-
-Call the head: `nil'."
+The body can be accessed via `hydra-toggle/body'."
(interactive)
(hydra-default-pre)
(hydra-keyboard-quit)
(setq hydra-curr-body-fn
(quote hydra-toggle/body)))
(defun hydra-toggle/body nil
- "Create a hydra with no body and the heads:
+ "Call the body in the \"hydra-toggle\" hydra.
+
+The heads for the associated hydra are:
\"t\": `toggle-truncate-lines',
\"f\": `auto-fill-mode',
@@ -494,15 +498,15 @@ The body can be accessed via `hydra-toggle/body'."
7 8 (face hydra-face-amaranth)
11 12 (face hydra-face-teal)))))
(defun hydra-vi/next-line nil
- "Create a hydra with no body and the heads:
+ "Call the head `next-line' in the \"hydra-vi\" hydra.
+
+The heads for the associated hydra are:
\"j\": `next-line',
\"k\": `previous-line',
\"q\": `nil'
-The body can be accessed via `hydra-vi/body'.
-
-Call the head: `next-line'."
+The body can be accessed via `hydra-vi/body'."
(interactive)
(hydra-default-pre)
(set-cursor-color "#e52b50")
@@ -530,15 +534,15 @@ Call the head: `next-line'."
(set-cursor-color "#ffffff"))
(quote warn)))
(defun hydra-vi/previous-line nil
- "Create a hydra with no body and the heads:
+ "Call the head `previous-line' in the \"hydra-vi\" hydra.
+
+The heads for the associated hydra are:
\"j\": `next-line',
\"k\": `previous-line',
\"q\": `nil'
-The body can be accessed via `hydra-vi/body'.
-
-Call the head: `previous-line'."
+The body can be accessed via `hydra-vi/body'."
(interactive)
(hydra-default-pre)
(set-cursor-color "#e52b50")
@@ -566,15 +570,15 @@ Call the head: `previous-line'."
(set-cursor-color "#ffffff"))
(quote warn)))
(defun hydra-vi/nil nil
- "Create a hydra with no body and the heads:
+ "Call the head `nil' in the \"hydra-vi\" hydra.
+
+The heads for the associated hydra are:
\"j\": `next-line',
\"k\": `previous-line',
\"q\": `nil'
-The body can be accessed via `hydra-vi/body'.
-
-Call the head: `nil'."
+The body can be accessed via `hydra-vi/body'."
(interactive)
(hydra-default-pre)
(set-cursor-color "#e52b50")
@@ -582,7 +586,9 @@ Call the head: `nil'."
(setq hydra-curr-body-fn
(quote hydra-vi/body)))
(defun hydra-vi/body nil
- "Create a hydra with no body and the heads:
+ "Call the body in the \"hydra-vi\" hydra.
+
+The heads for the associated hydra are:
\"j\": `next-line',
\"k\": `previous-line',
@@ -674,15 +680,15 @@ The body can be accessed via `hydra-vi/body'."
7 8 (face hydra-face-red)
9 10 (face hydra-face-blue)))))
(defun hydra-zoom/lambda-r nil
- "Create a hydra with no body and the heads:
+ "Call the head `(text-scale-set 0)' in the \"hydra-zoom\" hydra.
+
+The heads for the associated hydra are:
\"r\": `(text-scale-set 0)',
\"0\": `(text-scale-set 0)',
\"1\": `(text-scale-set 0)'
-The body can be accessed via `hydra-zoom/body'.
-
-Call the head: `(text-scale-set 0)'."
+The body can be accessed via `hydra-zoom/body'."
(interactive)
(hydra-default-pre)
(let ((hydra--ignore t))
@@ -709,15 +715,15 @@ Call the head: `(text-scale-set 0)'."
nil)
nil))
(defun hydra-zoom/lambda-0-and-exit nil
- "Create a hydra with no body and the heads:
+ "Call the head `(text-scale-set 0)' in the \"hydra-zoom\" hydra.
+
+The heads for the associated hydra are:
\"r\": `(text-scale-set 0)',
\"0\": `(text-scale-set 0)',
\"1\": `(text-scale-set 0)'
-The body can be accessed via `hydra-zoom/body'.
-
-Call the head: `(text-scale-set 0)'."
+The body can be accessed via `hydra-zoom/body'."
(interactive)
(hydra-default-pre)
(hydra-keyboard-quit)
@@ -729,7 +735,9 @@ Call the head: `(text-scale-set 0)'."
(interactive)
(text-scale-set 0)))))
(defun hydra-zoom/body nil
- "Create a hydra with no body and the heads:
+ "Call the body in the \"hydra-zoom\" hydra.
+
+The heads for the associated hydra are:
\"r\": `(text-scale-set 0)',
\"0\": `(text-scale-set 0)',
@@ -820,15 +828,15 @@ The body can be accessed via `hydra-zoom/body'."
7 8 (face hydra-face-red)
9 10 (face hydra-face-blue)))))
(defun hydra-zoom/lambda-r nil
- "Create a hydra with no body and the heads:
+ "Call the head `(text-scale-set 0)' in the \"hydra-zoom\" hydra.
+
+The heads for the associated hydra are:
\"r\": `(text-scale-set 0)',
\"0\": `(text-scale-set 0)',
\"1\": `(text-scale-set 0)'
-The body can be accessed via `hydra-zoom/body'.
-
-Call the head: `(text-scale-set 0)'."
+The body can be accessed via `hydra-zoom/body'."
(interactive)
(hydra-default-pre)
(let ((hydra--ignore t))
@@ -855,15 +863,15 @@ Call the head: `(text-scale-set 0)'."
nil)
nil))
(defun hydra-zoom/lambda-0-and-exit nil
- "Create a hydra with no body and the heads:
+ "Call the head `(text-scale-set 0)' in the \"hydra-zoom\" hydra.
+
+The heads for the associated hydra are:
\"r\": `(text-scale-set 0)',
\"0\": `(text-scale-set 0)',
\"1\": `(text-scale-set 0)'
-The body can be accessed via `hydra-zoom/body'.
-
-Call the head: `(text-scale-set 0)'."
+The body can be accessed via `hydra-zoom/body'."
(interactive)
(hydra-default-pre)
(hydra-keyboard-quit)
@@ -875,7 +883,9 @@ Call the head: `(text-scale-set 0)'."
(interactive)
(text-scale-set 0)))))
(defun hydra-zoom/body nil
- "Create a hydra with no body and the heads:
+ "Call the body in the \"hydra-zoom\" hydra.
+
+The heads for the associated hydra are:
\"r\": `(text-scale-set 0)',
\"0\": `(text-scale-set 0)',
- [elpa] externals/hydra 5c5b9ca326 21/46: Silence byte-compiler on Emacs 25, (continued)
- [elpa] externals/hydra 5c5b9ca326 21/46: Silence byte-compiler on Emacs 25, Stefan Monnier, 2022/10/25
- [elpa] externals/hydra e01a79e4b7 24/46: hydra.el (defhydra): Declare "/params" and "/docstring", Stefan Monnier, 2022/10/25
- [elpa] externals/hydra f0745366ff 34/46: hydra.el (hydra--hint-from-matrix-1): Extract, Stefan Monnier, 2022/10/25
- [elpa] externals/hydra 1dab16cd2a 35/46: hydra.el (hydra--hint-from-matrix): Prep to return list, Stefan Monnier, 2022/10/25
- [elpa] externals/hydra 8119d82fe9 13/46: hydra.el (hydra--make-defun): require hydra, Stefan Monnier, 2022/10/25
- [elpa] externals/hydra 1e72f96a14 15/46: hydra.el (defhydra): Add :base-map option to body plist, Stefan Monnier, 2022/10/25
- [elpa] externals/hydra df3025f7e3 04/46: hydra.el (hydra-key-regex): Add "\\", Stefan Monnier, 2022/10/25
- [elpa] externals/hydra 49611c1509 07/46: hydra.el (hydra--generate-matrix): Refactor, Stefan Monnier, 2022/10/25
- [elpa] externals/hydra e228432bb6 08/46: hydra.el (hydra--hint-from-matrix): Adjust for "%" in key, Stefan Monnier, 2022/10/25
- [elpa] externals/hydra 87cc74b264 17/46: hydra.el (hydra--format): Make no docstring equivalent to :hint nil, Stefan Monnier, 2022/10/25
- [elpa] externals/hydra cf96140079 12/46: hydra-test.el: Regenerate tests for the last commit,
Stefan Monnier <=
- [elpa] externals/hydra c30e04d3f6 19/46: lv.el (lv-window): Turn off display-line-numbers, Stefan Monnier, 2022/10/25
- [elpa] externals/hydra 67098cc914 22/46: hydra.el (hydra--format): Add extra newline, Stefan Monnier, 2022/10/25
- [elpa] externals/hydra ffff068d7f 23/46: Update readme.md, add repo name and melpa badges, Stefan Monnier, 2022/10/25
- [elpa] externals/hydra 05871dd6c8 26/46: hydra.el (defhydra): Document the :column feature, Stefan Monnier, 2022/10/25
- [elpa] externals/hydra 425f20e7ed 27/46: README.md: Link to :column code, Stefan Monnier, 2022/10/25
- [elpa] externals/hydra 67e454bf10 29/46: hydra.el (defhydra+): Update indent spec, Stefan Monnier, 2022/10/25
- [elpa] externals/hydra 1e423933a9 30/46: hydra.el: sexp hints are now supported for :columns, Stefan Monnier, 2022/10/25
- [elpa] externals/hydra 16563fbc4c 31/46: hydra.el (hydra--hint-row): Extract, Stefan Monnier, 2022/10/25
- [elpa] externals/hydra 3846e2728f 32/46: hydra.el (hydra-interpose): Extract, Stefan Monnier, 2022/10/25
- [elpa] externals/hydra 38a567fc5b 36/46: hydra.el (hydra--hint-from-matrix): Return a list, Stefan Monnier, 2022/10/25