diff options
author | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2016-01-12 07:56:07 +0100 |
---|---|---|
committer | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2016-01-12 07:56:07 +0100 |
commit | 7633b7a465df30efd187484c4cac1e544e831a35 (patch) | |
tree | 1bd2f46f51765b2e6eaef42af8c24806acc87d5e /helm-bookmark.el | |
parent | 904b2bd3156911d5b6b2010407a0c66c22eeb7ae (diff) |
Add helm-only property to helm actions.
Use with-helm-alive-p where needed.
Diffstat (limited to 'helm-bookmark.el')
-rw-r--r-- | helm-bookmark.el | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/helm-bookmark.el b/helm-bookmark.el index 8ca6fdcc..f74f5743 100644 --- a/helm-bookmark.el +++ b/helm-bookmark.el @@ -209,6 +209,7 @@ (helm-attrset 'toggle-filename '(helm-bookmark-toggle-filename-1 . never-split)) (helm-execute-persistent-action 'toggle-filename))) +(put 'helm-bookmark-toggle-filename 'helm-only t) (defun helm-bookmark-jump (candidate) "Jump to bookmark from keyboard." @@ -699,6 +700,7 @@ words from the buffer into the new bookmark name." (interactive) (with-helm-alive-p (helm-exit-and-execute-action 'helm-bookmark-edit-bookmark))) +(put 'helm-bookmark-run-edit 'helm-only t) (defun helm-bookmark-run-jump-other-window () @@ -706,6 +708,7 @@ words from the buffer into the new bookmark name." (interactive) (with-helm-alive-p (helm-exit-and-execute-action 'bookmark-jump-other-window))) +(put 'helm-bookmark-run-jump-other-window 'helm-only t) (defun helm-bookmark-run-delete () "Delete bookmark from keyboard." @@ -713,6 +716,7 @@ words from the buffer into the new bookmark name." (with-helm-alive-p (when (y-or-n-p "Delete bookmark(s)?") (helm-exit-and-execute-action 'helm-delete-marked-bookmarks)))) +(put 'helm-bookmark-run-delete 'helm-only t) (defun helm-bookmark-get-bookmark-from-name (bmk) "Return bookmark name even if it is a bookmark with annotation. |