not associated with a window, ignore the automatic composition.
(find_automatic_composition): Likewise.
cmp_it->nchars = end - start;
cmp_it->nglyphs = composition_table[cmp_it->id]->glyph_len;
}
- else
+ else if (w)
{
Lisp_Object val, elt;
int i;
break;
cmp_it->nglyphs = i;
}
+ else
+ goto no_composition;
cmp_it->from = 0;
return 1;
Lisp_Object check_val, val, elt;
int check_lookback;
int c;
+ Lisp_Object window;
struct window *w;
+ window = Fget_buffer_create (Fcurrent_buffer ());
+ if (NILP (window))
+ return 0;
+ w = XWINDOW (window);
+
orig.pos = pos;
if (NILP (string))
{
{
tail = min (tail, limit + 3);
}
- w = XWINDOW (selected_window);
cur = orig;
retry: