diff options
| author | Eli Zaretskii | 2015-11-26 22:08:54 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2015-11-26 22:08:54 +0200 |
| commit | 3f042f65887672da52c6fe32b6d3254aff4be9c7 (patch) | |
| tree | 1d9b87ded3a435fa3a2f430a8b48b9972f27f713 /src | |
| parent | ae18cc20f899335cede183f18221b6aae539fd51 (diff) | |
| download | emacs-3f042f65887672da52c6fe32b6d3254aff4be9c7.tar.gz emacs-3f042f65887672da52c6fe32b6d3254aff4be9c7.zip | |
Improve commentary of prepare_to_modify_buffer_1
* src/insdel.c (prepare_to_modify_buffer_1): Mention in commentary
that this function runs Lisp. Suggested by Richard Stallman
<rms@gnu.org>.
Diffstat (limited to 'src')
| -rw-r--r-- | src/insdel.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/insdel.c b/src/insdel.c index 8b08c1e59b7..bb3171b14ce 100644 --- a/src/insdel.c +++ b/src/insdel.c | |||
| @@ -1785,7 +1785,12 @@ run_undoable_change (void) | |||
| 1785 | any modification properties the text may have. | 1785 | any modification properties the text may have. |
| 1786 | 1786 | ||
| 1787 | If PRESERVE_PTR is nonzero, we relocate *PRESERVE_PTR | 1787 | If PRESERVE_PTR is nonzero, we relocate *PRESERVE_PTR |
| 1788 | by holding its value temporarily in a marker. */ | 1788 | by holding its value temporarily in a marker. |
| 1789 | |||
| 1790 | This function runs Lisp, which means it can GC, which means it can | ||
| 1791 | compact buffers, including the current buffer being worked on here. | ||
| 1792 | So don't you dare calling this function while manipulating the gap, | ||
| 1793 | or during some other similar "critical section". */ | ||
| 1789 | 1794 | ||
| 1790 | void | 1795 | void |
| 1791 | prepare_to_modify_buffer_1 (ptrdiff_t start, ptrdiff_t end, | 1796 | prepare_to_modify_buffer_1 (ptrdiff_t start, ptrdiff_t end, |