summaryrefslogtreecommitdiff
path: root/helm-bookmark.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2017-04-12 19:55:35 +0200
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2017-04-12 19:55:35 +0200
commita399158bcdfb05f2ca93c3c064f54b9829151c43 (patch)
treef621938a572bb2b47c3bd2c4eee11a77e475261a /helm-bookmark.el
parentf3726630d53ad7e336042cd488e591d7dbacc07f (diff)
Add a fct to helm-source-addressbook-set.
* helm-bookmark.el (helm-source-addressbook-set): Do it.
Diffstat (limited to 'helm-bookmark.el')
-rw-r--r--helm-bookmark.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/helm-bookmark.el b/helm-bookmark.el
index 62e02f60..0b690e71 100644
--- a/helm-bookmark.el
+++ b/helm-bookmark.el
@@ -592,6 +592,11 @@ than `w3m-browse-url' use it."
(defvar helm-source-addressbook-set
(helm-build-dummy-source "Addressbook add contact"
+ :filtered-candidate-transformer
+ (lambda (_candidates _source)
+ (list (or (and (not (string= helm-pattern ""))
+ helm-pattern)
+ "Enter a contact name to record")))
:action (lambda (candidate)
(addressbook-bookmark-set-1 candidate))))