aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2019-08-21 22:29:35 -0700
committerPaul Eggert2019-08-21 22:30:18 -0700
commit7d15079c7e819dd7862b3f35df16e175802ca7a2 (patch)
treee2b756c48ed01f51d7f7d4b3749e7b0e2a6a2edc
parent2b552f34892ee3c73f4b5fb5380218dc6ebbf4bb (diff)
downloademacs-7d15079c7e819dd7862b3f35df16e175802ca7a2.tar.gz
emacs-7d15079c7e819dd7862b3f35df16e175802ca7a2.zip
Remove no-longer-needed workaround for GC bug
* src/keymap.c (describe_vector): Remove old workaround for GC bug. This workaround, introduced in 1993-02-19T05:43:54Z!rms@gnu.org, has not been needed for some time. Problem reported by Pip Cet in: https://lists.gnu.org/r/emacs-devel/2019-08/msg00316.html
-rw-r--r--src/keymap.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/keymap.c b/src/keymap.c
index 6762915f70c..b1e09a92f20 100644
--- a/src/keymap.c
+++ b/src/keymap.c
@@ -3371,12 +3371,10 @@ describe_vector (Lisp_Object vector, Lisp_Object prefix, Lisp_Object args,
3371 3371
3372 if (!keymap_p) 3372 if (!keymap_p)
3373 { 3373 {
3374 /* Call Fkey_description first, to avoid GC bug for the other string. */
3375 if (!NILP (prefix) && XFIXNAT (Flength (prefix)) > 0) 3374 if (!NILP (prefix) && XFIXNAT (Flength (prefix)) > 0)
3376 { 3375 {
3377 Lisp_Object tem = Fkey_description (prefix, Qnil);
3378 AUTO_STRING (space, " "); 3376 AUTO_STRING (space, " ");
3379 elt_prefix = concat2 (tem, space); 3377 elt_prefix = concat2 (Fkey_description (prefix, Qnil), space);
3380 } 3378 }
3381 prefix = Qnil; 3379 prefix = Qnil;
3382 } 3380 }