From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Eduardo =?iso-8859-1?q?Mu=F1oz?=" Newsgroups: gmane.emacs.bugs Subject: Feature request: write-file dialog in w32 Date: 29 Mar 2003 23:53:12 +0100 Organization: Not likely Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1048978686 29768 80.91.224.249 (29 Mar 2003 22:58:06 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 29 Mar 2003 22:58:06 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Sat Mar 29 23:58:02 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18zPGx-0007j0-00 for ; Sat, 29 Mar 2003 23:58:02 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18zPEd-00082S-01 for gnu-bug-gnu-emacs@m.gmane.org; Sat, 29 Mar 2003 17:55:35 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18zPEE-0007kB-00 for bug-gnu-emacs@prep.ai.mit.edu; Sat, 29 Mar 2003 17:55:10 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18zPDY-0006M7-00 for bug-gnu-emacs@prep.ai.mit.edu; Sat, 29 Mar 2003 17:55:00 -0500 Original-Received: from trinity.ranger.supernews.net ([216.168.1.22] helo=trinity.supernews.net) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.10.13) id 18zPDM-0004k9-00 for bug-gnu-emacs@prep.ai.mit.edu; Sat, 29 Mar 2003 17:54:18 -0500 Original-Received: from mail.fu-berlin.de ([160.45.11.165] ident=root) by trinity.supernews.net with esmtp (Exim 4.12) id 18zPCy-000F4o-00 for gnu-emacs-bug@moderators.isc.org; Sat, 29 Mar 2003 22:53:52 +0000 Original-Received: by mail.fu-berlin.de (Smail3.2.0.98) from Curry.ZEDAT.FU-Berlin.DE (160.45.10.36) with esmtp id ; Sat, 29 Mar 2003 23:53:51 +0100 (MET) Original-Received: by Curry.ZEDAT.FU-Berlin.DE (Smail3.2.0.98) from news.fu-berlin.de with bsmtp id ; Sat, 29 Mar 2003 23:53:51 +0100 (MET) Original-To: gnu-emacs-bug@moderators.isc.org Original-Path: 213-97-131-125.uc.nombres.ttd.ES!not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 35 X-Orig-NNTP-Posting-Host: 213-97-131-125.uc.nombres.ttd.es (213.97.131.125) X-Orig-X-Trace: fu-berlin.de 1048978430 1969644 213.97.131.125 (16 [67897]) X-Orig-Path: 172.26.0.7!nobody User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:4667 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:4667 The function write-file when invoked with the mouse shows an *open* file dialog to get the name of the file to save. It would be nice to use a *save* file dialog. It is not difficult to change the function 'x-file-dialog' in w32fns.c to use a save dialog (using a fifth optional argument save_dialog): .... if (!NILP (mustmatch)) file_details.Flags |= OFN_FILEMUSTEXIST | OFN_PATHMUSTEXIST; BOOL open_dialog_result; if (NILP (save_dialog)) open_dialog_result = GetOpenFileName (&file_details); else open_dialog_result = GetSaveFileName (&file_details); if (open_dialog_result) { .... But I see that a number of changes must be made to other functions to keep consistency (read-file-name, motif, etc). So I leave the decission (and the work ;) to the emacs maintainers. Saludos -- Eduardo Muņoz http://213.97.131.125/