emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [elpa] master 567ea7e 1/3: Ivy-mode now works better with `find-file


From: Stefan Monnier
Subject: Re: [elpa] master 567ea7e 1/3: Ivy-mode now works better with `find-file'
Date: Fri, 17 Apr 2015 15:22:15 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

> Seems very complex for just returning a (short) list of strings.

The set of files or the set of Info nodes (which can appear in any file)
can't conveniently be treated as "a (short) list of strings".

> Why doesn't this work for `Info-read-node-name-1':
>     (setq collection (all-completions "" collection predicate))

I don't understand the question.  AFAIK it does work.  It just doesn't
return every possible node name, since there's pretty much an infinite
supply (if you include those that can be accessed via Tramp, for example).

>     (setq collection (funcall collection "" nil t))

Indeed (funcall collection "" pred t) should be equivalent to
(all-completions "" collection predicate) when `collection' is a function.
If you see otherwise, we have a problem.


        Stefan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]