Skip to content

Commit

Permalink
Improve helm-bookmark-filter-setup-alist.
Browse files Browse the repository at this point in the history
* helm-bookmark.el (helm-bookmark-filter-setup-alist): Do it.
  • Loading branch information
Thierry Volpiatto committed Sep 21, 2015
1 parent f2f93f2 commit 4826fb7
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions helm-bookmark.el
Original file line number Diff line number Diff line change
Expand Up @@ -333,12 +333,10 @@ BOOKMARK is a bookmark name or a bookmark record."

(defun helm-bookmark-filter-setup-alist (fn)
"Return a filtered `bookmark-alist' sorted alphabetically."
(cl-loop with alist = (cl-loop for b in bookmark-alist
when (funcall fn b) collect b)
for bmk in alist
for name = (car bmk)
collect (propertize name 'location (bookmark-location name))))

(cl-loop for b in bookmark-alist
for name = (car b)
when (funcall fn b) collect
(propertize name 'location (bookmark-location name))))

;;; Bookmark handlers
;;
Expand Down

0 comments on commit 4826fb7

Please sign in to comment.