diff options
| author | Dmitry Antipov | 2014-03-31 11:13:58 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2014-03-31 11:13:58 +0400 |
| commit | 68712e08458dabb4c2b48b6f6879466e476bd5ce (patch) | |
| tree | aa18b50b0faf669fa7517ad98e284226311f59cc /src/search.c | |
| parent | abe133666d5703307ee6e5485578d37a1d6093f2 (diff) | |
| download | emacs-68712e08458dabb4c2b48b6f6879466e476bd5ce.tar.gz emacs-68712e08458dabb4c2b48b6f6879466e476bd5ce.zip | |
* 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.
Diffstat (limited to 'src/search.c')
| -rw-r--r-- | src/search.c | 14 |
1 files changed, 2 insertions, 12 deletions
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 | ||