diff options
| author | Karl Heuer | 1995-03-15 21:55:37 +0000 |
|---|---|---|
| committer | Karl Heuer | 1995-03-15 21:55:37 +0000 |
| commit | f443c1706ed2107a9801614af9de833fdaa28cac (patch) | |
| tree | e3a103abfb6c51d1584a83a35bad7b98d95ce1bc /src | |
| parent | 38d404db172e5d25763ad6823c71da0439251bea (diff) | |
| download | emacs-f443c1706ed2107a9801614af9de833fdaa28cac.tar.gz emacs-f443c1706ed2107a9801614af9de833fdaa28cac.zip | |
(Fmouse_position): Do work only if HAVE_MOUSE.
Diffstat (limited to 'src')
| -rw-r--r-- | src/frame.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/frame.c b/src/frame.c index 3dc70c4d30c..f0e146cd361 100644 --- a/src/frame.c +++ b/src/frame.c | |||
| @@ -1055,6 +1055,7 @@ and nil for X and Y.") | |||
| 1055 | f = selected_frame; | 1055 | f = selected_frame; |
| 1056 | x = y = Qnil; | 1056 | x = y = Qnil; |
| 1057 | 1057 | ||
| 1058 | #ifdef HAVE_MOUSE | ||
| 1058 | /* It's okay for the hook to refrain from storing anything. */ | 1059 | /* It's okay for the hook to refrain from storing anything. */ |
| 1059 | if (mouse_position_hook) | 1060 | if (mouse_position_hook) |
| 1060 | (*mouse_position_hook) (&f, | 1061 | (*mouse_position_hook) (&f, |
| @@ -1069,6 +1070,7 @@ and nil for X and Y.") | |||
| 1069 | XSETINT (x, col); | 1070 | XSETINT (x, col); |
| 1070 | XSETINT (y, row); | 1071 | XSETINT (y, row); |
| 1071 | } | 1072 | } |
| 1073 | #endif | ||
| 1072 | XSETFRAME (lispy_dummy, f); | 1074 | XSETFRAME (lispy_dummy, f); |
| 1073 | return Fcons (lispy_dummy, Fcons (x, y)); | 1075 | return Fcons (lispy_dummy, Fcons (x, y)); |
| 1074 | } | 1076 | } |