From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: elisp: Text-based file-chooser Date: Mon, 3 Jan 2011 13:49:44 -0800 Message-ID: <836A096196D14561B5936E36FA5D15FD@us.oracle.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1294091549 2812 80.91.229.12 (3 Jan 2011 21:52:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 3 Jan 2011 21:52:29 +0000 (UTC) To: "'Larry Kohlman'" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 03 22:52:25 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PZsKG-0002z4-IH for geh-help-gnu-emacs@m.gmane.org; Mon, 03 Jan 2011 22:52:24 +0100 Original-Received: from localhost ([127.0.0.1]:56405 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PZsKG-0002ov-0X for geh-help-gnu-emacs@m.gmane.org; Mon, 03 Jan 2011 16:52:24 -0500 Original-Received: from [140.186.70.92] (port=57135 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PZsJm-0002oq-L3 for help-gnu-emacs@gnu.org; Mon, 03 Jan 2011 16:51:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PZsJl-0005lc-Br for help-gnu-emacs@gnu.org; Mon, 03 Jan 2011 16:51:54 -0500 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]:55542) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PZsJl-0005lV-56 for help-gnu-emacs@gnu.org; Mon, 03 Jan 2011 16:51:53 -0500 Original-Received: from rcsinet13.oracle.com (rcsinet13.oracle.com [148.87.113.125]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id p03LppVX000468 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 3 Jan 2011 21:51:52 GMT Original-Received: from acsmt353.oracle.com (acsmt353.oracle.com [141.146.40.153]) by rcsinet13.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id p03HlpU1012480; Mon, 3 Jan 2011 21:51:51 GMT Original-Received: from abhmt013.oracle.com by acsmt354.oracle.com with ESMTP id 895290401294091384; Mon, 03 Jan 2011 13:49:44 -0800 Original-Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 03 Jan 2011 13:49:43 -0800 X-Mailer: Microsoft Office Outlook 11 In-reply-to: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994 Thread-Index: AcurfgsPBe1dt+x4SYeKxv6GAPugcAAEYoQw X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:78135 Archived-At: > What I'm trying to do here is replace the GUI file selector > with a more general (and mouseless) text-mode hierarchical > file-selector that I can use both in a GUI and at a text-only > console. My lisp code often uses the GUI file selector to > select files that I want to process in other > ways besides editing, so I need its replacement to only return the > filename and let me decide for myself what action to take. So I guess you're saying that you do not want (necessarily) to visit the file, you just want to read a file name. But you do not want to use the "GUI file selector", by which I suppose you mean a file-selection dialog box. Is that it? If all you want is to read a file name without using a dialog box, then just use `read-file-name' with `use-file-dialog' bound to `t'. (let ((use-file-dialog t)) (read-file-name ...)...)