aboutsummaryrefslogtreecommitdiffstats
path: root/src/editfns.c
diff options
context:
space:
mode:
authorPaul Eggert2016-08-05 14:10:30 -0700
committerPaul Eggert2016-08-05 14:10:30 -0700
commit0274862f395807d05585eb6325c5285f1bf775d8 (patch)
treeda85c643cf8040db118538bf7705d2a461ec055a /src/editfns.c
parentf902a6b89e6970eabaaf3c2c1452bf2104e2004b (diff)
parentd08afa1d0339425f03a48e533166a7cadfa66139 (diff)
downloademacs-0274862f395807d05585eb6325c5285f1bf775d8.tar.gz
emacs-0274862f395807d05585eb6325c5285f1bf775d8.zip
Merge from origin/emacs-25
d08afa1 * etc/AUTHORS: Update the AUTHORS file 2668500 ;; * ChangeLog.2: ChangeLog update. 7acfaea ; ChangeLog fixes 97d28b4 * admin/authors.el (authors-valid-file-names): Addition. 9ab52f6 * admin/authors.el: Additions. 0e646c7 Warn about Cairo-related problems bc4c07f Don't let completion break `declare' handling 66f95e0 Adjust match data before calling after-change-funs 52cf0d5 Do not show string-rectangle preview if minibuffer is empty 6a3d031 * etc/PROBLEMS: Add entry about selection problems under Plas... # Conflicts: # ChangeLog.2 # src/lisp.h
Diffstat (limited to 'src/editfns.c')
-rw-r--r--src/editfns.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/editfns.c b/src/editfns.c
index 61b2a871b73..732306af868 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -3244,7 +3244,7 @@ Both characters must have the same length of multi-byte form. */)
3244 /* replace_range is less efficient, because it moves the gap, 3244 /* replace_range is less efficient, because it moves the gap,
3245 but it handles combining correctly. */ 3245 but it handles combining correctly. */
3246 replace_range (pos, pos + 1, string, 3246 replace_range (pos, pos + 1, string,
3247 0, 0, 1); 3247 0, 0, 1, 0);
3248 pos_byte_next = CHAR_TO_BYTE (pos); 3248 pos_byte_next = CHAR_TO_BYTE (pos);
3249 if (pos_byte_next > pos_byte) 3249 if (pos_byte_next > pos_byte)
3250 /* Before combining happened. We should not increment 3250 /* Before combining happened. We should not increment
@@ -3457,7 +3457,7 @@ It returns the number of characters changed. */)
3457 /* This is less efficient, because it moves the gap, 3457 /* This is less efficient, because it moves the gap,
3458 but it should handle multibyte characters correctly. */ 3458 but it should handle multibyte characters correctly. */
3459 string = make_multibyte_string ((char *) str, 1, str_len); 3459 string = make_multibyte_string ((char *) str, 1, str_len);
3460 replace_range (pos, pos + 1, string, 1, 0, 1); 3460 replace_range (pos, pos + 1, string, 1, 0, 1, 0);
3461 len = str_len; 3461 len = str_len;
3462 } 3462 }
3463 else 3463 else
@@ -3498,7 +3498,7 @@ It returns the number of characters changed. */)
3498 { 3498 {
3499 string = Fmake_string (make_number (1), val); 3499 string = Fmake_string (make_number (1), val);
3500 } 3500 }
3501 replace_range (pos, pos + len, string, 1, 0, 1); 3501 replace_range (pos, pos + len, string, 1, 0, 1, 0);
3502 pos_byte += SBYTES (string); 3502 pos_byte += SBYTES (string);
3503 pos += SCHARS (string); 3503 pos += SCHARS (string);
3504 cnt += SCHARS (string); 3504 cnt += SCHARS (string);