From 019b1f0e337b2994e33a7350da95f64f0777b3a6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20Dj=C3=A4rv?= Date: Sat, 29 Nov 2003 11:10:07 +0000 Subject: [PATCH] * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM to compile on terminal configuration. --- src/ChangeLog | 3 +++ src/dispnew.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index 19ffd8f942..0c89274323 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -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 --git a/src/dispnew.c b/src/dispnew.c index c391cd6b61..279c1f10e5 100644 --- a/src/dispnew.c +++ b/src/dispnew.c @@ -5726,11 +5726,13 @@ buffer_posn_from_coords (w, x, y, dx, dy, object, pos) *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; -- 2.20.1