[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/helm 9a637b9f02 1/7: Set helm-only directly in make comman
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/helm 9a637b9f02 1/7: Set helm-only directly in make command macros |
Date: |
Sat, 17 Sep 2022 04:58:47 -0400 (EDT) |
branch: elpa/helm
commit 9a637b9f02c5a9f77fe480db102c932fa9cd3e66
Author: Thierry Volpiatto <thievol@posteo.net>
Commit: Thierry Volpiatto <thievol@posteo.net>
Set helm-only directly in make command macros
---
helm-core.el | 26 +++++++++++++++-----------
1 file changed, 15 insertions(+), 11 deletions(-)
diff --git a/helm-core.el b/helm-core.el
index c5f1ea700b..911f1615bc 100644
--- a/helm-core.el
+++ b/helm-core.el
@@ -2126,21 +2126,25 @@ End:")
The command SYMBOL will quit helm before execute.
Argument ACTION should be an existing helm action."
(declare (indent defun) (debug t))
- `(defun ,symbol ()
- ,doc
- (interactive)
- (with-helm-alive-p
- (helm-exit-and-execute-action ,action))))
+ `(progn
+ (defun ,symbol ()
+ ,doc
+ (interactive)
+ (with-helm-alive-p
+ (helm-exit-and-execute-action ,action)))
+ (put ',symbol 'helm-only t)))
(defmacro helm-make-persistent-command-from-action (symbol doc psymbol action)
"Make a persistent command SYMBOL bound to PSYMBOL from ACTION."
(declare (indent defun) (debug t))
- `(defun ,symbol ()
- ,doc
- (interactive)
- (with-helm-alive-p
- (helm-set-attr ,psymbol (cons ,action 'never-split))
- (helm-execute-persistent-action ,psymbol))))
+ `(progn
+ (defun ,symbol ()
+ ,doc
+ (interactive)
+ (with-helm-alive-p
+ (helm-set-attr ,psymbol (cons ,action 'never-split))
+ (helm-execute-persistent-action ,psymbol)))
+ (put ',symbol 'helm-only t)))
;;; helm-attributes
- [nongnu] elpa/helm updated (c3cd741a27 -> 2b44a1da5c), ELPA Syncer, 2022/09/17
- [nongnu] elpa/helm 587be477fe 4/7: Allow inserting code before running action in helm-make-command-from-action, ELPA Syncer, 2022/09/17
- [nongnu] elpa/helm 6184d8b40d 5/7: Make two new commands with helm-make-command-from-action, ELPA Syncer, 2022/09/17
- [nongnu] elpa/helm 9a637b9f02 1/7: Set helm-only directly in make command macros,
ELPA Syncer <=
- [nongnu] elpa/helm f41131dd9d 3/7: Remove all helm-only property settings, ELPA Syncer, 2022/09/17
- [nongnu] elpa/helm c04edbc678 2/7: Bind mcp action to key, ELPA Syncer, 2022/09/17
- [nongnu] elpa/helm c4561f3cf0 6/7: Fix error in read-file-name when source is empty, ELPA Syncer, 2022/09/17
- [nongnu] elpa/helm 2b44a1da5c 7/7: Add some more commands to helm-read-file-map, ELPA Syncer, 2022/09/17