unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* Feature request: write-file dialog in w32
@ 2003-03-29 22:53 Eduardo Muñoz
  0 siblings, 0 replies; only message in thread
From: Eduardo Muñoz @ 2003-03-29 22:53 UTC (permalink / raw)



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/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-03-29 22:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-29 22:53 Feature request: write-file dialog in w32 Eduardo Muñoz

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).