aboutsummaryrefslogtreecommitdiffstats
path: root/src/fns.c
diff options
context:
space:
mode:
authorJan Djärv2003-11-29 10:44:36 +0000
committerJan Djärv2003-11-29 10:44:36 +0000
commit03d6484ea449799da1d223491c12d29204aa708a (patch)
treef70dd6e75ccc22f2bbb6cf64db8b9db81b1b58a2 /src/fns.c
parent442d3fd0482e0db752c3de199d370d95f7c209c2 (diff)
downloademacs-03d6484ea449799da1d223491c12d29204aa708a.tar.gz
emacs-03d6484ea449799da1d223491c12d29204aa708a.zip
Add variable use-file-dialog to control use of file dialogs.
Diffstat (limited to 'src/fns.c')
-rw-r--r--src/fns.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/fns.c b/src/fns.c
index 18bf8d62a8b..fed948dc29f 100644
--- a/src/fns.c
+++ b/src/fns.c
@@ -59,6 +59,10 @@ Boston, MA 02111-1307, USA. */
59 asked by mouse commands. */ 59 asked by mouse commands. */
60int use_dialog_box; 60int use_dialog_box;
61 61
62/* Nonzero enables use of a file dialog for file name
63 questions asked by mouse commands. */
64int use_file_dialog;
65
62extern int minibuffer_auto_raise; 66extern int minibuffer_auto_raise;
63extern Lisp_Object minibuf_window; 67extern Lisp_Object minibuf_window;
64extern Lisp_Object Vlocale_coding_system; 68extern Lisp_Object Vlocale_coding_system;
@@ -5638,6 +5642,13 @@ This applies to `y-or-n-p' and `yes-or-no-p' questions asked by commands
5638invoked by mouse clicks and mouse menu items. */); 5642invoked by mouse clicks and mouse menu items. */);
5639 use_dialog_box = 1; 5643 use_dialog_box = 1;
5640 5644
5645 DEFVAR_BOOL ("use-file-dialog", &use_file_dialog,
5646 doc: /* *Non-nil means mouse commands use a file dialog to ask for files.
5647This applies to commands from menus and tool bar buttons. The value of
5648`use-dialog-box' takes precedence over this variable, so a file dialog is only
5649used if both `use-dialog-box' and this variable are non-nil. */);
5650 use_file_dialog = 1;
5651
5641 defsubr (&Sidentity); 5652 defsubr (&Sidentity);
5642 defsubr (&Srandom); 5653 defsubr (&Srandom);
5643 defsubr (&Slength); 5654 defsubr (&Slength);