aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Rumney2000-05-30 21:26:59 +0000
committerJason Rumney2000-05-30 21:26:59 +0000
commitf73f57bd8d13c8196154f124724512f3569324fe (patch)
tree7a01d37bbc73e8370a81b645fe3e8ad054642e9d /src
parentb40b05b6feb25f38ca7b2319b7bbb1c6295b357d (diff)
downloademacs-f73f57bd8d13c8196154f124724512f3569324fe.tar.gz
emacs-f73f57bd8d13c8196154f124724512f3569324fe.zip
(Fread_file_name) [HAVE_NTGUI]: Use file dialog.
(Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to expand a nil default_filename.
Diffstat (limited to 'src')
-rw-r--r--src/fileio.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/fileio.c b/src/fileio.c
index 47bc651a021..9711cad2feb 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -5662,7 +5662,7 @@ DIR defaults to current buffer's directory default.")
5662 5662
5663 GCPRO2 (insdef, default_filename); 5663 GCPRO2 (insdef, default_filename);
5664 5664
5665#ifdef USE_MOTIF 5665#if defined (USE_MOTIF) || defined (HAVE_NTGUI)
5666 if ((NILP (last_nonmenu_event) || CONSP (last_nonmenu_event)) 5666 if ((NILP (last_nonmenu_event) || CONSP (last_nonmenu_event))
5667 && use_dialog_box 5667 && use_dialog_box
5668 && have_menus_p ()) 5668 && have_menus_p ())
@@ -5675,7 +5675,8 @@ DIR defaults to current buffer's directory default.")
5675 default_filename = file; 5675 default_filename = file;
5676 dir = Ffile_name_directory (dir); 5676 dir = Ffile_name_directory (dir);
5677 } 5677 }
5678 default_filename = Fexpand_file_name (default_filename, dir); 5678 if (!NILP(default_filename))
5679 default_filename = Fexpand_file_name (default_filename, dir);
5679 val = Fx_file_dialog (prompt, dir, default_filename, mustmatch); 5680 val = Fx_file_dialog (prompt, dir, default_filename, mustmatch);
5680 add_to_history = 1; 5681 add_to_history = 1;
5681 } 5682 }