Thierry Volpiatto
unread,Apr 15, 2016, 1:55:01 AM4/15/16Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to emacs...@googlegroups.com, Michael Heerdegen, zeltak brisbane, emacs-helm
Itai kloog <
ikl...@gmail.com> writes:
> `filtered-candidate-transformer' is a source parameter. Helm sources
> are implemented as (eieio) objects. `helm-make-source' creates a new
> instance of some Helm class.
No it create an alist.
> `helm-source-buffers-list' is an instance of the
> `helm-source-buffers' class.
It is not, it is a simple alist like all helm sources.
Class => instance of class => helm-make-source => source (alist).
> We use classes and objects for sources because this way it's very easy
> to re-define sources with some attributes different from the default, or
> to use multiple similar sources in different contexts.
>
> `helm-make-source' allows you to conveniently override the default
> attributes defined by the class, or add additional ones.
>
> So, you have two choices here: either just redefine
> `helm-source-buffers-list' to use your new candidate transformer in your
> config, or create a new instance of the `helm-source-buffers' class and
> use it in your command.
When a class exists and the source is defined at run time, the prefered
way to modify a source is the defmethod `helm-setup-user-source`.
See
https://github.com/emacs-helm/helm/wiki/FAQ#why-is-a-customizable-helm-source-nil
--
Thierry