Function: next-read-file-uses-dialog-p

next-read-file-uses-dialog-p is a function defined in fileio.c.

Signature

(next-read-file-uses-dialog-p)

Documentation

Return t if a call to read-file-name will use a dialog.

The return value is only relevant for a call to read-file-name that happens before any other event (mouse or keypress) is handled.

Source Code

// Defined in /usr/src/emacs/src/fileio.c
{
#if (defined USE_GTK || defined USE_MOTIF \
     || defined HAVE_NS || defined HAVE_NTGUI)
  if ((NILP (last_nonmenu_event) || CONSP (last_nonmenu_event))
      && use_dialog_box
      && use_file_dialog
      && window_system_available (SELECTED_FRAME ()))
    return Qt;
#endif
  return Qnil;
}