From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Jan D." Newsgroups: gmane.emacs.devel Subject: Re: GTK `read-file-name' dialog Date: Sat, 02 Sep 2006 20:11:51 +0200 Message-ID: <44F9C967.4040907@swipnet.se> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1157220758 22774 80.91.229.2 (2 Sep 2006 18:12:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 2 Sep 2006 18:12:38 +0000 (UTC) Cc: Heino Tiedemann , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 02 20:12:35 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GJZyo-0000BG-9B for ged-emacs-devel@m.gmane.org; Sat, 02 Sep 2006 20:12:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GJZym-0000qj-NV for ged-emacs-devel@m.gmane.org; Sat, 02 Sep 2006 14:12:28 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GJZyb-0000pz-O8 for emacs-devel@gnu.org; Sat, 02 Sep 2006 14:12:17 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GJZyZ-0000on-6h for emacs-devel@gnu.org; Sat, 02 Sep 2006 14:12:16 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GJZyZ-0000ok-3O for emacs-devel@gnu.org; Sat, 02 Sep 2006 14:12:15 -0400 Original-Received: from [81.228.9.185] (helo=av9-1-sn3.vrr.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GJa8g-000649-LF for emacs-devel@gnu.org; Sat, 02 Sep 2006 14:22:42 -0400 Original-Received: by av9-1-sn3.vrr.skanova.net (Postfix, from userid 502) id 2BCFF38473; Sat, 2 Sep 2006 20:12:14 +0200 (CEST) Original-Received: from smtp3-1-sn3.vrr.skanova.net (smtp3-1-sn3.vrr.skanova.net [81.228.9.101]) by av9-1-sn3.vrr.skanova.net (Postfix) with ESMTP id 1BC8238470; Sat, 2 Sep 2006 20:12:14 +0200 (CEST) Original-Received: from coolsville.localdomain (81-235-205-204-no59.tbcn.telia.com [81.235.205.204]) by smtp3-1-sn3.vrr.skanova.net (Postfix) with ESMTP id E929637E43; Sat, 2 Sep 2006 20:12:13 +0200 (CEST) User-Agent: Thunderbird 1.5.0.5 (X11/20060719) Original-To: Reiner Steib In-Reply-To: X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:59263 Archived-At: I have made some changes. Please try it and see if you find it better. Thanks, Jan D. Reiner Steib wrote: > $ touch /tmp/foo.bar > $ emacs -Q /tmp/foo.bar > > In Emacs, do (`write-file'); you'll get this GTK file > selector dialog: > > > > There are some problems here: > > - When called e.g. from `write-file' or similar commands, > `read-file-name' should *not* discard the default file name. If > `x-use-old-gtk-file-dialog' is t, the default filename is used. But > also with the new (standard) GTK dialog it should be possible to > supply the default file name as the "Save as" in Firefox[1] also has > it. > > Note that `read-file-name' is used by several other commands where > the default file name should be supplied (e.g. saving attachments in > Gnus: `gnus-mime-save-part'), i.e. the user can simply hit the "Ok" > button. > > - The additional information text ... > > | If you don't like this file selector, customize use-file-dialog to > | turn if off, or type C-x C-f to visit files. > > ... doesn't make sense here and it is confusing. It should be > displayed only if `read-file-name' is called from `find-file' or > there should be an optional argument to `read-file-name' to change > the text. >