From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: redisplay-dont-pause does not work Date: Thu, 01 Jun 2006 11:44:27 +0200 Message-ID: <85k681dxc4.fsf@lola.goethe.zz> References: <85y7wqz896.fsf@lola.goethe.zz> <85verttfr2.fsf@lola.goethe.zz> <85psi0klmx.fsf@lola.goethe.zz> <85bqtik2ua.fsf@lola.goethe.zz> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1149155119 25719 80.91.229.2 (1 Jun 2006 09:45:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 1 Jun 2006 09:45:19 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 01 11:45:17 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 1Fljjv-0007fs-P3 for ged-emacs-devel@m.gmane.org; Thu, 01 Jun 2006 11:45:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fljjv-0001aU-Bp for ged-emacs-devel@m.gmane.org; Thu, 01 Jun 2006 05:45:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fljjj-0001YC-MY for emacs-devel@gnu.org; Thu, 01 Jun 2006 05:45:03 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fljjj-0001Xh-1c for emacs-devel@gnu.org; Thu, 01 Jun 2006 05:45:03 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fljji-0001Xe-SO for emacs-devel@gnu.org; Thu, 01 Jun 2006 05:45:02 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Fljpw-000104-5P for emacs-devel@gnu.org; Thu, 01 Jun 2006 05:51:28 -0400 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1Fljja-0000Gn-Rj; Thu, 01 Jun 2006 05:44:55 -0400 Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id 80FA61C1346E; Thu, 1 Jun 2006 11:44:27 +0200 (CEST) Original-To: storm@cua.dk (Kim F. Storm) In-Reply-To: (Kim F. Storm's message of "Mon, 29 May 2006 10:08:45 +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:55544 Archived-At: storm@cua.dk (Kim F. Storm) writes: > Richard Stallman writes: > >> Thanks. Does this do it? > > Obviously not, as the variable is named redisplay_dont_pause. > > Try this: > > *** dispnew.c 01 May 2006 16:16:58 -0400 1.363 > --- dispnew.c 28 May 2006 19:07:02 -0400 > *************** > *** 6405,6411 **** > { > swallow_events (display); > > ! if (detect_input_pending_run_timers (display) || !NILP (Vexecuting_kbd_macro)) > return Qnil; > > if (initial_display) > --- 6406,6415 ---- > { > swallow_events (display); > > ! if ((detect_input_pending_run_timers (display) > ! && !redisplay_dont_pause) > ! || !NILP (Vexecuting_kbd_macro)) > ! > return Qnil; > > if (initial_display) This works as documented in the manual. The effect with a non-zero argument to sit-for is that redisplay happens immediately, then the wait is commenced until (or unless) input is available. Which appears natural enough. I propose checking this change in. It might be worth mentioning redisplay-dont-pause in the DOC string of sit-for. If people agree, I could write something for there. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum