aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ChangeLog6
-rw-r--r--src/search.c14
-rw-r--r--src/w32term.c5
-rw-r--r--src/xterm.c5
4 files changed, 10 insertions, 20 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 92be5b00246..ea34def5ded 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,9 @@
12014-03-31 Dmitry Antipov <dmantipov@yandex.ru>
2
3 * search.c (Freplace_match): Use make_specified_string.
4 * xterm.c, w32term.c (x_set_glyph_string_gc): Use emacs_abort
5 to catch bogus override face of glyph strings.
6
12014-03-31 Jan Djärv <jan.h.d@swipnet.se> 72014-03-31 Jan Djärv <jan.h.d@swipnet.se>
2 8
3 * nsmenu.m (free_frame_tool_bar): Set wait_for_tool_bar = NO (Bug#16976) 9 * nsmenu.m (free_frame_tool_bar): Set wait_for_tool_bar = NO (Bug#16976)
diff --git a/src/search.c b/src/search.c
index 3de194c5056..9bec825abcd 100644
--- a/src/search.c
+++ b/src/search.c
@@ -2679,18 +2679,8 @@ since only regular expressions have distinguished subexpressions. */)
2679 } 2679 }
2680 2680
2681 if (really_changed) 2681 if (really_changed)
2682 { 2682 newtext = make_specified_string ((const char *) substed, -1,
2683 if (buf_multibyte) 2683 substed_len, buf_multibyte);
2684 {
2685 ptrdiff_t nchars =
2686 multibyte_chars_in_text (substed, substed_len);
2687
2688 newtext = make_multibyte_string ((char *) substed, nchars,
2689 substed_len);
2690 }
2691 else
2692 newtext = make_unibyte_string ((char *) substed, substed_len);
2693 }
2694 xfree (substed); 2684 xfree (substed);
2695 } 2685 }
2696 2686
diff --git a/src/w32term.c b/src/w32term.c
index 256d7506a3a..40c1e591233 100644
--- a/src/w32term.c
+++ b/src/w32term.c
@@ -1078,10 +1078,7 @@ x_set_glyph_string_gc (struct glyph_string *s)
1078 s->stippled_p = s->face->stipple != 0; 1078 s->stippled_p = s->face->stipple != 0;
1079 } 1079 }
1080 else 1080 else
1081 { 1081 emacs_abort ();
1082 s->gc = s->face->gc;
1083 s->stippled_p = s->face->stipple != 0;
1084 }
1085 1082
1086 /* GC must have been set. */ 1083 /* GC must have been set. */
1087 eassert (s->gc != 0); 1084 eassert (s->gc != 0);
diff --git a/src/xterm.c b/src/xterm.c
index 31e1b9cb74f..1c0aea01f6e 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -968,10 +968,7 @@ x_set_glyph_string_gc (struct glyph_string *s)
968 s->stippled_p = s->face->stipple != 0; 968 s->stippled_p = s->face->stipple != 0;
969 } 969 }
970 else 970 else
971 { 971 emacs_abort ();
972 s->gc = s->face->gc;
973 s->stippled_p = s->face->stipple != 0;
974 }
975 972
976 /* GC must have been set. */ 973 /* GC must have been set. */
977 eassert (s->gc != 0); 974 eassert (s->gc != 0);