From: Paul Eggert Date: Wed, 17 Aug 2016 17:15:53 +0000 (-0700) Subject: * src/doc.c (Fsubstitute_command_keys): Clarify GC comments. X-Git-Tag: emacs-26.0.90~1728 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=848591904dbf0b5f19cdeaf73944bf6730fac7c1;p=emacs.git * src/doc.c (Fsubstitute_command_keys): Clarify GC comments. --- diff --git a/src/doc.c b/src/doc.c index 4b91831c703..6376398cc22 100644 --- a/src/doc.c +++ b/src/doc.c @@ -821,7 +821,8 @@ Otherwise, return a new string. */) goto do_remap; } - /* Take relocation of string contents into account. */ + /* Fwhere_is_internal can GC, so take relocation of string + contents into account. */ strp = SDATA (str) + idx; start = strp - length_byte - 1; @@ -936,7 +937,8 @@ Otherwise, return a new string. */) bufp += length_byte; nchars += length; - /* Take relocation of string contents into account. */ + /* Some of the previous code can GC, so take relocation of + string contents into account. */ strp = SDATA (str) + idx; continue;