helm-adaptive not working in most sources?

409 views
Skip to first unread message

Massimiliano Mirra

unread,
Dec 2, 2014, 11:22:05 AM12/2/14
to emacs...@googlegroups.com
I'm moving to helm from ido, smex and a couple of other tools, and I'm trying to enable something I've been relying on when using smex, namely precedence for previously selected items. I gather that this is what helm-adaptive is for.

However, enabling helm-adaptive-mode has no effect. ~/.emacs.d/helm-adaptive-history never changes from this:

    ;; -*- mode: emacs-lisp -*-
    ;; History entries used for helm adaptive display.
    (setq helm-adaptive-history (quote nil))

helm-adaptive-mode documentation says "Toggle adaptive sorting in all sources", but looking into helm-adaptive-store-selection and helm-adapt-use-adaptive-p, it seems it should only work if the source's (filtered-)candidate-transformer contains 'helm-adaptive-sort. And the only files mentioning 'helm-adaptative-sort are helm-aliases.el, helm-bookmark.el, helm-emms.el, helm-firefox.el, helm-w3m.el, helm-grep.el.

Is helm-adaptive really supposed to work only in those sources or am I missing/misunderstanding something?


Tu Hoang Do

unread,
Dec 4, 2014, 6:14:38 AM12/4/14
to emacs...@googlegroups.com
Seems like you want to use Helm version of execute-extended-command similar to smex. Isn't helm-M-x command already implemented this? helm-M-x has just got fuzzy matching as well.

Massimiliano Mirra

unread,
Dec 4, 2014, 6:25:07 AM12/4/14
to emacs...@googlegroups.com
I'd like to use adaptive sort in all sources, not just helm-M-x. (I'm using helm-M-x but it's not working there either.)


--
You received this message because you are subscribed to a topic in the Google Groups "emacs-helm" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/emacs-helm/S6FXhGfDFqA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to emacs-helm+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Thierry Volpiatto

unread,
Dec 4, 2014, 11:19:38 AM12/4/14
to emacs...@googlegroups.com

Massimiliano Mirra <hyper...@gmail.com> writes:

> I'd like to use adaptive sort in all sources, not just helm-M-x. (I'm
> using helm-M-x but it's not working there either.)

No, it is non sense to enable this everywhere, as you noticed in
previous posts, the mode enable/disable all sources that actually use adaptive,
no more.

--
Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997

Massimiliano Mirra

unread,
Dec 4, 2014, 11:49:07 AM12/4/14
to emacs...@googlegroups.com
Then I suppose I'd just see it fit for more sources where it's currently available (M-x and buffers are the first that come to mind). Oh well, thanks for the clarification.

--
You received this message because you are subscribed to a topic in the Google Groups "emacs-helm" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/emacs-helm/S6FXhGfDFqA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to emacs-helm+unsubscribe@googlegroups.com.

Diego Fernandez

unread,
Dec 12, 2014, 12:23:10 PM12/12/14
to emacs...@googlegroups.com
I was looking around for the exact same thing, I just opened https://github.com/emacs-helm/helm/issues/751, we'll see what happens.
To unsubscribe from this group and all its topics, send an email to emacs-helm+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages