From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Oleh Krehel Newsgroups: gmane.emacs.devel Subject: Re: [elpa] master 567ea7e 1/3: Ivy-mode now works better with `find-file' Date: Fri, 17 Apr 2015 20:39:57 +0200 Message-ID: <87d232ha4i.fsf@gmail.com> References: <20150417081157.13187.57850@vcs.savannah.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1429296346 15916 80.91.229.3 (17 Apr 2015 18:45:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 17 Apr 2015 18:45:46 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 17 20:45:41 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 1YjBGn-0001jr-5R for ged-emacs-devel@m.gmane.org; Fri, 17 Apr 2015 20:45:41 +0200 Original-Received: from localhost ([::1]:43086 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YjBGm-00055s-Dl for ged-emacs-devel@m.gmane.org; Fri, 17 Apr 2015 14:45:40 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43656) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YjBGf-00055b-OG for emacs-devel@gnu.org; Fri, 17 Apr 2015 14:45:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YjBGc-0003TM-3e for emacs-devel@gnu.org; Fri, 17 Apr 2015 14:45:33 -0400 Original-Received: from mail-wg0-x22c.google.com ([2a00:1450:400c:c00::22c]:35594) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YjBGb-0003Sf-SL for emacs-devel@gnu.org; Fri, 17 Apr 2015 14:45:30 -0400 Original-Received: by wgyo15 with SMTP id o15so122288197wgy.2 for ; Fri, 17 Apr 2015 11:45:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=zYwEZj45m3D1b9LiU5/WXOkGSur1vUEJgeVg6TCVVPM=; b=L4Ww1d0r8LH1TrqP6RMVgXWEtVd9IJ7Bw0hSkHpoefYrkBCQtOECRaXuxVc9w6gqsP P4HI3pCx4yVOchUEo9z6WGcNw1v4qjjpWspabjSRxiIJV8JH9Jkk4PlLWBVsyAvxRRka c0T80qhxtbawNXoL1OvaEBYIvRNhM4vlHQWOb2Wz6x3cnvRqFMSv9QZpEI/PDRWYuI9h PMpEJ5FHhE/UXwCsDdDGvdaFHnLlzSIM30IGaxz9xxpf5cFxyr3lcVE95rgjwQcIGnAj 06hTNZ2r3emkKMRXbFlwTtLPuQGxyNSvSdhtSQFAAi02DpTEcmoFLmzW6ZnigCQK/kLC feYQ== X-Received: by 10.180.92.65 with SMTP id ck1mr3751430wib.78.1429296329103; Fri, 17 Apr 2015 11:45:29 -0700 (PDT) Original-Received: from firefly (dyn069045.nbw.tue.nl. [131.155.69.45]) by mx.google.com with ESMTPSA id l1sm3735960wiy.20.2015.04.17.11.45.28 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 17 Apr 2015 11:45:28 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Fri, 17 Apr 2015 14:28:26 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c00::22c 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:185537 Archived-At: Stefan Monnier writes: >> Info-read-node-name-1 takes STRING, PREDICATE, and CODE and says to >> look in the `completing-read' doc. But there's nothing abount CODE >> there. Where do I get it? > > I think you're better off reading about it in the Elisp manual. > The third argument (called ACTION usually) is basically the *method* to > use on the "object implemented as a function". It can be nil (which > means `try-completion'), t (which means `all-completions'), lambda > (which means `test-completion'), or `boundaries', or `metadata'. Seems very complex for just returning a (short) list of strings. Why doesn't this work for `Info-read-node-name-1': (setq collection (all-completions "" collection predicate)) while this works within the topic, but not in the directory: (setq collection (funcall collection "" nil t)) If I understood the info page correctly, both should be equivalent. Oleh