aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDave Love2003-01-07 17:53:49 +0000
committerDave Love2003-01-07 17:53:49 +0000
commit6403daf1a3223b3347a74666cda0f5396206ba52 (patch)
tree56ecf4edb0de8a8b12b526d1b2b09d4cf3b43fb7 /src
parenta11e18e5af14dffc5a8c6c62ff27548e9b38c0a3 (diff)
downloademacs-6403daf1a3223b3347a74666cda0f5396206ba52.tar.gz
emacs-6403daf1a3223b3347a74666cda0f5396206ba52.zip
(Fapropos_internal): Don't gcpro apropos_predicate but
set it to nil before returning.
Diffstat (limited to 'src')
-rw-r--r--src/keymap.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/keymap.c b/src/keymap.c
index 3f636f103ac..c4c5721a194 100644
--- a/src/keymap.c
+++ b/src/keymap.c
@@ -3293,13 +3293,12 @@ Return list of symbols found. */)
3293 struct gcpro gcpro1; 3293 struct gcpro gcpro1;
3294 Lisp_Object result; 3294 Lisp_Object result;
3295 CHECK_STRING (regexp); 3295 CHECK_STRING (regexp);
3296 apropos_predicate = predicate; 3296 apropos_predicate = predicate; /* predicate protected by the call */
3297 GCPRO1 (apropos_predicate);
3298 apropos_accumulate = Qnil; /* staticpro'd */ 3297 apropos_accumulate = Qnil; /* staticpro'd */
3299 map_obarray (Vobarray, apropos_accum, regexp); 3298 map_obarray (Vobarray, apropos_accum, regexp);
3300 result = Fsort (apropos_accumulate, Qstring_lessp); 3299 result = Fsort (apropos_accumulate, Qstring_lessp);
3301 UNGCPRO;
3302 apropos_accumulate = Qnil; /* Allow the result to be GCed. */ 3300 apropos_accumulate = Qnil; /* Allow the result to be GCed. */
3301 apropos_predicate = Qnil;
3303 return result; 3302 return result;
3304} 3303}
3305 3304