diff options
| author | Eli Zaretskii | 2017-01-02 18:55:27 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2017-01-02 18:55:27 +0200 |
| commit | 443f1719947060d87b87ee09aba7af30e75206dc (patch) | |
| tree | 85bad16863146de0434a45909c78176d38243a1e | |
| parent | 1e8bb313eaa98928dc258f4b903bb10c33c21642 (diff) | |
| download | emacs-443f1719947060d87b87ee09aba7af30e75206dc.tar.gz emacs-443f1719947060d87b87ee09aba7af30e75206dc.zip | |
Fix compilation --without-x
* src/composite.c (autocmp_chars) [HAVE_WINDOW_SYSTEM]: Call
font_range only if it is compiled in. (Bug#25334)
| -rw-r--r-- | src/composite.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/composite.c b/src/composite.c index 5e6d628bbf1..f23bb17c57a 100644 --- a/src/composite.c +++ b/src/composite.c | |||
| @@ -891,6 +891,8 @@ autocmp_chars (Lisp_Object rule, ptrdiff_t charpos, ptrdiff_t bytepos, | |||
| 891 | if (len <= 0) | 891 | if (len <= 0) |
| 892 | return unbind_to (count, Qnil); | 892 | return unbind_to (count, Qnil); |
| 893 | to = limit = charpos + len; | 893 | to = limit = charpos + len; |
| 894 | font_object = win->frame; | ||
| 895 | #ifdef HAVE_WINDOW_SYSTEM | ||
| 894 | if (FRAME_WINDOW_P (f)) | 896 | if (FRAME_WINDOW_P (f)) |
| 895 | { | 897 | { |
| 896 | font_object = font_range (charpos, bytepos, &to, win, face, string); | 898 | font_object = font_range (charpos, bytepos, &to, win, face, string); |
| @@ -900,8 +902,7 @@ autocmp_chars (Lisp_Object rule, ptrdiff_t charpos, ptrdiff_t bytepos, | |||
| 900 | && (fast_looking_at (re, charpos, bytepos, to, -1, string) <= 0))) | 902 | && (fast_looking_at (re, charpos, bytepos, to, -1, string) <= 0))) |
| 901 | return unbind_to (count, Qnil); | 903 | return unbind_to (count, Qnil); |
| 902 | } | 904 | } |
| 903 | else | 905 | #endif |
| 904 | font_object = win->frame; | ||
| 905 | lgstring = Fcomposition_get_gstring (pos, make_number (to), font_object, | 906 | lgstring = Fcomposition_get_gstring (pos, make_number (to), font_object, |
| 906 | string); | 907 | string); |
| 907 | if (NILP (LGSTRING_ID (lgstring))) | 908 | if (NILP (LGSTRING_ID (lgstring))) |