diff options
| author | Joakim Verona | 2012-12-20 17:21:55 +0100 |
|---|---|---|
| committer | Joakim Verona | 2012-12-20 17:21:55 +0100 |
| commit | 79c72f2320a6f19a19a74a8969726135a6e306bb (patch) | |
| tree | 90cc8c251a09d6c4c72d13cb1847808c77f42b97 /src/editfns.c | |
| parent | 05bcc2f2c99d3589762a508040b4ee41204a5759 (diff) | |
| parent | 13002885275be0499d0131d4d1823d5e5a6a1be6 (diff) | |
| download | emacs-79c72f2320a6f19a19a74a8969726135a6e306bb.tar.gz emacs-79c72f2320a6f19a19a74a8969726135a6e306bb.zip | |
auto upstream
Diffstat (limited to 'src/editfns.c')
| -rw-r--r-- | src/editfns.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/editfns.c b/src/editfns.c index 911cd416e80..d7fe1c1c4c4 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -2501,7 +2501,7 @@ make_buffer_string_both (ptrdiff_t start, ptrdiff_t start_byte, | |||
| 2501 | Lisp_Object result, tem, tem1; | 2501 | Lisp_Object result, tem, tem1; |
| 2502 | 2502 | ||
| 2503 | if (start < GPT && GPT < end) | 2503 | if (start < GPT && GPT < end) |
| 2504 | move_gap (start); | 2504 | move_gap_both (start, start_byte); |
| 2505 | 2505 | ||
| 2506 | if (! NILP (BVAR (current_buffer, enable_multibyte_characters))) | 2506 | if (! NILP (BVAR (current_buffer, enable_multibyte_characters))) |
| 2507 | result = make_uninit_multibyte_string (end - start, end_byte - start_byte); | 2507 | result = make_uninit_multibyte_string (end - start, end_byte - start_byte); |
| @@ -2599,7 +2599,7 @@ If narrowing is in effect, this function returns only the visible part | |||
| 2599 | of the buffer. */) | 2599 | of the buffer. */) |
| 2600 | (void) | 2600 | (void) |
| 2601 | { | 2601 | { |
| 2602 | return make_buffer_string (BEGV, ZV, 1); | 2602 | return make_buffer_string_both (BEGV, BEGV_BYTE, ZV, ZV_BYTE, 1); |
| 2603 | } | 2603 | } |
| 2604 | 2604 | ||
| 2605 | DEFUN ("insert-buffer-substring", Finsert_buffer_substring, Sinsert_buffer_substring, | 2605 | DEFUN ("insert-buffer-substring", Finsert_buffer_substring, Sinsert_buffer_substring, |