]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fapropos_internal): Don't gcpro apropos_predicate but
authorDave Love <fx@gnu.org>
Tue, 7 Jan 2003 17:53:49 +0000 (17:53 +0000)
committerDave Love <fx@gnu.org>
Tue, 7 Jan 2003 17:53:49 +0000 (17:53 +0000)
set it to nil before returning.

src/keymap.c

index 3f636f103acca3eab0066dc77fa1256f40958d3a..c4c5721a194d4ea88f346711af7e89b105ac9d3d 100644 (file)
@@ -3293,13 +3293,12 @@ Return list of symbols found.  */)
   struct gcpro gcpro1;
   Lisp_Object result;
   CHECK_STRING (regexp);
-  apropos_predicate = predicate;
-  GCPRO1 (apropos_predicate);
+  apropos_predicate = predicate; /* predicate protected by the call */
   apropos_accumulate = Qnil;   /* staticpro'd */
   map_obarray (Vobarray, apropos_accum, regexp);
   result = Fsort (apropos_accumulate, Qstring_lessp);
-  UNGCPRO;
   apropos_accumulate = Qnil;   /* Allow the result to be GCed.  */
+  apropos_predicate = Qnil;
   return result;
 }
 \f