aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
authorMartin Rudalics2010-11-13 13:49:22 -0500
committerChong Yidong2010-11-13 13:49:22 -0500
commita048073e243c62bae2727e70913ec54133ae8746 (patch)
tree9caa25ab9cb7ca6ade7d357b1e1cbd7f3ba4d0d1 /src/window.c
parent0216b7387894b3b7d5556ec2cadf3f18e4a1a882 (diff)
downloademacs-a048073e243c62bae2727e70913ec54133ae8746.tar.gz
emacs-a048073e243c62bae2727e70913ec54133ae8746.zip
* src/window.c (Fwindow_use_time): New function.
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/window.c b/src/window.c
index 7591401ee42..086cd858c2e 100644
--- a/src/window.c
+++ b/src/window.c
@@ -2420,6 +2420,16 @@ check_all_windows (void)
2420 window_loop (CHECK_ALL_WINDOWS, Qnil, 1, Qt); 2420 window_loop (CHECK_ALL_WINDOWS, Qnil, 1, Qt);
2421} 2421}
2422 2422
2423DEFUN ("window-use-time", Fwindow_use_time, Swindow_use_time, 0, 1, 0,
2424 doc: /* Return WINDOW's use time.
2425WINDOW defaults to the selected window. The window with the highest use
2426time is the most recently selected one. The window with the lowest use
2427time is the least recently selected one. */)
2428 (Lisp_Object window)
2429{
2430 return decode_window (window)->use_time;
2431}
2432
2423DEFUN ("get-lru-window", Fget_lru_window, Sget_lru_window, 0, 2, 0, 2433DEFUN ("get-lru-window", Fget_lru_window, Sget_lru_window, 0, 2, 0,
2424 doc: /* Return the window least recently selected or used for display. 2434 doc: /* Return the window least recently selected or used for display.
2425\(LRU means Least Recently Used.) 2435\(LRU means Least Recently Used.)