* Why isn't there a hook that runs when a window is created?
@ 2012-02-16 8:21 Leo
2012-02-16 13:53 ` Stefan Monnier
0 siblings, 1 reply; 4+ messages in thread
From: Leo @ 2012-02-16 8:21 UTC (permalink / raw)
To: emacs-devel
Hello,
I know something can be achieved using window-configuration-change-hook
or window-size-change-functions but they are not as straightforward as I
would like.
For example there is after-make-frame-functions but not one for window
specifically. Is there any reason? Thanks.
Leo
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Why isn't there a hook that runs when a window is created?
2012-02-16 8:21 Why isn't there a hook that runs when a window is created? Leo
@ 2012-02-16 13:53 ` Stefan Monnier
2012-02-17 1:17 ` Leo
0 siblings, 1 reply; 4+ messages in thread
From: Stefan Monnier @ 2012-02-16 13:53 UTC (permalink / raw)
To: Leo; +Cc: emacs-devel
> I know something can be achieved using window-configuration-change-hook
> or window-size-change-functions but they are not as straightforward as I
> would like.
> For example there is after-make-frame-functions but not one for window
> specifically. Is there any reason? Thanks.
I guess that the main reason is that noone's needed it yet.
What do you need it for?
Stefan
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Why isn't there a hook that runs when a window is created?
2012-02-16 13:53 ` Stefan Monnier
@ 2012-02-17 1:17 ` Leo
2012-02-17 15:08 ` Stefan Monnier
0 siblings, 1 reply; 4+ messages in thread
From: Leo @ 2012-02-17 1:17 UTC (permalink / raw)
To: emacs-devel
On 2012-02-16 21:53 +0800, Stefan Monnier wrote:
> I guess that the main reason is that noone's needed it yet.
> What do you need it for?
Me neither except I just re-discovered window-local variables (ie window
parameters) and most times I want to set them up when new ones are
created. A hook like this would be handy.
Leo
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Why isn't there a hook that runs when a window is created?
2012-02-17 1:17 ` Leo
@ 2012-02-17 15:08 ` Stefan Monnier
0 siblings, 0 replies; 4+ messages in thread
From: Stefan Monnier @ 2012-02-17 15:08 UTC (permalink / raw)
To: Leo; +Cc: emacs-devel
>> I guess that the main reason is that noone's needed it yet.
>> What do you need it for?
> Me neither except I just re-discovered window-local variables (ie window
> parameters) and most times I want to set them up when new ones are
> created. A hook like this would be handy.
I'd still like to hear of concrete cases first.
Stefan
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-02-17 15:08 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-16 8:21 Why isn't there a hook that runs when a window is created? Leo
2012-02-16 13:53 ` Stefan Monnier
2012-02-17 1:17 ` Leo
2012-02-17 15:08 ` Stefan Monnier
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.