diff options
| author | Stefan Monnier | 2012-06-28 15:09:41 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2012-06-28 15:09:41 -0400 |
| commit | 7d7e0027e7c7ad6584fd44c611b3c77be69391a9 (patch) | |
| tree | 7abbcac40de59357c7dca4e4f8e61de550586434 /src/alloc.c | |
| parent | 94eb8e0a5ac97228c17d2ec3260d3c6ca46999e2 (diff) | |
| download | emacs-7d7e0027e7c7ad6584fd44c611b3c77be69391a9.tar.gz emacs-7d7e0027e7c7ad6584fd44c611b3c77be69391a9.zip | |
* src/editfns.c (region_limit): Clip to narrowing.
Fixes: debbugs:11770
Diffstat (limited to 'src/alloc.c')
| -rw-r--r-- | src/alloc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/alloc.c b/src/alloc.c index 2570364e6c1..bb57d46ee03 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -5384,7 +5384,8 @@ See Info node `(elisp)Garbage Collection'. */) | |||
| 5384 | turned off in that buffer. Calling truncate_undo_list on | 5384 | turned off in that buffer. Calling truncate_undo_list on |
| 5385 | Qt tends to return NULL, which effectively turns undo back on. | 5385 | Qt tends to return NULL, which effectively turns undo back on. |
| 5386 | So don't call truncate_undo_list if undo_list is Qt. */ | 5386 | So don't call truncate_undo_list if undo_list is Qt. */ |
| 5387 | if (! NILP (nextb->BUFFER_INTERNAL_FIELD (name)) && ! EQ (nextb->BUFFER_INTERNAL_FIELD (undo_list), Qt)) | 5387 | if (! NILP (nextb->BUFFER_INTERNAL_FIELD (name)) |
| 5388 | && ! EQ (nextb->BUFFER_INTERNAL_FIELD (undo_list), Qt)) | ||
| 5388 | truncate_undo_list (nextb); | 5389 | truncate_undo_list (nextb); |
| 5389 | 5390 | ||
| 5390 | /* Shrink buffer gaps, but skip indirect and dead buffers. */ | 5391 | /* Shrink buffer gaps, but skip indirect and dead buffers. */ |