summaryrefslogtreecommitdiff
path: root/helm-source.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2016-01-06 17:41:00 +0100
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2016-01-06 17:41:00 +0100
commit43207f7cf15f4ec885d66b39f3f1d16ac4a3cfe4 (patch)
tree82cb254103eb8501a864043ccee4ddafa9915af3 /helm-source.el
parentfe7e004f0636c8192201238669d674e2f19f311b (diff)
Fix again local source after and before init hooks (#1310).
* helm-source.el (helm-source): Document after/before-init-hooks slots. * helm.el (helm--run-init-hooks): New internal fn. (helm-initial-setup): Use it.
Diffstat (limited to 'helm-source.el')
-rw-r--r--helm-source.el12
1 files changed, 10 insertions, 2 deletions
diff --git a/helm-source.el b/helm-source.el
index beb737ff..71d22b5f 100644
--- a/helm-source.el
+++ b/helm-source.el
@@ -520,7 +520,11 @@
:custom symbol
:documentation
" A local hook that run at beginning of initilization of this source.
- i.e Before the creation of `helm-buffer'.")
+ i.e Before the creation of `helm-buffer'.
+
+ Should be a variable (defined with defvar).
+ Can be also an anonymous function or a list of functions
+ directly added to slot, this is not recommended though.")
(after-init-hook
:initarg :after-init-hook
@@ -528,7 +532,11 @@
:custom symbol
:documentation
" A local hook that run at end of initilization of this source.
- i.e After the creation of `helm-buffer'."))
+ i.e After the creation of `helm-buffer'.
+
+ Should be a variable.
+ Can be also an anonymous function or a list of functions
+ directly added to slot, this is not recommended though."))
"Main interface to define helm sources."
:abstract t)