diff options
author | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2017-01-09 09:37:49 +0100 |
---|---|---|
committer | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2017-01-09 11:03:04 +0100 |
commit | 61ef910cf345ec82f0ffa9e70c1ca431988148bb (patch) | |
tree | e80b5c4069e6451cbd4c8c264cfdcf7b814a64cd /helm-source.el | |
parent | b7aab627ea07908489bcf36b7005dd8ae25657e0 (diff) |
Fix redisplaying buffer in multiples sources.
* helm-files.el (helm-multi-files): helm-redisplay-buffer takes no arg.
* helm-locate.el (helm-locate-init): Same.
(helm-locate-source): Add the redisplay slot.
(helm-locate): helm-redisplay-buffer takes no arg.
* helm-source.el (helm-source): New slot redisplay.
* helm.el (helm-redisplay-buffer): Not all sources may be displayed after narrowing
so calculate first the sources actually displayed.
Fix setting locate basename in multifiles.
Fix also docstring of helm-redisplay-buffer and redisplay slot in helm-source.
* helm-files.el (helm-multi-files): Do it.
Diffstat (limited to 'helm-source.el')
-rw-r--r-- | helm-source.el | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/helm-source.el b/helm-source.el index 21269806..ac385454 100644 --- a/helm-source.el +++ b/helm-source.el @@ -386,6 +386,19 @@ This attribute is not supported for asynchronous sources since they perform pattern matching themselves.") + (redisplay + :initarg :redisplay + :initform 'identity + :custom (choice list function) + :documentation + " A function or a list of functions to apply to current list + of candidates when redisplaying buffer with `helm-redisplay-buffer'. + This is only interesting for modifying and redisplaying the whole list + of candidates in async sources. + It uses `identity' by default for when async sources are mixed with + normal sources, in this case these normal sources are not modified and + redisplayed as they are.") + (nomark :initarg :nomark :initform nil |