From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: redisplay-dont-pause does not work Date: Tue, 06 Jun 2006 11:47:36 +0200 Message-ID: References: <4483F292.2040302@soem.dk> <8564jgotvf.fsf@lola.goethe.zz> <20060605113149.FC61.SLAWOMIR.NOWACZYK.847@student.lu.se> <851wu4osca.fsf@lola.goethe.zz> <44853B02.4040504@soem.dk> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1149587413 17322 80.91.229.2 (6 Jun 2006 09:50:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 6 Jun 2006 09:50:13 +0000 (UTC) Cc: Slawomir Nowaczyk , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 06 11:50:10 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FnYCK-0002qM-HL for ged-emacs-devel@m.gmane.org; Tue, 06 Jun 2006 11:50:04 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FnYCJ-0002Rd-Nj for ged-emacs-devel@m.gmane.org; Tue, 06 Jun 2006 05:50:03 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FnYC7-0002RO-Be for emacs-devel@gnu.org; Tue, 06 Jun 2006 05:49:51 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FnYC5-0002RB-GW for emacs-devel@gnu.org; Tue, 06 Jun 2006 05:49:50 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FnYC5-0002R8-Bs for emacs-devel@gnu.org; Tue, 06 Jun 2006 05:49:49 -0400 Original-Received: from [195.41.46.235] (helo=pfepa.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FnYJQ-000498-FE for emacs-devel@gnu.org; Tue, 06 Jun 2006 05:57:24 -0400 Original-Received: from kfs-l.imdomain.dk.cua.dk (unknown [80.165.4.124]) by pfepa.post.tele.dk (Postfix) with SMTP id 3F54BFAC078; Tue, 6 Jun 2006 11:49:46 +0200 (CEST) Original-To: Lars Hansen In-Reply-To: <44853B02.4040504@soem.dk> (Lars Hansen's message of "Tue, 06 Jun 2006 10:21:22 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:55750 Archived-At: Lars Hansen writes: > Kim F. Storm wrote: > >>(defun redisplay-now (&optional object) >> "Force immediate display update of all windows. >>If optional arg object is a frame, update display of that frame only. >>If optional arg object is a window, update display of that window only. >>If object is a buffer or buffer name, update display of all windows >>displaying that buffer." >> ;; There is currently no way to update individual windows, so >> ;; update everything. >> (let ((redisplay-dont-pause t)) >> (sit-for 0))) >> >> > This would be great IMO. Thinking some more about this, I'm a bit puzzled about what specific purpose anyone would have from doing this ... In most cases, if there are no changes to other parts of the frame, redisplay will not spend time on updating them... So if the concern is that updating all windows/frames is performance related, I think that's a non-issue. And even if it _does_ redisplay all windows/frames, only the actual changes to the display are actually propagated to the screen. So I'm back to supporting the original proposal of having an explicit "redisplay now" functionality ... but I propose to implement it as a special call to sit-for: (sit-for t) or perhaps as (sit-for 0 'redisplay-dont-pause). -- Kim F. Storm http://www.cua.dk