]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fdisplay_completion_list): gcpro `completions'.
authorRichard M. Stallman <rms@gnu.org>
Sun, 24 Jul 1994 04:04:36 +0000 (04:04 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 24 Jul 1994 04:04:36 +0000 (04:04 +0000)
src/minibuf.c

index 9ce0979adb4ac9b28b8df9a100776dd8c3ca44cd..d3b3f6e6f35a857fc90529fad1d6efdf5e934f32 100644 (file)
@@ -1403,9 +1403,13 @@ It can find the completion buffer in `standard-output'.")
   register Lisp_Object tail, elt;
   register int i;
   int column = 0;
-  /* No GCPRO needed, since (when it matters) every variable
-     points to a non-string that is pointed to by COMPLETIONS.  */
+  struct gcpro gcpro1;
   struct buffer *old = current_buffer;
+
+  /* Note that (when it matters) every variable
+     points to a non-string that is pointed to by COMPLETIONS.  */
+  GCPRO1 (completions);
+
   if (XTYPE (Vstandard_output) == Lisp_Buffer)
     set_buffer_internal (XBUFFER (Vstandard_output));
 
@@ -1467,6 +1471,8 @@ It can find the completion buffer in `standard-output'.")
        }
     }
 
+  UNGCPRO;
+
   if (XTYPE (Vstandard_output) == Lisp_Buffer)
     set_buffer_internal (old);