diff options
| author | Martin Rudalics | 2010-11-13 13:49:22 -0500 |
|---|---|---|
| committer | Chong Yidong | 2010-11-13 13:49:22 -0500 |
| commit | a048073e243c62bae2727e70913ec54133ae8746 (patch) | |
| tree | 9caa25ab9cb7ca6ade7d357b1e1cbd7f3ba4d0d1 /src | |
| parent | 0216b7387894b3b7d5556ec2cadf3f18e4a1a882 (diff) | |
| download | emacs-a048073e243c62bae2727e70913ec54133ae8746.tar.gz emacs-a048073e243c62bae2727e70913ec54133ae8746.zip | |
* src/window.c (Fwindow_use_time): New function.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/window.c | 10 |
2 files changed, 14 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 2bac819c0d5..b821d17e29c 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2010-11-13 Martin Rudalics <rudalics@gmx.at> | ||
| 2 | |||
| 3 | * window.c (Fwindow_use_time): New function. | ||
| 4 | |||
| 1 | 2010-11-13 Eli Zaretskii <eliz@gnu.org> | 5 | 2010-11-13 Eli Zaretskii <eliz@gnu.org> |
| 2 | 6 | ||
| 3 | * xdisp.c (set_cursor_from_row): Fix cursor positioning on | 7 | * xdisp.c (set_cursor_from_row): Fix cursor positioning on |
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 | ||
| 2423 | DEFUN ("window-use-time", Fwindow_use_time, Swindow_use_time, 0, 1, 0, | ||
| 2424 | doc: /* Return WINDOW's use time. | ||
| 2425 | WINDOW defaults to the selected window. The window with the highest use | ||
| 2426 | time is the most recently selected one. The window with the lowest use | ||
| 2427 | time is the least recently selected one. */) | ||
| 2428 | (Lisp_Object window) | ||
| 2429 | { | ||
| 2430 | return decode_window (window)->use_time; | ||
| 2431 | } | ||
| 2432 | |||
| 2423 | DEFUN ("get-lru-window", Fget_lru_window, Sget_lru_window, 0, 2, 0, | 2433 | DEFUN ("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.) |