I am trying to modify a slot in a class (created with EIEIO library). I can access the slot with (oref-default 'helm-source-ffiles filtered-candidate-transformer)
and that returns
(helm-ff-sort-candidates
(lambda
(candidates _source)
(cl-loop for f in candidates for ff =
(helm-ff-filter-candidate-one-by-one f)
when ff collect ff)))
a list of two items. I am trying to add helm-adaptive-sort
to the end of that list. However everything I have tried results in an error. Here is what I am trying to do.
(oset-default 'helm-source-ffiles
filtered-candidate-transformer
(helm-ff-sort-candidates
(lambda
(candidates _source)
(cl-loop for f in candidates for ff =
(helm-ff-filter-candidate-one-by-one f)
when ff collect ff))
helm-adaptive-sort))
that results in Symbol’s value as variable is void: helm-adaptive-sort
. If I quote it I get the error Can’t set default to a sexp that gets evaluated again
. The only thing that I have found that doesn't give an error is storing my list in a variable then calling it like this (oset-default 'helm-source-ffiles filtered-candidate-transformer (list foo))
. However that wraps it in an extra set of quotes. How do I set a slot in a class?