[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#7381: 24.0.50; Provide a hook run when a window is selected
From: |
Štěpán Němec |
Subject: |
bug#7381: 24.0.50; Provide a hook run when a window is selected |
Date: |
Sat, 13 Nov 2010 13:13:19 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
martin rudalics <rudalics@gmx.at> writes:
> Meanwhile you can simply try out for yourself by adding
>
> 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. */)
> (window)
> Lisp_Object window;
> {
> return decode_window (window)->use_time;
> }
>
> ...
>
> defsubr (&Swindow_use_time);
>
> to your window.c ;-)
That, together with a slightly modified `get-mru-window' definition
(there is no `window-list-1' in the trunk), seems to work just fine for
my purpose.
Thank you very much.
Could `window-use-time' and `get-mru-window' (or at least the former) be
included in the trunk?
Štěpán
- bug#7381: 24.0.50; Provide a hook run when a window is selected, (continued)
- bug#7381: 24.0.50; Provide a hook run when a window is selected, martin rudalics, 2010/11/12
- bug#7381: 24.0.50; Provide a hook run when a window is selected, Štěpán Němec, 2010/11/12
- bug#7381: 24.0.50; Provide a hook run when a window is selected, martin rudalics, 2010/11/12
- bug#7381: 24.0.50; Provide a hook run when a window is selected, Štěpán Němec, 2010/11/12
- bug#7381: 24.0.50; Provide a hook run when a window is selected, martin rudalics, 2010/11/12
- bug#7381: 24.0.50; Provide a hook run when a window is selected, Štěpán Němec, 2010/11/12
- bug#7381: 24.0.50; Provide a hook run when a window is selected, martin rudalics, 2010/11/12
- bug#7381: 24.0.50; Provide a hook run when a window is selected, Štěpán Němec, 2010/11/12
- bug#7381: 24.0.50; Provide a hook run when a window is selected, martin rudalics, 2010/11/13
- bug#7381: 24.0.50; Provide a hook run when a window is selected,
Štěpán Němec <=
- bug#7381: 24.0.50; Provide a hook run when a window is selected, martin rudalics, 2010/11/13
- bug#7381: 24.0.50; Provide a hook run when a window is selected, Štěpán Němec, 2010/11/13
- bug#7381: 24.0.50; Provide a hook run when a window is selected, martin rudalics, 2010/11/13
- bug#7381: 24.0.50; Provide a hook run when a window is selected, Chong Yidong, 2010/11/13
- bug#7381: 24.0.50; Provide a hook run when a window is selected, martin rudalics, 2010/11/13
bug#7381: 24.0.50; Provide a hook run when a window is selected, Stefan Monnier, 2010/11/15