1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-09 00:11:49 -07:00

* search.c (Freplace_match): Use make_specified_string.

* xterm.c, w32term.c (x_set_glyph_string_gc): Use emacs_abort
to catch bogus override face of glyph strings.
This commit is contained in:
Dmitry Antipov 2014-03-31 11:13:58 +04:00
parent abe133666d
commit 68712e0845
4 changed files with 10 additions and 20 deletions

View file

@ -1,3 +1,9 @@
2014-03-31 Dmitry Antipov <dmantipov@yandex.ru>
* search.c (Freplace_match): Use make_specified_string.
* xterm.c, w32term.c (x_set_glyph_string_gc): Use emacs_abort
to catch bogus override face of glyph strings.
2014-03-31 Jan Djärv <jan.h.d@swipnet.se>
* nsmenu.m (free_frame_tool_bar): Set wait_for_tool_bar = NO (Bug#16976)

View file

@ -2679,18 +2679,8 @@ since only regular expressions have distinguished subexpressions. */)
}
if (really_changed)
{
if (buf_multibyte)
{
ptrdiff_t nchars =
multibyte_chars_in_text (substed, substed_len);
newtext = make_multibyte_string ((char *) substed, nchars,
substed_len);
}
else
newtext = make_unibyte_string ((char *) substed, substed_len);
}
newtext = make_specified_string ((const char *) substed, -1,
substed_len, buf_multibyte);
xfree (substed);
}

View file

@ -1078,10 +1078,7 @@ x_set_glyph_string_gc (struct glyph_string *s)
s->stippled_p = s->face->stipple != 0;
}
else
{
s->gc = s->face->gc;
s->stippled_p = s->face->stipple != 0;
}
emacs_abort ();
/* GC must have been set. */
eassert (s->gc != 0);

View file

@ -968,10 +968,7 @@ x_set_glyph_string_gc (struct glyph_string *s)
s->stippled_p = s->face->stipple != 0;
}
else
{
s->gc = s->face->gc;
s->stippled_p = s->face->stipple != 0;
}
emacs_abort ();
/* GC must have been set. */
eassert (s->gc != 0);