[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Feature request: write-file dialog in w32

From: Eduardo Muñoz
Subject: Feature request: write-file dialog in w32
Date: 29 Mar 2003 23:53:12 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

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);
          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



Eduardo Muñoz

reply via email to

[Prev in Thread] Current Thread [Next in Thread]