From 443f1719947060d87b87ee09aba7af30e75206dc Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Mon, 2 Jan 2017 18:55:27 +0200 Subject: [PATCH] Fix compilation --without-x * src/composite.c (autocmp_chars) [HAVE_WINDOW_SYSTEM]: Call font_range only if it is compiled in. (Bug#25334) --- src/composite.c | 5 +++-- 1 file 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, if (len <= 0) return unbind_to (count, Qnil); to = limit = charpos + len; + font_object = win->frame; +#ifdef HAVE_WINDOW_SYSTEM if (FRAME_WINDOW_P (f)) { 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, && (fast_looking_at (re, charpos, bytepos, to, -1, string) <= 0))) return unbind_to (count, Qnil); } - else - font_object = win->frame; +#endif lgstring = Fcomposition_get_gstring (pos, make_number (to), font_object, string); if (NILP (LGSTRING_ID (lgstring))) -- 2.39.5