From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Robin Neatherway Newsgroups: gmane.emacs.help Subject: Prompt for files with given extensions Date: Wed, 11 Feb 2015 10:17:50 +0000 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1423649929 21479 80.91.229.3 (11 Feb 2015 10:18:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 11 Feb 2015 10:18:49 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 11 11:18:49 2015 Return-path: Envelope-to: geh-help-gnu-emacs@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 1YLUNc-0007pA-V1 for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Feb 2015 11:18:49 +0100 Original-Received: from localhost ([::1]:43928 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLUNc-0007zb-BD for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Feb 2015 05:18:48 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33301) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLUNN-0007wm-6Z for help-gnu-emacs@gnu.org; Wed, 11 Feb 2015 05:18:34 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YLUNM-000576-8Q for help-gnu-emacs@gnu.org; Wed, 11 Feb 2015 05:18:33 -0500 Original-Received: from mail-wg0-x22b.google.com ([2a00:1450:400c:c00::22b]:64290) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLUNM-00056e-1o for help-gnu-emacs@gnu.org; Wed, 11 Feb 2015 05:18:32 -0500 Original-Received: by mail-wg0-f43.google.com with SMTP id n12so2420254wgh.2 for ; Wed, 11 Feb 2015 02:18:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=2VEymzrbaPG4kkegQGFrKA0Fj04CS8dcL1PD9D31ZNw=; b=Qejn+Igr4IfNPZCb2ZtMpLMSNTuW0NROhXG1GJke0/v3dzGhtQugO3rniwA6q+6o8T tdd//KAsrx3NH94k3RBiXvDqytMC6HHQbejxT31vrzkmUFY7BVwEb4cTRZyx79Je9GPt 7wQ7rO7WRBUYBgCXtNR+yVLCOPQWjBKcZ/46bn698fIKp4yZuDKeKD7x+bM97sD0OdV0 RzqUZ9U16cy5NnE+i/QvCyOdp0UstBVLowtyA6HRjqtbm3iCAVxTi1Hwyn7fQy4gKzPe ng3xh7REyJEk6jLgXs4ssLSJqTxIq59dIIM51ask5mqYB4/o7kOsAcTZI4b0T/tRRFXh Hf0w== X-Received: by 10.194.61.145 with SMTP id p17mr58431387wjr.35.1423649910708; Wed, 11 Feb 2015 02:18:30 -0800 (PST) Original-Received: by 10.27.34.9 with HTTP; Wed, 11 Feb 2015 02:17:50 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c00::22b X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:102636 Archived-At: I would like my function to prompt only for files with a given extension. I have a source file, say foo.c, and would like to load the corresponding test results file, say foo.results. However, if there are multiple tests for foo.c, then they may have different filenames. At the moment I use `read-file-name` with `foo.results` as a default, but I would like to filter the possible completions by file extension. Is this possible?