]> git.eshelyaron.com Git - emacs.git/commitdiff
[!MULTI_FRAME] (window_frame): New function.
authorRichard M. Stallman <rms@gnu.org>
Thu, 5 Jan 1995 22:19:54 +0000 (22:19 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 5 Jan 1995 22:19:54 +0000 (22:19 +0000)
[!MULTI_FRAME] (syms_of_frame): defsubr it.

src/frame.c

index 7ad3c1fbe4489adc24ff8b3e4b7dae83f893d663..a591f69252deff2d3325c46fbd33cf42091a5309 100644 (file)
@@ -1890,6 +1890,20 @@ DEFUN ("selected-frame", Fselected_frame, Sselected_frame, 0, 0, 0,
   return tem;
 }
 
+DEFUN ("window-frame", Fwindow_frame, Swindow_frame, 1, 1, 0,
+  /* Don't confuse make-docfile by having two doc strings for this function.
+     make-docfile does not pay attention to #if, for good reason!  */
+  0)
+  (window)
+     Lisp_Object window;
+{
+  /* For your possible information, this code is unfolded into the
+     second WINDOW_FRAME in frame.h.  */     
+  Lisp_Object tem;
+  XSETFASTINT (tem, 0);
+  return tem;
+}
+
 DEFUN ("frame-first-window", Fframe_first_window, Sframe_first_window, 0, 1, 0,
   0)
   (frame)
@@ -2201,6 +2215,7 @@ syms_of_frame ()
   XSETFASTINT (Vterminal_frame, 0);
 
   defsubr (&Sselected_frame);
+  defsubr (&Swindow_frame);
   defsubr (&Sframe_first_window);
   defsubr (&Sframep);
   defsubr (&Sframe_char_height);