aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/callproc.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/callproc.c b/src/callproc.c
index 8d43ffe67f3..d46d8a32498 100644
--- a/src/callproc.c
+++ b/src/callproc.c
@@ -313,6 +313,7 @@ If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.")
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 {
@@ -320,7 +321,12 @@ If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.")
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 }
@@ -603,7 +609,7 @@ getenv_internal (var, varlen, value, valuelen)
603 return 0; 609 return 0;
604} 610}
605 611
606DEFUN ("getenv", Fgetenv, Sgetenv, 1, 2, 0, 612DEFUN ("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\
608VAR should be a string. Value is nil if VAR is undefined in the environment.\n\ 614VAR should be a string. Value is nil if VAR is undefined in the environment.\n\
609This function consults the variable ``process-environment'' for its value.") 615This function consults the variable ``process-environment'' for its value.")