Commit 019b1f0e authored by Jan Djärv's avatar Jan Djärv

* dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM

  to compile on terminal configuration.
parent 03d6484e
2003-11-29 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
* 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.
......
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment