diff options
| author | Richard M. Stallman | 1995-08-05 05:18:04 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-08-05 05:18:04 +0000 |
| commit | efb57f43ab5ba5f188c9554b1502f0f54bee52eb (patch) | |
| tree | 656e9998de35ce16b20675faafa91e45565a3056 | |
| parent | 9ae77b81920386c75ef8ea1c028ef68dfd80eec6 (diff) | |
| download | emacs-efb57f43ab5ba5f188c9554b1502f0f54bee52eb.tar.gz emacs-efb57f43ab5ba5f188c9554b1502f0f54bee52eb.zip | |
(Fset_mouse_position, Fset_mouse_pixel_position): Doc fixes.
[not MULTI_FRAME] (Fframe_visible_p): New function.
[not MULTI_FRAME] (syms_of_frame): defsubr it.
| -rw-r--r-- | src/frame.c | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/src/frame.c b/src/frame.c index 05bd637070b..54c094c6509 100644 --- a/src/frame.c +++ b/src/frame.c | |||
| @@ -1271,8 +1271,10 @@ and nil for X and Y.") | |||
| 1271 | 1271 | ||
| 1272 | DEFUN ("set-mouse-position", Fset_mouse_position, Sset_mouse_position, 3, 3, 0, | 1272 | DEFUN ("set-mouse-position", Fset_mouse_position, Sset_mouse_position, 3, 3, 0, |
| 1273 | "Move the mouse pointer to the center of character cell (X,Y) in FRAME.\n\ | 1273 | "Move the mouse pointer to the center of character cell (X,Y) in FRAME.\n\ |
| 1274 | WARNING: If you use this under X windows,\n\ | 1274 | Note, this is a no-op for an X frame that is not visible.\n\ |
| 1275 | you should call `unfocus-frame' afterwards.") | 1275 | If you have just created a frame, you must wait for it to become visible\n\ |
| 1276 | before calling this function on it, like this.\n\ | ||
| 1277 | (while (not (frame-visible-p frame)) (sleep-for .5))") | ||
| 1276 | (frame, x, y) | 1278 | (frame, x, y) |
| 1277 | Lisp_Object frame, x, y; | 1279 | Lisp_Object frame, x, y; |
| 1278 | { | 1280 | { |
| @@ -1293,8 +1295,10 @@ you should call `unfocus-frame' afterwards.") | |||
| 1293 | DEFUN ("set-mouse-pixel-position", Fset_mouse_pixel_position, | 1295 | DEFUN ("set-mouse-pixel-position", Fset_mouse_pixel_position, |
| 1294 | Sset_mouse_pixel_position, 3, 3, 0, | 1296 | Sset_mouse_pixel_position, 3, 3, 0, |
| 1295 | "Move the mouse pointer to pixel position (X,Y) in FRAME.\n\ | 1297 | "Move the mouse pointer to pixel position (X,Y) in FRAME.\n\ |
| 1296 | WARNING: If you use this under X windows,\n\ | 1298 | Note, this is a no-op for an X frame that is not visible.\n\ |
| 1297 | you should call `unfocus-frame' afterwards.") | 1299 | If you have just created a frame, you must wait for it to become visible\n\ |
| 1300 | before calling this function on it, like this.\n\ | ||
| 1301 | (while (not (frame-visible-p frame)) (sleep-for .5))") | ||
| 1298 | (frame, x, y) | 1302 | (frame, x, y) |
| 1299 | Lisp_Object frame, x, y; | 1303 | Lisp_Object frame, x, y; |
| 1300 | { | 1304 | { |
| @@ -2394,6 +2398,16 @@ DEFUN ("frame-live-p", Fframe_live_p, Sframe_live_p, 1, 1, 0, | |||
| 2394 | return Qt; | 2398 | return Qt; |
| 2395 | } | 2399 | } |
| 2396 | 2400 | ||
| 2401 | DEFUN ("frame-visible-p", Fframe_visible_p, Sframe_visible_p, 1, 1, 0, | ||
| 2402 | /* Don't confuse make-docfile by having two doc strings for this function. | ||
| 2403 | make-docfile does not pay attention to #if, for good reason! */ | ||
| 2404 | 0) | ||
| 2405 | (frame) | ||
| 2406 | Lisp_Object frame; | ||
| 2407 | { | ||
| 2408 | return Qt; | ||
| 2409 | } | ||
| 2410 | |||
| 2397 | DEFUN ("frame-list", Fframe_list, Sframe_list, 0, 0, 0, | 2411 | DEFUN ("frame-list", Fframe_list, Sframe_list, 0, 0, 0, |
| 2398 | /* Don't confuse make-docfile by having two doc strings for this function. | 2412 | /* Don't confuse make-docfile by having two doc strings for this function. |
| 2399 | make-docfile does not pay attention to #if, for good reason! */ | 2413 | make-docfile does not pay attention to #if, for good reason! */ |
| @@ -2434,6 +2448,7 @@ syms_of_frame () | |||
| 2434 | defsubr (&Sframe_parameters); | 2448 | defsubr (&Sframe_parameters); |
| 2435 | defsubr (&Smodify_frame_parameters); | 2449 | defsubr (&Smodify_frame_parameters); |
| 2436 | defsubr (&Sframe_live_p); | 2450 | defsubr (&Sframe_live_p); |
| 2451 | defsubr (&Sframe_visible_p); | ||
| 2437 | defsubr (&Sframe_list); | 2452 | defsubr (&Sframe_list); |
| 2438 | 2453 | ||
| 2439 | #ifdef MSDOS | 2454 | #ifdef MSDOS |