diff options
| author | Richard M. Stallman | 1993-12-23 02:00:09 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-12-23 02:00:09 +0000 |
| commit | 0ad477db9592ae28cd1b1e4f737e5357b72ca032 (patch) | |
| tree | 428734461b4b679bc2998954cbaaaf7298c84e9c /src | |
| parent | 08b0527265bf9b87f47403191a3d5c0877f86b4b (diff) | |
| download | emacs-0ad477db9592ae28cd1b1e4f737e5357b72ca032.tar.gz emacs-0ad477db9592ae28cd1b1e4f737e5357b72ca032.zip | |
(Fcall_process): Call prepare_menu_bars.
(Fgetenv): One arg is maximum.
Diffstat (limited to 'src')
| -rw-r--r-- | src/callproc.c | 10 |
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 | ||
| 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.") |