[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: request: make-frame-visible hook

From: Bo Lin
Subject: Re: request: make-frame-visible hook
Date: Sun, 22 Feb 2009 11:31:21 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.90 (gnu/linux)

Richard M Stallman <address@hidden> writes:
>      before-window-buffer-change-hook
>      after-window-buffer-change-hook
>      focus-window-hook
>      unfocus-window-hook
>      enter-buffer-hook
>      exit-buffer-hook
> What packages would want these, and what are they trying to do?

winner-mode (included in Emacs) uses a `post-command-hook' to save old
window configurations due to a lack of
`before-window-configuration-change-hook'. It tries to automatically
keep track of window configuration changes so the user can "go back" to
a previous window configuration without having to have manually "saved"
the old configuration beforehand. It is analogous to how web browsers
keep a history of pages visited in a browsing session. In order to do
that it needs to be notified when the window configuration is about to
change but before the change has actually occurred, so
`window-configuration-change-hook' is not sufficient.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]