Mercurial > emacs
comparison src/frame.c @ 12774:9b17b06bc9cd
(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.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 05 Aug 1995 05:18:04 +0000 |
parents | bffb5ea6fb43 |
children | 639f9d12f0f8 |
comparison
equal
deleted
inserted
replaced
12773:3fb29deb1b1b | 12774:9b17b06bc9cd |
---|---|
1269 return Fcons (lispy_dummy, Fcons (x, y)); | 1269 return Fcons (lispy_dummy, Fcons (x, y)); |
1270 } | 1270 } |
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 { |
1279 CHECK_LIVE_FRAME (frame, 0); | 1281 CHECK_LIVE_FRAME (frame, 0); |
1280 CHECK_NUMBER (x, 2); | 1282 CHECK_NUMBER (x, 2); |
1291 } | 1293 } |
1292 | 1294 |
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 { |
1301 CHECK_LIVE_FRAME (frame, 0); | 1305 CHECK_LIVE_FRAME (frame, 0); |
1302 CHECK_NUMBER (x, 2); | 1306 CHECK_NUMBER (x, 2); |
2392 Lisp_Object frame; | 2396 Lisp_Object frame; |
2393 { | 2397 { |
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! */ |
2400 0) | 2414 0) |
2401 () | 2415 () |
2432 Ffset (intern ("screen-width"), intern ("frame-width")); | 2446 Ffset (intern ("screen-width"), intern ("frame-width")); |
2433 defsubr (&Smouse_position); | 2447 defsubr (&Smouse_position); |
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 |
2440 /* A comment in dispnew.c says the_only_frame is not protected. */ | 2455 /* A comment in dispnew.c says the_only_frame is not protected. */ |
2441 the_only_frame.face_alist = Qnil; | 2456 the_only_frame.face_alist = Qnil; |