From: Lennart Borgman <lennart.borgman@gmail.com>
To: Juan Pedro Bolivar Puente <magnicida@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Frame resize hook?
Date: Thu, 23 Apr 2009 11:58:00 +0200 [thread overview]
Message-ID: <e01d8a50904230258w631d4a8crdb427419c005ff1b@mail.gmail.com> (raw)
In-Reply-To: <gspcm5$af4$1@ger.gmane.org>
On Thu, Apr 23, 2009 at 11:32 AM, Juan Pedro Bolivar Puente
<magnicida@gmail.com> wrote:
>
>>>>
>>> Yes, but I get into infinite recursion and stack overflow as
>>> ecb-layout-redraw also changes window configuration :p
>>
>> You have to protect against that by let-binding the hook.
>>
>>
>>
>
> I don't understand very well what you mean. Can you please give me a
> further explanation? I'm a newbie on elisp.
You can override the value of a a variable through dynamic binding,
see for example
http://www.emacswiki.org/emacs/DynamicBindingVsLexicalBinding
In your case you can use something like this in the function
(your-hook-fun) you put in the hook:
(defun your-hook-fun ()
(let ((window-configuration-change-hook nil))
...
))
next prev parent reply other threads:[~2009-04-23 9:58 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-22 9:49 Frame resize hook? Juan Pedro Bolivar Puente
2009-04-22 18:02 ` Nikolaj Schumacher
2009-04-22 22:57 ` Lennart Borgman
2009-04-23 8:00 ` Juan Pedro Bolivar Puente
2009-04-23 8:55 ` Lennart Borgman
2009-04-23 8:55 ` Juan Pedro Bolivar Puente
2009-04-23 9:13 ` Lennart Borgman
2009-04-23 9:32 ` Juan Pedro Bolivar Puente
2009-04-23 9:58 ` Lennart Borgman [this message]
[not found] <mailman.5790.1240394416.31690.help-gnu-emacs@gnu.org>
2009-04-22 14:46 ` Pascal J. Bourguignon
2009-04-22 17:04 ` Juan Pedro Bolivar Puente
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e01d8a50904230258w631d4a8crdb427419c005ff1b@mail.gmail.com \
--to=lennart.borgman@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=magnicida@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).