diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/keymap.c | 8 |
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 | ||