aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1993-02-19 05:43:54 +0000
committerRichard M. Stallman1993-02-19 05:43:54 +0000
commit5cba3869f59189c78f689f08540210393cae838f (patch)
tree80967678ec4e0c7e2fc3451a069d72eeb492c926 /src
parent4591cb9059790dfb3fd0f322e9edfc82d2c73d24 (diff)
downloademacs-5cba3869f59189c78f689f08540210393cae838f.tar.gz
emacs-5cba3869f59189c78f689f08540210393cae838f.zip
(describe_map): Call Fkey_description before build_string.
Diffstat (limited to 'src')
-rw-r--r--src/keymap.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/keymap.c b/src/keymap.c
index 5cfb94fcb83..ae5698b2511 100644
--- a/src/keymap.c
+++ b/src/keymap.c
@@ -1652,8 +1652,12 @@ describe_map (map, keys, partial, shadow)
1652 register Lisp_Object keysdesc; 1652 register Lisp_Object keysdesc;
1653 1653
1654 if (!NILP (keys) && XFASTINT (Flength (keys)) > 0) 1654 if (!NILP (keys) && XFASTINT (Flength (keys)) > 0)
1655 keysdesc = concat2 (Fkey_description (keys), 1655 {
1656 build_string (" ")); 1656 Lisp_Object tem;
1657 /* Call Fkey_description first, to avoid GC bug for the other string. */
1658 tem = Fkey_description (keys);
1659 keysdesc = concat2 (tem, build_string (" "));
1660 }
1657 else 1661 else
1658 keysdesc = Qnil; 1662 keysdesc = Qnil;
1659 1663