diff options
| author | Gerd Moellmann | 2000-02-21 16:17:24 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-02-21 16:17:24 +0000 |
| commit | cb2255b32540d8d039e7762325577a49f7c3765b (patch) | |
| tree | 5b77babd08e99d8ce9fb23309abb85b3129a0925 /src | |
| parent | beb0bc361fde072503ffaee5af4165dee10ce426 (diff) | |
| download | emacs-cb2255b32540d8d039e7762325577a49f7c3765b.tar.gz emacs-cb2255b32540d8d039e7762325577a49f7c3765b.zip | |
(Fmouse_position): GCPRO retval instead of x and y.
Diffstat (limited to 'src')
| -rw-r--r-- | src/frame.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/frame.c b/src/frame.c index 7e74113af44..441449f5705 100644 --- a/src/frame.c +++ b/src/frame.c | |||
| @@ -1387,6 +1387,7 @@ value as argument.") | |||
| 1387 | Lisp_Object x, y, retval; | 1387 | Lisp_Object x, y, retval; |
| 1388 | int col, row; | 1388 | int col, row; |
| 1389 | unsigned long long_dummy; | 1389 | unsigned long long_dummy; |
| 1390 | struct gcpro gcpro1; | ||
| 1390 | 1391 | ||
| 1391 | f = SELECTED_FRAME (); | 1392 | f = SELECTED_FRAME (); |
| 1392 | x = y = Qnil; | 1393 | x = y = Qnil; |
| @@ -1409,13 +1410,10 @@ value as argument.") | |||
| 1409 | #endif | 1410 | #endif |
| 1410 | XSETFRAME (lispy_dummy, f); | 1411 | XSETFRAME (lispy_dummy, f); |
| 1411 | retval = Fcons (lispy_dummy, Fcons (x, y)); | 1412 | retval = Fcons (lispy_dummy, Fcons (x, y)); |
| 1413 | GCPRO1 (retval); | ||
| 1412 | if (!NILP (Vmouse_position_function)) | 1414 | if (!NILP (Vmouse_position_function)) |
| 1413 | { | 1415 | retval = call1 (Vmouse_position_function, retval); |
| 1414 | struct gcpro gcpro1, gcpro2; | 1416 | RETURN_UNGCPRO (retval); |
| 1415 | GCPRO2 (x, y); | ||
| 1416 | RETURN_UNGCPRO (call1 (Vmouse_position_function, retval)); | ||
| 1417 | } | ||
| 1418 | return retval; | ||
| 1419 | } | 1417 | } |
| 1420 | 1418 | ||
| 1421 | DEFUN ("mouse-pixel-position", Fmouse_pixel_position, | 1419 | DEFUN ("mouse-pixel-position", Fmouse_pixel_position, |