comparison src/frame.c @ 8264:8f227ebb7748

[!MULTI_FRAME] (Fframe_first_window): Defined. (syms_of_frame): Defvar it.
author Richard M. Stallman <rms@gnu.org>
date Sat, 16 Jul 1994 20:19:25 +0000
parents 15d4c2bd29e6
children c78654909acf
comparison
equal deleted inserted replaced
8263:bae811318a57 8264:8f227ebb7748
1835 { 1835 {
1836 Lisp_Object tem; 1836 Lisp_Object tem;
1837 XFASTINT (tem) = 0; 1837 XFASTINT (tem) = 0;
1838 return tem; 1838 return tem;
1839 } 1839 }
1840
1841 DEFUN ("frame-first-window", Fframe_first_window, Sframe_first_window, 0, 1, 0,
1842 0)
1843 (frame)
1844 Lisp_Object frame;
1845 {
1846 Lisp_Object w;
1847
1848 w = FRAME_ROOT_WINDOW (selected_frame);
1849
1850 while (NILP (XWINDOW (w)->buffer))
1851 {
1852 if (! NILP (XWINDOW (w)->hchild))
1853 w = XWINDOW (w)->hchild;
1854 else if (! NILP (XWINDOW (w)->vchild))
1855 w = XWINDOW (w)->vchild;
1856 else
1857 abort ();
1858 }
1859 return w;
1860 }
1861
1840 DEFUN ("framep", Fframep, Sframep, 1, 1, 0, 1862 DEFUN ("framep", Fframep, Sframep, 1, 1, 0,
1841 /* Don't confuse make-docfile by having two doc strings for this function. 1863 /* Don't confuse make-docfile by having two doc strings for this function.
1842 make-docfile does not pay attention to #if, for good reason! */ 1864 make-docfile does not pay attention to #if, for good reason! */
1843 0) 1865 0)
1844 (object) 1866 (object)
2076 DEFVAR_LISP ("terminal-frame", &Vterminal_frame, 2098 DEFVAR_LISP ("terminal-frame", &Vterminal_frame,
2077 "The initial frame-object, which represents Emacs's stdout."); 2099 "The initial frame-object, which represents Emacs's stdout.");
2078 XFASTINT (Vterminal_frame) = 0; 2100 XFASTINT (Vterminal_frame) = 0;
2079 2101
2080 defsubr (&Sselected_frame); 2102 defsubr (&Sselected_frame);
2103 defsubr (&Sframe_first_window);
2081 defsubr (&Sframep); 2104 defsubr (&Sframep);
2082 defsubr (&Sframe_char_height); 2105 defsubr (&Sframe_char_height);
2083 defsubr (&Sframe_char_width); 2106 defsubr (&Sframe_char_width);
2084 defsubr (&Sframe_pixel_height); 2107 defsubr (&Sframe_pixel_height);
2085 defsubr (&Sframe_pixel_width); 2108 defsubr (&Sframe_pixel_width);