# HG changeset patch # User Jan Dj¸«£rv # Date 1070104207 0 # Node ID 053a4dfb6bd4eb02058a1129e7dcb493dc31ac45 # Parent 2c1d6f1a791ec1d3292a92e94775273f285abc79 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM to compile on terminal configuration. diff -r 2c1d6f1a791e -r 053a4dfb6bd4 src/ChangeLog --- a/src/ChangeLog Sat Nov 29 10:44:36 2003 +0000 +++ b/src/ChangeLog Sat Nov 29 11:10:07 2003 +0000 @@ -1,5 +1,8 @@ 2003-11-29 Jan Dj,Ad(Brv + * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM + to compile on terminal configuration. + * fileio.c (Fread_file_name): Check use_file_dialog also before calling Fx_file_dialog. diff -r 2c1d6f1a791e -r 053a4dfb6bd4 src/dispnew.c --- a/src/dispnew.c Sat Nov 29 10:44:36 2003 +0000 +++ b/src/dispnew.c Sat Nov 29 11:10:07 2003 +0000 @@ -5726,11 +5726,13 @@ *dx = x0 + it.first_visible_x - it.current_x; *dy = *y - it.current_y; +#ifdef HAVE_WINDOW_SYSTEM if (it.what == IT_IMAGE && (img = IMAGE_FROM_ID (it.f, it.image_id)) != NULL && !NILP (img->spec)) *object = img->spec; else +#endif *object = STRINGP (it.string) ? it.string : w->buffer; *pos = it.current; *x = it.hpos;