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 16:57:28 +0200 Message-ID: References: <20150417081157.13187.57850@vcs.savannah.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1429282709 2921 80.91.229.3 (17 Apr 2015 14:58:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 17 Apr 2015 14:58:29 +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 16:58:29 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 1Yj7iu-0004Xe-6l for ged-emacs-devel@m.gmane.org; Fri, 17 Apr 2015 16:58:28 +0200 Original-Received: from localhost ([::1]:41956 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yj7it-0006lW-Ns for ged-emacs-devel@m.gmane.org; Fri, 17 Apr 2015 10:58:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41132) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yj7hy-0005Rc-Mc for emacs-devel@gnu.org; Fri, 17 Apr 2015 10:57:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yj7hx-0007yi-J7 for emacs-devel@gnu.org; Fri, 17 Apr 2015 10:57:30 -0400 Original-Received: from mail-wi0-x235.google.com ([2a00:1450:400c:c05::235]:36523) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yj7hx-0007yM-BD for emacs-devel@gnu.org; Fri, 17 Apr 2015 10:57:29 -0400 Original-Received: by wizk4 with SMTP id k4so24980336wiz.1 for ; Fri, 17 Apr 2015 07:57:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=dd58Bm9EVOxrZ1Ddi41lFWDBHFN8B496kkOWuCqTrgU=; b=J8Td1e9DhnIzohydY3vQbUom/0RSbfyRmWuVPa8veu7rLoViDvs0rJve0PUtilW9YH RD9XdkYbb6xt9FPoRfv8ujH4ejSdfo8cNSke2W7nHrQKc1vRNxeGxo8Q12xi8DK1qebP jkOVp/SYMKvEUMEvCEdWJB8Lg9DQNJpwR78r8/jVI+jV5wn44wsYbJWcr6h3ODcQbhvC v7xumFC50l6QK/ua4WlhYfDDs/3NS4MNiPvBwP060Ap898JDIWXxcMipaFbi6Ffpk6DD 3KVOnsJDyauJJ0CRh3TPTKx8Ry6xa7km0b6qJudT/bSwSuD1I5nW/cdEYMEMMV8r5IsM TgDg== X-Received: by 10.194.59.199 with SMTP id b7mr6958272wjr.26.1429282648494; Fri, 17 Apr 2015 07:57:28 -0700 (PDT) Original-Received: by 10.27.215.21 with HTTP; Fri, 17 Apr 2015 07:57:28 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::235 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:185528 Archived-At: On Fri, Apr 17, 2015 at 4:49 PM, Stefan Monnier wrote: >> + (cond ((or (functionp collection) >> + (vectorp collection)) >> + (when (eq collection 'read-file-name-internal) >> + (setq ivy--directory default-directory) >> + (setq initial-input nil)) >> + (setq collection (all-completions "" collection predicate))) >> + ((hash-table-p collection) >> + (error "Hash table as a collection unsupported")) >> + ((listp (car collection)) >> + (setq collection (all-completions "" collection predicate)))) > > I suggest you also try > > C-h i > g (em TAB 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? Oleh