diff options
author | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2013-08-09 13:42:47 +0200 |
---|---|---|
committer | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2013-08-09 13:42:47 +0200 |
commit | eff0ed77a3ac440f529ffc8dd39eb4d9d063afc7 (patch) | |
tree | 03bf1f4db38330b7f0c801e106bf79cf3ba6059a /helm-man.el | |
parent | 55c62c6724e122b5d83658f4d2952a65396f2d89 (diff) |
* helm-man.el (helm-source-man-pages): Use candidates-in-buffer.
Diffstat (limited to 'helm-man.el')
-rw-r--r-- | helm-man.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/helm-man.el b/helm-man.el index 696e1a4d..4c1be62b 100644 --- a/helm-man.el +++ b/helm-man.el @@ -24,6 +24,7 @@ (declare-function Man-getpage-in-background "man.el" (topic)) (declare-function helm-generic-sort-fn "helm-utils.el" (S1 S2)) +;; Internal (defvar helm-man-pages nil "All man pages on system. Will be calculated the first time you invoke helm with this @@ -53,8 +54,9 @@ source.") (ignore-errors (woman-file-name "" t) (sort (mapcar 'car woman-topic-all-completions) - 'string-lessp)))))) - (candidates . helm-man-pages) + 'string-lessp)))) + (helm-init-candidates-in-buffer 'global helm-man-pages))) + (candidates-in-buffer) (filtered-candidate-transformer . (lambda (candidates source) (sort candidates #'helm-generic-sort-fn))) |