diff options
| author | Paul Eggert | 2016-08-17 10:15:53 -0700 |
|---|---|---|
| committer | Paul Eggert | 2016-08-17 10:16:22 -0700 |
| commit | 848591904dbf0b5f19cdeaf73944bf6730fac7c1 (patch) | |
| tree | 38659a6a0aad9c01ed16fb0ea23f00341ece087b /src | |
| parent | 7faabf03d885204295701e3fc5d7e75a71c3ec82 (diff) | |
| download | emacs-848591904dbf0b5f19cdeaf73944bf6730fac7c1.tar.gz emacs-848591904dbf0b5f19cdeaf73944bf6730fac7c1.zip | |
* src/doc.c (Fsubstitute_command_keys): Clarify GC comments.
Diffstat (limited to 'src')
| -rw-r--r-- | src/doc.c | 6 |
1 files changed, 4 insertions, 2 deletions
| @@ -821,7 +821,8 @@ Otherwise, return a new string. */) | |||
| 821 | goto do_remap; | 821 | goto do_remap; |
| 822 | } | 822 | } |
| 823 | 823 | ||
| 824 | /* Take relocation of string contents into account. */ | 824 | /* Fwhere_is_internal can GC, so take relocation of string |
| 825 | contents into account. */ | ||
| 825 | strp = SDATA (str) + idx; | 826 | strp = SDATA (str) + idx; |
| 826 | start = strp - length_byte - 1; | 827 | start = strp - length_byte - 1; |
| 827 | 828 | ||
| @@ -936,7 +937,8 @@ Otherwise, return a new string. */) | |||
| 936 | bufp += length_byte; | 937 | bufp += length_byte; |
| 937 | nchars += length; | 938 | nchars += length; |
| 938 | 939 | ||
| 939 | /* Take relocation of string contents into account. */ | 940 | /* Some of the previous code can GC, so take relocation of |
| 941 | string contents into account. */ | ||
| 940 | strp = SDATA (str) + idx; | 942 | strp = SDATA (str) + idx; |
| 941 | 943 | ||
| 942 | continue; | 944 | continue; |