comparison src/callproc.c @ 5251:480731ff8e9a

(Fcall_process): Call prepare_menu_bars. (Fgetenv): One arg is maximum.
author Richard M. Stallman <rms@gnu.org>
date Thu, 23 Dec 1993 02:00:09 +0000
parents 2a1492764d5e
children f921e3c48dcb
comparison
equal deleted inserted replaced
5250:63a865489a1e 5251:480731ff8e9a
311 immediate_quit = 1; 311 immediate_quit = 1;
312 QUIT; 312 QUIT;
313 313
314 { 314 {
315 register int nread; 315 register int nread;
316 int first = 1;
316 317
317 while ((nread = read (fd[0], buf, sizeof buf)) > 0) 318 while ((nread = read (fd[0], buf, sizeof buf)) > 0)
318 { 319 {
319 immediate_quit = 0; 320 immediate_quit = 0;
320 if (!NILP (buffer)) 321 if (!NILP (buffer))
321 insert (buf, nread); 322 insert (buf, nread);
322 if (!NILP (display) && INTERACTIVE) 323 if (!NILP (display) && INTERACTIVE)
323 redisplay_preserve_echo_area (); 324 {
325 if (first)
326 prepare_menu_bars ();
327 first = 0;
328 redisplay_preserve_echo_area ();
329 }
324 immediate_quit = 1; 330 immediate_quit = 1;
325 QUIT; 331 QUIT;
326 } 332 }
327 } 333 }
328 334
601 } 607 }
602 608
603 return 0; 609 return 0;
604 } 610 }
605 611
606 DEFUN ("getenv", Fgetenv, Sgetenv, 1, 2, 0, 612 DEFUN ("getenv", Fgetenv, Sgetenv, 1, 1, 0,
607 "Return the value of environment variable VAR, as a string.\n\ 613 "Return the value of environment variable VAR, as a string.\n\
608 VAR should be a string. Value is nil if VAR is undefined in the environment.\n\ 614 VAR should be a string. Value is nil if VAR is undefined in the environment.\n\
609 This function consults the variable ``process-environment'' for its value.") 615 This function consults the variable ``process-environment'' for its value.")
610 (var) 616 (var)
611 Lisp_Object var; 617 Lisp_Object var;