help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Frame resize hook?


From: Pascal J. Bourguignon
Subject: Re: Frame resize hook?
Date: Wed, 22 Apr 2009 16:46:33 +0200
User-agent: Gnus/5.101 (Gnus v5.10.10) Emacs/22.2 (gnu/linux)

Juan Pedro Bolivar Puente <magnicida@gmail.com> writes:

> I'm using Xmonad as window manager so tiling causes frames to get very
> small sometimes, and if I'm working with ECB windows are messed
> afterwards. I can fix it by calling ecb-redraw-layout, but I don't know
> how to get that function called automatically on every resize of the
> Emacs frame.
>
> Any hints?

Perhaps with an advice, but ISTR that advices are not called when the
function is called from within the C layer of emacs (the calls are
"open coded" there).  So it would work only if the frame resizing is
done from lisp code.

The functions to advice would be set-frame-size, set-frame-width and 
set-frame-height.
(perhaps also set-frame-position).

Cf. defadvice

Otherwise, you would have to patch the C code of these primitive functions.

-- 
__Pascal Bourguignon__


reply via email to

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