summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2016-08-17 10:15:53 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2016-08-17 10:16:22 -0700
commit848591904dbf0b5f19cdeaf73944bf6730fac7c1 (patch)
tree38659a6a0aad9c01ed16fb0ea23f00341ece087b /src
parent7faabf03d885204295701e3fc5d7e75a71c3ec82 (diff)
* src/doc.c (Fsubstitute_command_keys): Clarify GC comments.
Diffstat (limited to 'src')
-rw-r--r--src/doc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/doc.c b/src/doc.c
index 4b91831c70..6376398cc2 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;