]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/window.c (Fwindow_use_time): New function.
authorMartin Rudalics <rudalics@gmx.at>
Sat, 13 Nov 2010 18:49:22 +0000 (13:49 -0500)
committerChong Yidong <cyd@stupidchicken.com>
Sat, 13 Nov 2010 18:49:22 +0000 (13:49 -0500)
src/ChangeLog
src/window.c

index 2bac819c0d5896863febf5dfce2c6220af7ae860..b821d17e29cdbac8a08eb1cca9c0db82c172dd68 100644 (file)
@@ -1,3 +1,7 @@
+2010-11-13  Martin Rudalics  <rudalics@gmx.at>
+
+       * window.c (Fwindow_use_time): New function.
+
 2010-11-13  Eli Zaretskii  <eliz@gnu.org>
 
        * xdisp.c (set_cursor_from_row): Fix cursor positioning on
index 7591401ee421199e8224ca6af82bce6003e8c88e..086cd858c2ee596c162ca2d7f976be7cf16c3ef3 100644 (file)
@@ -2420,6 +2420,16 @@ check_all_windows (void)
   window_loop (CHECK_ALL_WINDOWS, Qnil, 1, Qt);
 }
 
+DEFUN ("window-use-time", Fwindow_use_time, Swindow_use_time, 0, 1, 0,
+       doc: /* Return WINDOW's use time.
+WINDOW defaults to the selected window.  The window with the highest use
+time is the most recently selected one.  The window with the lowest use
+time is the least recently selected one.  */)
+  (Lisp_Object window)
+{
+  return decode_window (window)->use_time;
+}
+
 DEFUN ("get-lru-window", Fget_lru_window, Sget_lru_window, 0, 2, 0,
        doc: /* Return the window least recently selected or used for display.
 \(LRU means Least Recently Used.)