comparison src/frame.c @ 39918:fa0407ac162f

(Fset_mouse_position): Improve style of comment to follow other comments. (Fset_mouse_pixel_position): Improve style of comment to follow other comments. (Fmake_frame_visible): Doc fix and typo in comment. (Fmake_frame_invisible): Doc fix and typo in comment. (Ficonify_frame): Fix typo in comment.
author Pavel Janík <Pavel@Janik.cz>
date Sun, 14 Oct 2001 15:56:57 +0000
parents 42b7a798ff79
children 579177964efa
comparison
equal deleted inserted replaced
39917:eb6a85173992 39918:fa0407ac162f
1408 CHECK_NUMBER (y, 1); 1408 CHECK_NUMBER (y, 1);
1409 1409
1410 /* I think this should be done with a hook. */ 1410 /* I think this should be done with a hook. */
1411 #ifdef HAVE_WINDOW_SYSTEM 1411 #ifdef HAVE_WINDOW_SYSTEM
1412 if (FRAME_WINDOW_P (XFRAME (frame))) 1412 if (FRAME_WINDOW_P (XFRAME (frame)))
1413 /* Warping the mouse will cause enternotify and focus events. */ 1413 /* Warping the mouse will cause enternotify and focus events. */
1414 x_set_mouse_position (XFRAME (frame), XINT (x), XINT (y)); 1414 x_set_mouse_position (XFRAME (frame), XINT (x), XINT (y));
1415 #else 1415 #else
1416 #if defined (MSDOS) && defined (HAVE_MOUSE) 1416 #if defined (MSDOS) && defined (HAVE_MOUSE)
1417 if (FRAME_MSDOS_P (XFRAME (frame))) 1417 if (FRAME_MSDOS_P (XFRAME (frame)))
1418 { 1418 {
1440 CHECK_NUMBER (y, 1); 1440 CHECK_NUMBER (y, 1);
1441 1441
1442 /* I think this should be done with a hook. */ 1442 /* I think this should be done with a hook. */
1443 #ifdef HAVE_WINDOW_SYSTEM 1443 #ifdef HAVE_WINDOW_SYSTEM
1444 if (FRAME_WINDOW_P (XFRAME (frame))) 1444 if (FRAME_WINDOW_P (XFRAME (frame)))
1445 /* Warping the mouse will cause enternotify and focus events. */ 1445 /* Warping the mouse will cause enternotify and focus events. */
1446 x_set_mouse_pixel_position (XFRAME (frame), XINT (x), XINT (y)); 1446 x_set_mouse_pixel_position (XFRAME (frame), XINT (x), XINT (y));
1447 #else 1447 #else
1448 #if defined (MSDOS) && defined (HAVE_MOUSE) 1448 #if defined (MSDOS) && defined (HAVE_MOUSE)
1449 if (FRAME_MSDOS_P (XFRAME (frame))) 1449 if (FRAME_MSDOS_P (XFRAME (frame)))
1450 { 1450 {
1459 1459
1460 static void make_frame_visible_1 P_ ((Lisp_Object)); 1460 static void make_frame_visible_1 P_ ((Lisp_Object));
1461 1461
1462 DEFUN ("make-frame-visible", Fmake_frame_visible, Smake_frame_visible, 1462 DEFUN ("make-frame-visible", Fmake_frame_visible, Smake_frame_visible,
1463 0, 1, "", 1463 0, 1, "",
1464 "Make the frame FRAME visible (assuming it is an X-window).\n\ 1464 "Make the frame FRAME visible (assuming it is an X window).\n\
1465 If omitted, FRAME defaults to the currently selected frame.") 1465 If omitted, FRAME defaults to the currently selected frame.")
1466 (frame) 1466 (frame)
1467 Lisp_Object frame; 1467 Lisp_Object frame;
1468 { 1468 {
1469 if (NILP (frame)) 1469 if (NILP (frame))
1480 } 1480 }
1481 #endif 1481 #endif
1482 1482
1483 make_frame_visible_1 (XFRAME (frame)->root_window); 1483 make_frame_visible_1 (XFRAME (frame)->root_window);
1484 1484
1485 /* Make menu bar update for the Buffers and Frams menus. */ 1485 /* Make menu bar update for the Buffers and Frames menus. */
1486 windows_or_buffers_changed++; 1486 windows_or_buffers_changed++;
1487 1487
1488 return frame; 1488 return frame;
1489 } 1489 }
1490 1490
1511 } 1511 }
1512 } 1512 }
1513 1513
1514 DEFUN ("make-frame-invisible", Fmake_frame_invisible, Smake_frame_invisible, 1514 DEFUN ("make-frame-invisible", Fmake_frame_invisible, Smake_frame_invisible,
1515 0, 2, "", 1515 0, 2, "",
1516 "Make the frame FRAME invisible (assuming it is an X-window).\n\ 1516 "Make the frame FRAME invisible (assuming it is an X window).\n\
1517 If omitted, FRAME defaults to the currently selected frame.\n\ 1517 If omitted, FRAME defaults to the currently selected frame.\n\
1518 Normally you may not make FRAME invisible if all other frames are invisible,\n\ 1518 Normally you may not make FRAME invisible if all other frames are invisible,\n\
1519 but if the second optional argument FORCE is non-nil, you may do so.") 1519 but if the second optional argument FORCE is non-nil, you may do so.")
1520 (frame, force) 1520 (frame, force)
1521 Lisp_Object frame, force; 1521 Lisp_Object frame, force;
1547 #ifdef HAVE_WINDOW_SYSTEM 1547 #ifdef HAVE_WINDOW_SYSTEM
1548 if (FRAME_WINDOW_P (XFRAME (frame))) 1548 if (FRAME_WINDOW_P (XFRAME (frame)))
1549 x_make_frame_invisible (XFRAME (frame)); 1549 x_make_frame_invisible (XFRAME (frame));
1550 #endif 1550 #endif
1551 1551
1552 /* Make menu bar update for the Buffers and Frams menus. */ 1552 /* Make menu bar update for the Buffers and Frames menus. */
1553 windows_or_buffers_changed++; 1553 windows_or_buffers_changed++;
1554 1554
1555 return Qnil; 1555 return Qnil;
1556 } 1556 }
1557 1557
1586 #ifdef HAVE_WINDOW_SYSTEM 1586 #ifdef HAVE_WINDOW_SYSTEM
1587 if (FRAME_WINDOW_P (XFRAME (frame))) 1587 if (FRAME_WINDOW_P (XFRAME (frame)))
1588 x_iconify_frame (XFRAME (frame)); 1588 x_iconify_frame (XFRAME (frame));
1589 #endif 1589 #endif
1590 1590
1591 /* Make menu bar update for the Buffers and Frams menus. */ 1591 /* Make menu bar update for the Buffers and Frames menus. */
1592 windows_or_buffers_changed++; 1592 windows_or_buffers_changed++;
1593 1593
1594 return Qnil; 1594 return Qnil;
1595 } 1595 }
1596 1596