emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 8485919: * src/doc.c (Fsubstitute_command_keys): Cl


From: Paul Eggert
Subject: [Emacs-diffs] master 8485919: * src/doc.c (Fsubstitute_command_keys): Clarify GC comments.
Date: Wed, 17 Aug 2016 17:16:51 +0000 (UTC)

branch: master
commit 848591904dbf0b5f19cdeaf73944bf6730fac7c1
Author: Paul Eggert <address@hidden>
Commit: Paul Eggert <address@hidden>

    * src/doc.c (Fsubstitute_command_keys): Clarify GC comments.
---
 src/doc.c |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/doc.c b/src/doc.c
index 4b91831..6376398 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;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]