From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: find-file dialog in Carbon Emacs is broken Date: Sat, 09 Oct 2004 19:26:09 +0200 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: References: <2E4D1BEC-197D-11D9-8298-00039384A728@rice.edu> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1097342805 16746 80.91.229.6 (9 Oct 2004 17:26:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 9 Oct 2004 17:26:45 +0000 (UTC) Cc: Steven Tamm , Mark Moll , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 09 19:26:35 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CGKzK-0007Qd-00 for ; Sat, 09 Oct 2004 19:26:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CGL6B-000352-Ea for ged-emacs-devel@m.gmane.org; Sat, 09 Oct 2004 13:33:39 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CGL61-00034x-8m for emacs-devel@gnu.org; Sat, 09 Oct 2004 13:33:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CGL60-00034k-OE for emacs-devel@gnu.org; Sat, 09 Oct 2004 13:33:28 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CGL60-00034h-Lg for emacs-devel@gnu.org; Sat, 09 Oct 2004 13:33:28 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CGKyx-0002Ve-VV for emacs-devel@gnu.org; Sat, 09 Oct 2004 13:26:12 -0400 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1CGKyx-0004SQ-97; Sat, 09 Oct 2004 13:26:11 -0400 Original-To: Stefan In-Reply-To: (Stefan's message of "Sat, 09 Oct 2004 13:14:36 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux) 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: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:28144 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:28144 Stefan writes: >> The problem is that there isn't a good way to determine if it should be an >> open or a save dialog, and unlike on W32 or X, you need to pick "ChooseFile" >> or "PutFile". The comment I have in the code is; > > It seems the Gtk support has the same problem. > Hopefully the two can share the code that implements their solution, > whatever that one is. I think it is obvious that the caller has to specify what it is looking for. Where the call comes from an interactive spec, a good clue is whether the spec will allow non-existing files. But apart from that, I am afraid there is no way around actually having different functions (or arguments) for different outcomes. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum