branch: elpa/helm commit b39ec4e07bd379475395325600571fc402c5a167 Author: Thierry Volpiatto <thie...@posteo.net> Commit: Thierry Volpiatto <thie...@posteo.net>
Change ugly code for :set fns in icons vars --- helm-bookmark.el | 4 +--- helm-buffers.el | 4 +--- helm-imenu.el | 4 +--- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/helm-bookmark.el b/helm-bookmark.el index 5b1719e406..98e6d7f848 100644 --- a/helm-bookmark.el +++ b/helm-bookmark.el @@ -63,9 +63,7 @@ Don't use `setq' to set this." :type 'boolean :set (lambda (var val) - (if (require helm-x-icons-provider nil t) - (set var val) - (set var nil)))) + (set var (and (require helm-x-icons-provider nil t) val)))) (defcustom helm-bookmark-default-sort-method 'adaptive "Sort method for `helm-filtered-bookmarks'. diff --git a/helm-buffers.el b/helm-buffers.el index f135e5f48b..ba8b0b9ed3 100644 --- a/helm-buffers.el +++ b/helm-buffers.el @@ -176,9 +176,7 @@ you want to keep the recentest order when narrowing candidates." Don't use `setq' to set this." :type 'boolean :set (lambda (var val) - (if (require helm-x-icons-provider nil t) - (set var val) - (set var nil)))) + (set var (and (require helm-x-icons-provider nil t) val)))) ;;; Faces diff --git a/helm-imenu.el b/helm-imenu.el index 1073134f0d..07826c5fab 100644 --- a/helm-imenu.el +++ b/helm-imenu.el @@ -110,9 +110,7 @@ Don't use `setq' to set this." :group 'helm-imenu :type 'boolean :set (lambda (var val) - (if (require helm-x-icons-provider nil t) - (set var val) - (set var nil)))) + (set var (and (require helm-x-icons-provider nil t) val)))) (defcustom helm-imenu-icon-type-alist '(("Array" . (helm-x-icons-generic "crop" :face font-lock-builtin-face))