[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/hydra d2b921d067 22/35: hydra.el (defhydra): :exit key
From: |
ELPA Syncer |
Subject: |
[elpa] externals/hydra d2b921d067 22/35: hydra.el (defhydra): :exit key can now also be a sexp |
Date: |
Tue, 25 Oct 2022 22:59:06 -0400 (EDT) |
branch: externals/hydra
commit d2b921d067d7c7ea2f087b4d8edfdc37bcdf4af8
Author: Oleh Krehel <ohwoeowho@gmail.com>
Commit: Oleh Krehel <ohwoeowho@gmail.com>
hydra.el (defhydra): :exit key can now also be a sexp
Fixes #361
---
hydra.el | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/hydra.el b/hydra.el
index 7287d49edc..2eb79d3801 100644
--- a/hydra.el
+++ b/hydra.el
@@ -915,9 +915,15 @@ BODY-AFTER-EXIT is added to the end of the wrapper."
(require 'hydra)
(hydra-default-pre)
,@(when body-pre (list body-pre))
- ,@(if (hydra--head-property head :exit)
- body-on-exit-t
- body-on-exit-nil))))
+ ,@(cond ((eq (hydra--head-property head :exit) t)
+ body-on-exit-t)
+ ((eq (hydra--head-property head :exit) nil)
+ body-on-exit-nil)
+ (t
+ `((if ,(hydra--head-property head :exit)
+ (progn
+ ,@body-on-exit-t)
+ ,@body-on-exit-nil)))))))
(defvar hydra-props-alist nil)
- [elpa] externals/hydra 1ab885785e 29/35: hydra.el (hydra--make-defun): Allow to speficy :idle property for a head, (continued)
- [elpa] externals/hydra 1ab885785e 29/35: hydra.el (hydra--make-defun): Allow to speficy :idle property for a head, ELPA Syncer, 2022/10/25
- [elpa] externals/hydra 2d553787ac 30/35: hydra.el (hydra--make-defun): Refactor, ELPA Syncer, 2022/10/25
- [elpa] externals/hydra f45e64f7e1 31/35: hydra.el (hydra--describe-key): Add and bind to "<f1> k", ELPA Syncer, 2022/10/25
- [elpa] externals/hydra 317e1de330 34/35: Fix emacs native compilation warning, ELPA Syncer, 2022/10/25
- [elpa] externals/hydra 0c5dcf7ab9 13/35: .travis.yml: Use EVM, ELPA Syncer, 2022/10/25
- [elpa] externals/hydra 82ff12666e 04/35: hydra.el (find-func): Fix advice, ELPA Syncer, 2022/10/25
- [elpa] externals/hydra 16fa8d109e 24/35: hydra.el (defhydra): Use "__" in docstring to represent a literal "_", ELPA Syncer, 2022/10/25
- [elpa] externals/hydra 87873d7888 26/35: Explicitly require cl-lib., ELPA Syncer, 2022/10/25
- [elpa] externals/hydra 798c0d810f 05/35: .github/FUNDING.yml: Add, ELPA Syncer, 2022/10/25
- [elpa] externals/hydra 74b32f3ff0 10/35: lv.el: Sience byte compiler, ELPA Syncer, 2022/10/25
- [elpa] externals/hydra d2b921d067 22/35: hydra.el (defhydra): :exit key can now also be a sexp,
ELPA Syncer <=
- [elpa] externals/hydra a38690b1b7 32/35: Add GNU ELPA badge, ELPA Syncer, 2022/10/25
- [elpa] externals/hydra 112e689f75 28/35: hydra.el (hydra-add-imenu): Add, ELPA Syncer, 2022/10/25
- [elpa] externals/hydra 9e9e00cb24 33/35: hydra.el (hydra--doc): Don't quote nil in generated docstrings, ELPA Syncer, 2022/10/25
- [elpa] externals/hydra 406988f6e9 02/35: hydra.el (hydra-posframe-show-params): Add, ELPA Syncer, 2022/10/25
- [elpa] externals/hydra bcc2d0eb5b 15/35: hydra.el (hydra--work-around-dedicated): Revert, ELPA Syncer, 2022/10/25
- [elpa] externals/hydra 6442faf3da 20/35: hydra.el (hydra--make-defun): Refactor, ELPA Syncer, 2022/10/25
- [elpa] externals/hydra 8a9124f80b 27/35: hydra.el: Fix hydra-curr-map nil when hydras are nested via :post, ELPA Syncer, 2022/10/25
- [elpa] externals/hydra e3e3d2c17f 35/35: Merge remote-tracking branch 'refs/remotes/upstream/hydra/main' into elpa--merge/hydra, ELPA Syncer, 2022/10/25
- [elpa] externals/hydra 435c55e9f7 08/35: Disable fill-column-indicator display., ELPA Syncer, 2022/10/25
- [elpa] externals/hydra 9fc28a044b 21/35: hydra.el (hydra--make-defun): Refactor, ELPA Syncer, 2022/10/25