aboutsummaryrefslogtreecommitdiffstats
path: root/src/editfns.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/editfns.c')
-rw-r--r--src/editfns.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/editfns.c b/src/editfns.c
index 911cd416e80..df0dad0669d 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -1,6 +1,6 @@
1/* Lisp functions pertaining to editing. 1/* Lisp functions pertaining to editing.
2 2
3Copyright (C) 1985-1987, 1989, 1993-2012 Free Software Foundation, Inc. 3Copyright (C) 1985-1987, 1989, 1993-2013 Free Software Foundation, Inc.
4 4
5This file is part of GNU Emacs. 5This file is part of GNU Emacs.
6 6
@@ -2361,10 +2361,9 @@ usage: (insert-before-markers-and-inherit &rest ARGS) */)
2361} 2361}
2362 2362
2363DEFUN ("insert-char", Finsert_char, Sinsert_char, 1, 3, 2363DEFUN ("insert-char", Finsert_char, Sinsert_char, 1, 3,
2364 "(list (or (read-char-by-name \"Insert character (Unicode name or hex): \")\ 2364 "(list (read-char-by-name \"Insert character (Unicode name or hex): \")\
2365 (error \"You did not specify a valid character\"))\ 2365 (prefix-numeric-value current-prefix-arg)\
2366 (prefix-numeric-value current-prefix-arg)\ 2366 t))",
2367 t))",
2368 doc: /* Insert COUNT copies of CHARACTER. 2367 doc: /* Insert COUNT copies of CHARACTER.
2369Interactively, prompt for CHARACTER. You can specify CHARACTER in one 2368Interactively, prompt for CHARACTER. You can specify CHARACTER in one
2370of these ways: 2369of these ways:
@@ -2501,7 +2500,7 @@ make_buffer_string_both (ptrdiff_t start, ptrdiff_t start_byte,
2501 Lisp_Object result, tem, tem1; 2500 Lisp_Object result, tem, tem1;
2502 2501
2503 if (start < GPT && GPT < end) 2502 if (start < GPT && GPT < end)
2504 move_gap (start); 2503 move_gap_both (start, start_byte);
2505 2504
2506 if (! NILP (BVAR (current_buffer, enable_multibyte_characters))) 2505 if (! NILP (BVAR (current_buffer, enable_multibyte_characters)))
2507 result = make_uninit_multibyte_string (end - start, end_byte - start_byte); 2506 result = make_uninit_multibyte_string (end - start, end_byte - start_byte);
@@ -2599,7 +2598,7 @@ If narrowing is in effect, this function returns only the visible part
2599of the buffer. */) 2598of the buffer. */)
2600 (void) 2599 (void)
2601{ 2600{
2602 return make_buffer_string (BEGV, ZV, 1); 2601 return make_buffer_string_both (BEGV, BEGV_BYTE, ZV, ZV_BYTE, 1);
2603} 2602}
2604 2603
2605DEFUN ("insert-buffer-substring", Finsert_buffer_substring, Sinsert_buffer_substring, 2604DEFUN ("insert-buffer-substring", Finsert_buffer_substring, Sinsert_buffer_substring,