summaryrefslogtreecommitdiff
path: root/helm-source.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2017-08-11 07:31:19 +0200
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2017-08-11 07:31:19 +0200
commit5b6aa86eb68ce7a844f9e65d7aa7f31fdc1024ba (patch)
treeb1bee216092599504450803f7b45e41daa409f63 /helm-source.el
parent0813ab12b4481c9688c06c896296d375e311f1c9 (diff)
Update helm-source-in-buffer documentation
* helm-source.el (helm-source-in-buffer): Do it.
Diffstat (limited to 'helm-source.el')
-rw-r--r--helm-source.el17
1 files changed, 13 insertions, 4 deletions
diff --git a/helm-source.el b/helm-source.el
index cd9d6d48..eda58636 100644
--- a/helm-source.el
+++ b/helm-source.el
@@ -669,10 +669,12 @@ inherit from `helm-source'.")
:custom function
:documentation
" A function like `buffer-substring-no-properties' or `buffer-substring'.
- This function converts point of line-beginning and point of line-end,
- which represents a candidate computed by `helm-candidates-in-buffer'.
+ This function converts region from point at line-beginning and point
+ at line-end in the `helm-candidate-buffer' to a string which will be displayed
+ in the `helm-buffer', it takes two args BEG and END.
By default, `helm-candidates-in-buffer' uses
- `buffer-substring-no-properties'.")
+ `buffer-substring-no-properties' which does no conversion and doesn't carry
+ text properties.")
(search
:initarg :search
@@ -707,8 +709,15 @@ inherit from `helm-source'.")
:MULTIMATCH slot."))
"Use this source to make helm sources storing candidates inside a buffer.
+
+The buffer storing candidates is generated by `helm-candidate-buffer' function
+and all search are done in this buffer, results are transfered to the `helm-buffer'
+when done.
Contrarily to `helm-source-sync' candidates are matched using a function
-like `re-search-forward', see below documentation of :search slot.
+like `re-search-forward' (see below documentation of `:search' slot) which makes
+the search much faster than matching candidates one by one.
+If you want to add search functions to your sources, don't use `:match' which
+will raise an error, but `:search'.
See `helm-candidates-in-buffer' for more infos.")
(defclass helm-source-dummy (helm-source)