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:13:44 +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 1240478073 7125 80.91.229.12 (23 Apr 2009 09:14:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 23 Apr 2009 09:14:33 +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 11:15:52 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 1Lwv26-0001Yx-BM for geh-help-gnu-emacs@m.gmane.org; Thu, 23 Apr 2009 11:15:50 +0200 Original-Received: from localhost ([127.0.0.1]:40948 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lwv0h-0000Bb-3g for geh-help-gnu-emacs@m.gmane.org; Thu, 23 Apr 2009 05:14:23 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lwv0B-0000B4-EJ for help-gnu-emacs@gnu.org; Thu, 23 Apr 2009 05:13:51 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lwv06-0000AN-2V for help-gnu-emacs@gnu.org; Thu, 23 Apr 2009 05:13:50 -0400 Original-Received: from [199.232.76.173] (port=50251 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lwv05-0000AI-T0 for help-gnu-emacs@gnu.org; Thu, 23 Apr 2009 05:13:45 -0400 Original-Received: from mail-fx0-f169.google.com ([209.85.220.169]:55973) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lwv05-0005qR-HM for help-gnu-emacs@gnu.org; Thu, 23 Apr 2009 05:13:45 -0400 Original-Received: by fxm17 with SMTP id 17so443061fxm.42 for ; Thu, 23 Apr 2009 02:13:44 -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=XrkNmXtnie3tMzScmd8sdMRhBgm83RBWhmDWuUej8Hk=; b=v3UMuNF6Aw3BulWx4cEoG+rB2iNAbY4sIQB8Yf8dwd9DauT2l7XhLiud7j0QX/LZmK 7ZTI6P1VH14Z9f1TvmloO84TNnmV+uNy4OGsiZQyFNs0nPhXvBQGv6M2tPFzumQPKPK6 H0UZDXRDQ4xTbuRgMU1QCYJ22YzRfrxgD9c8M= 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=plx8CFrAuoKX2tGhNC46gJUetKSDwIzzTLw/zRx+BNOna3UcSk8Xen4dh6LqvcsnMI DgNoCs2xE82gqeemoJlmiezXeRFdlytmlDXVc8/jEY2e5Im3hv+UtAlUdjTwfCIDzzkp aLZMY8RlIxmTv2LQP4xvUu9ZkmSAGaXRjPnW4= Original-Received: by 10.223.117.194 with SMTP id s2mr201859faq.83.1240478024498; Thu, 23 Apr 2009 02:13:44 -0700 (PDT) In-Reply-To: <49F02D1C.9030601@gmail.com> 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:63968 Archived-At: On Thu, Apr 23, 2009 at 10:55 AM, Juan Pedro Bolivar Puente wrote: > Lennart Borgman wrote: >> On Thu, Apr 23, 2009 at 10:00 AM, Juan Pedro Bolivar Puente >> wrote: >>> Lennart Borgman wrote: >>>> On Wed, Apr 22, 2009 at 8:02 PM, Nikolaj Schumacher wrote: >>>>> Juan Pedro Bolivar Puente wrote: >>>>> >>>>>> Any hints? >>>>> The dirty way would be running a timer, checking if the window size >>>>> changed, and redrawing then... >>>> What about window-configuration-change-hook? >>>> >>>> >>>> >>> That hook is triggered on windows change, not a frame change. >> >> Yes, but a frame size change triggers windows changes. Does not that >> happen for you? >> >> >> > > 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.