diff options
| author | Richard M. Stallman | 1994-07-24 04:04:36 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-07-24 04:04:36 +0000 |
| commit | 486cc7fb6a16ef059bde9167606742950e5af5c8 (patch) | |
| tree | 4beb9317485e87f694d64d003235b4df96e13aa9 | |
| parent | 019644eeaa19ec86673d160f16dd2cc9510c2b59 (diff) | |
| download | emacs-486cc7fb6a16ef059bde9167606742950e5af5c8.tar.gz emacs-486cc7fb6a16ef059bde9167606742950e5af5c8.zip | |
(Fdisplay_completion_list): gcpro `completions'.
| -rw-r--r-- | src/minibuf.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/minibuf.c b/src/minibuf.c index 9ce0979adb4..d3b3f6e6f35 100644 --- a/src/minibuf.c +++ b/src/minibuf.c | |||
| @@ -1403,9 +1403,13 @@ It can find the completion buffer in `standard-output'.") | |||
| 1403 | register Lisp_Object tail, elt; | 1403 | register Lisp_Object tail, elt; |
| 1404 | register int i; | 1404 | register int i; |
| 1405 | int column = 0; | 1405 | int column = 0; |
| 1406 | /* No GCPRO needed, since (when it matters) every variable | 1406 | struct gcpro gcpro1; |
| 1407 | points to a non-string that is pointed to by COMPLETIONS. */ | ||
| 1408 | struct buffer *old = current_buffer; | 1407 | struct buffer *old = current_buffer; |
| 1408 | |||
| 1409 | /* Note that (when it matters) every variable | ||
| 1410 | points to a non-string that is pointed to by COMPLETIONS. */ | ||
| 1411 | GCPRO1 (completions); | ||
| 1412 | |||
| 1409 | if (XTYPE (Vstandard_output) == Lisp_Buffer) | 1413 | if (XTYPE (Vstandard_output) == Lisp_Buffer) |
| 1410 | set_buffer_internal (XBUFFER (Vstandard_output)); | 1414 | set_buffer_internal (XBUFFER (Vstandard_output)); |
| 1411 | 1415 | ||
| @@ -1467,6 +1471,8 @@ It can find the completion buffer in `standard-output'.") | |||
| 1467 | } | 1471 | } |
| 1468 | } | 1472 | } |
| 1469 | 1473 | ||
| 1474 | UNGCPRO; | ||
| 1475 | |||
| 1470 | if (XTYPE (Vstandard_output) == Lisp_Buffer) | 1476 | if (XTYPE (Vstandard_output) == Lisp_Buffer) |
| 1471 | set_buffer_internal (old); | 1477 | set_buffer_internal (old); |
| 1472 | 1478 | ||