From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.devel Subject: Re: [elpa] master 567ea7e 1/3: Ivy-mode now works better with `find-file' Date: Sat, 18 Apr 2015 06:50:36 +0200 Organization: Emacs Helm Message-ID: <874moem44j.fsf@gmail.com> References: <20150417081157.13187.57850@vcs.savannah.gnu.org> <87d232ha4i.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1429332674 31084 80.91.229.3 (18 Apr 2015 04:51:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 18 Apr 2015 04:51:14 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 18 06:51:05 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YjKie-0000WZ-MN for ged-emacs-devel@m.gmane.org; Sat, 18 Apr 2015 06:51:04 +0200 Original-Received: from localhost ([::1]:44493 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YjKid-0000XF-TQ for ged-emacs-devel@m.gmane.org; Sat, 18 Apr 2015 00:51:03 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58289) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YjKia-0000X4-79 for emacs-devel@gnu.org; Sat, 18 Apr 2015 00:51:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YjKiX-0001CY-0p for emacs-devel@gnu.org; Sat, 18 Apr 2015 00:51:00 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:47938) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YjKiW-0001Bu-QS for emacs-devel@gnu.org; Sat, 18 Apr 2015 00:50:56 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YjKiR-0000Nk-PE for emacs-devel@gnu.org; Sat, 18 Apr 2015 06:50:51 +0200 Original-Received: from 37.162.143.238 ([37.162.143.238]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 18 Apr 2015 06:50:51 +0200 Original-Received: from thierry.volpiatto by 37.162.143.238 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 18 Apr 2015 06:50:51 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 31 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 37.162.143.238 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) Cancel-Lock: sha1:uBBez72Qa92QM2d0yxPxnfHSO7g= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:185553 Archived-At: Stefan Monnier writes: >> 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. This is working, but the problem is that functions are made to return the completion part of what you have in minibuffer, and this is impossible to handle from 3rd tools. Take the example of find-file-at-point, it returns a list of relative file names, what should we call to return the same list prefixed by what is in minibuffer ? -- Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997