diff options
| author | Richard M. Stallman | 1995-03-26 21:13:40 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-03-26 21:13:40 +0000 |
| commit | 0c5c1cf72b208fe6ddd08d188174bef57c3df5e2 (patch) | |
| tree | 78bf110f400fb8163964bbc8f7aa33a10cb1c850 /src | |
| parent | 46b657e232cab9945c4d779e5e08283737c99a44 (diff) | |
| download | emacs-0c5c1cf72b208fe6ddd08d188174bef57c3df5e2.tar.gz emacs-0c5c1cf72b208fe6ddd08d188174bef57c3df5e2.zip | |
(Fmouse_position--both definitions): Pass 0 for `insist'.
(Fmouse_pixel_position): Pass 0 for `insist'.
Add HAVE_MOUSE conditional.
Diffstat (limited to 'src')
| -rw-r--r-- | src/frame.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/frame.c b/src/frame.c index f0e146cd361..d1b70fdaa70 100644 --- a/src/frame.c +++ b/src/frame.c | |||
| @@ -1058,7 +1058,7 @@ and nil for X and Y.") | |||
| 1058 | #ifdef HAVE_MOUSE | 1058 | #ifdef HAVE_MOUSE |
| 1059 | /* It's okay for the hook to refrain from storing anything. */ | 1059 | /* It's okay for the hook to refrain from storing anything. */ |
| 1060 | if (mouse_position_hook) | 1060 | if (mouse_position_hook) |
| 1061 | (*mouse_position_hook) (&f, | 1061 | (*mouse_position_hook) (&f, 0, |
| 1062 | &lispy_dummy, &party_dummy, | 1062 | &lispy_dummy, &party_dummy, |
| 1063 | &x, &y, | 1063 | &x, &y, |
| 1064 | &long_dummy); | 1064 | &long_dummy); |
| @@ -1095,12 +1095,14 @@ and nil for X and Y.") | |||
| 1095 | f = selected_frame; | 1095 | f = selected_frame; |
| 1096 | x = y = Qnil; | 1096 | x = y = Qnil; |
| 1097 | 1097 | ||
| 1098 | #ifdef HAVE_MOUSE | ||
| 1098 | /* It's okay for the hook to refrain from storing anything. */ | 1099 | /* It's okay for the hook to refrain from storing anything. */ |
| 1099 | if (mouse_position_hook) | 1100 | if (mouse_position_hook) |
| 1100 | (*mouse_position_hook) (&f, | 1101 | (*mouse_position_hook) (&f, 0, |
| 1101 | &lispy_dummy, &party_dummy, | 1102 | &lispy_dummy, &party_dummy, |
| 1102 | &x, &y, | 1103 | &x, &y, |
| 1103 | &long_dummy); | 1104 | &long_dummy); |
| 1105 | #endif | ||
| 1104 | XSETFRAME (lispy_dummy, f); | 1106 | XSETFRAME (lispy_dummy, f); |
| 1105 | return Fcons (lispy_dummy, Fcons (x, y)); | 1107 | return Fcons (lispy_dummy, Fcons (x, y)); |
| 1106 | } | 1108 | } |
| @@ -2144,7 +2146,7 @@ DEFUN ("mouse-position", Fmouse_position, Smouse_position, 0, 0, 0, | |||
| 2144 | Lisp_Object x, y; | 2146 | Lisp_Object x, y; |
| 2145 | unsigned long long_dummy; | 2147 | unsigned long long_dummy; |
| 2146 | 2148 | ||
| 2147 | (*mouse_position_hook) (&f, | 2149 | (*mouse_position_hook) (&f, 0, |
| 2148 | &lispy_dummy, &party_dummy, | 2150 | &lispy_dummy, &party_dummy, |
| 2149 | &x, &y, | 2151 | &x, &y, |
| 2150 | &long_dummy); | 2152 | &long_dummy); |