diff options
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/buffer.c b/src/buffer.c index 3762b33bdaf..589266f40e5 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -2189,7 +2189,7 @@ DEFUN ("buffer-swap-text", Fbuffer_swap_text, Sbuffer_swap_text, | |||
| 2189 | other_buffer = XBUFFER (buffer); | 2189 | other_buffer = XBUFFER (buffer); |
| 2190 | 2190 | ||
| 2191 | if (NILP (other_buffer->name)) | 2191 | if (NILP (other_buffer->name)) |
| 2192 | error ("Cannot swap a dead buffer's text"); | 2192 | error ("Cannot swap a dead buffer's text"); |
| 2193 | 2193 | ||
| 2194 | /* Actually, it probably works just fine. | 2194 | /* Actually, it probably works just fine. |
| 2195 | * if (other_buffer == current_buffer) | 2195 | * if (other_buffer == current_buffer) |
| @@ -2436,7 +2436,7 @@ current buffer is cleared. */) | |||
| 2436 | unsigned char *p = GPT_ADDR - 1; | 2436 | unsigned char *p = GPT_ADDR - 1; |
| 2437 | 2437 | ||
| 2438 | while (! CHAR_HEAD_P (*p) && p > BEG_ADDR) p--; | 2438 | while (! CHAR_HEAD_P (*p) && p > BEG_ADDR) p--; |
| 2439 | if (BASE_LEADING_CODE_P (*p)) | 2439 | if (LEADING_CODE_P (*p)) |
| 2440 | { | 2440 | { |
| 2441 | int new_gpt = GPT_BYTE - (GPT_ADDR - p); | 2441 | int new_gpt = GPT_BYTE - (GPT_ADDR - p); |
| 2442 | 2442 | ||
| @@ -4339,7 +4339,7 @@ add_overlay_mod_hooklist (functionlist, overlay) | |||
| 4339 | int oldsize = XVECTOR (last_overlay_modification_hooks)->size; | 4339 | int oldsize = XVECTOR (last_overlay_modification_hooks)->size; |
| 4340 | 4340 | ||
| 4341 | if (last_overlay_modification_hooks_used == oldsize) | 4341 | if (last_overlay_modification_hooks_used == oldsize) |
| 4342 | last_overlay_modification_hooks = larger_vector | 4342 | last_overlay_modification_hooks = larger_vector |
| 4343 | (last_overlay_modification_hooks, oldsize * 2, Qnil); | 4343 | (last_overlay_modification_hooks, oldsize * 2, Qnil); |
| 4344 | ASET (last_overlay_modification_hooks, last_overlay_modification_hooks_used, | 4344 | ASET (last_overlay_modification_hooks, last_overlay_modification_hooks_used, |
| 4345 | functionlist); last_overlay_modification_hooks_used++; | 4345 | functionlist); last_overlay_modification_hooks_used++; |