(describe_map): Call Fkey_description before build_string.
authorRichard M. Stallman <rms@gnu.org>
Fri, 19 Feb 1993 05:43:54 +0000 (05:43 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 19 Feb 1993 05:43:54 +0000 (05:43 +0000)
src/keymap.c

index 5cfb94f..ae5698b 100644 (file)
@@ -1652,8 +1652,12 @@ describe_map (map, keys, partial, shadow)
   register Lisp_Object keysdesc;
 
   if (!NILP (keys) && XFASTINT (Flength (keys)) > 0)
-    keysdesc = concat2 (Fkey_description (keys),
-                       build_string (" "));
+    {
+      Lisp_Object tem;
+      /* Call Fkey_description first, to avoid GC bug for the other string.  */
+      tem = Fkey_description (keys);
+      keysdesc = concat2 (tem, build_string (" "));
+    }
   else
     keysdesc = Qnil;