{
register int nread;
+ int first = 1;
while ((nread = read (fd[0], buf, sizeof buf)) > 0)
{
if (!NILP (buffer))
insert (buf, nread);
if (!NILP (display) && INTERACTIVE)
- redisplay_preserve_echo_area ();
+ {
+ if (first)
+ prepare_menu_bars ();
+ first = 0;
+ redisplay_preserve_echo_area ();
+ }
immediate_quit = 1;
QUIT;
}
return 0;
}
-DEFUN ("getenv", Fgetenv, Sgetenv, 1, 2, 0,
+DEFUN ("getenv", Fgetenv, Sgetenv, 1, 1, 0,
"Return the value of environment variable VAR, as a string.\n\
VAR should be a string. Value is nil if VAR is undefined in the environment.\n\
This function consults the variable ``process-environment'' for its value.")