diff options
author | Dmitry Antipov <dmantipov@yandex.ru> | 2012-08-28 09:49:02 +0400 |
---|---|---|
committer | Dmitry Antipov <dmantipov@yandex.ru> | 2012-08-28 09:49:02 +0400 |
commit | a3d794a153425b09a0185c660926c241d13e0f2c (patch) | |
tree | b6fed003f6109914b54a9077febeca444852ffa0 /src/insdel.c | |
parent | 59ea14cde3090fe0bef42d646682b3801859be14 (diff) |
Fix usage of set_buffer_internal.
* buffer.h (set_buffer_internal): Make it BUFFER_INLINE.
* buffer.c (set_buffer_if_live): Use set_buffer_internal.
* coding.c (decode_coding): Omit redundant test.
* fileio.c (decide_coding_unwind): Likewise.
* fns.c (secure_hash): Likewise.
* insdel.c (modify_region): Likewise.
* keyboard.c (command_loop_1): Likewise.
* print.c (PRINTFINISH): Likewise.
* xdisp.c (run_window_scroll_functions): Use set_buffer_internal.
Diffstat (limited to 'src/insdel.c')
-rw-r--r-- | src/insdel.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/insdel.c b/src/insdel.c index 1dceb67bff..53a3a1370c 100644 --- a/src/insdel.c +++ b/src/insdel.c @@ -1779,8 +1779,7 @@ modify_region (struct buffer *buffer, ptrdiff_t start, ptrdiff_t end, { struct buffer *old_buffer = current_buffer; - if (buffer != old_buffer) - set_buffer_internal (buffer); + set_buffer_internal (buffer); prepare_to_modify_buffer (start, end, NULL); @@ -1794,8 +1793,7 @@ modify_region (struct buffer *buffer, ptrdiff_t start, ptrdiff_t end, bset_point_before_scroll (buffer, Qnil); - if (buffer != old_buffer) - set_buffer_internal (old_buffer); + set_buffer_internal (old_buffer); } /* Check that it is okay to modify the buffer between START and END, |