From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.help Subject: Re: Frame resize hook? Date: Thu, 23 Apr 2009 11:58:00 +0200 Message-ID: References: <49F0200C.8070501@gmail.com> <49F02D1C.9030601@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1240480918 16392 80.91.229.12 (23 Apr 2009 10:01:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 23 Apr 2009 10:01:58 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Juan Pedro Bolivar Puente Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 23 12:03:16 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Lwvkt-00011m-PU for geh-help-gnu-emacs@m.gmane.org; Thu, 23 Apr 2009 12:02:08 +0200 Original-Received: from localhost ([127.0.0.1]:35849 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LwvjU-0007cj-O9 for geh-help-gnu-emacs@m.gmane.org; Thu, 23 Apr 2009 06:00:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lwvh1-00073q-JH for help-gnu-emacs@gnu.org; Thu, 23 Apr 2009 05:58:07 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lwvgw-00073F-Av for help-gnu-emacs@gnu.org; Thu, 23 Apr 2009 05:58:06 -0400 Original-Received: from [199.232.76.173] (port=59938 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lwvgw-00073C-11 for help-gnu-emacs@gnu.org; Thu, 23 Apr 2009 05:58:02 -0400 Original-Received: from mail-fx0-f169.google.com ([209.85.220.169]:61595) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lwvgv-0003xU-J9 for help-gnu-emacs@gnu.org; Thu, 23 Apr 2009 05:58:01 -0400 Original-Received: by fxm17 with SMTP id 17so463122fxm.42 for ; Thu, 23 Apr 2009 02:58:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=WU/zBeuO0ZCV1jpHFPz2n9qfWKta1svPkJ86QZBtwvw=; b=TMn/JhGlmR2qiczH9xC4Wca5qmUzmw6pYKYTgu29bi+rGHE0Ve+DOFH6Qe7Hj6u3k3 KZY4Ww6Q/5ghd0BjRH3IKrr57qbriJI9VvIpR3MKHF0uB8Q0oo6oQ2hQCafryy+pmgl3 ZTxnNvrd3p82UnhIAHS4jR860db4qx7K4miow= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=O0vhNBnbEB1Z4RAbCPHw1gDJktQJhBG7tq/h9b/JiCOx3R6HFORH0I3HpCOCxXigf6 LQmmjOAB3HxjMDl5H1PjhAdCLt6zuVFnkwYQwwFfu/tNrMMRe6e0eLg0+cYlPMtiiGgK Rxlmc447bprJ/r4i3XkV73abgSegkr2Yvpe8c= Original-Received: by 10.223.108.15 with SMTP id d15mr218046fap.62.1240480680301; Thu, 23 Apr 2009 02:58:00 -0700 (PDT) In-Reply-To: X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:63970 Archived-At: On Thu, Apr 23, 2009 at 11:32 AM, Juan Pedro Bolivar Puente 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)) ... ))