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: Sat, 27 May 2006 23:22:17 +0200 Message-ID: <85odxjjh86.fsf@lola.goethe.zz> References: <85y7wqz896.fsf@lola.goethe.zz> <85verttfr2.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 1148764996 23159 80.91.229.2 (27 May 2006 21:23:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 27 May 2006 21:23:16 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 27 23:23:14 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 1Fk6FX-0001wv-7e for ged-emacs-devel@m.gmane.org; Sat, 27 May 2006 23:23:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fk6FW-0000dy-Mv for ged-emacs-devel@m.gmane.org; Sat, 27 May 2006 17:23:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fk6FL-0000dZ-2o for emacs-devel@gnu.org; Sat, 27 May 2006 17:22:55 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fk6FK-0000cv-Ex for emacs-devel@gnu.org; Sat, 27 May 2006 17:22:54 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fk6FK-0000cX-4U for emacs-devel@gnu.org; Sat, 27 May 2006 17:22:54 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Fk6KW-0004AJ-HS for emacs-devel@gnu.org; Sat, 27 May 2006 17:28:16 -0400 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1Fk6FB-00014l-Ll; Sat, 27 May 2006 17:22:46 -0400 Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id 3E2411CE3134; Sat, 27 May 2006 23:22:17 +0200 (CEST) Original-To: storm@cua.dk (Kim F. Storm) In-Reply-To: (Kim F. Storm's message of "Sat, 27 May 2006 22:57:44 +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:55363 Archived-At: storm@cua.dk (Kim F. Storm) writes: > Richard Stallman writes: > >> You can request a display update, but only if no input is pending, >> with @code{(sit-for 0)}. To force a display update even when input is >> pending, do this: >> >> @example >> (let ((redisplay-dont-pause t)) >> (sit-for 0)) >> @end example >> >> Yes, I see a contradiction here. Setting `redisplay-dont-pause' does >> not have the declared effect, to wit "to force a display update even >> when input is pending". >> >> I think that text in the manual is mistaken. `redisplay-dont-pause' >> only affects redisplay itself. It has no effect on sit-for, which >> isn't (strictly speaking) redisplay. >> >> We could change the code, or change the manual. >> I am not sure which is better. > > Here is a fix for the code. > > *** dispnew.c 01 May 2006 10:07:42 +0200 1.363 > --- dispnew.c 27 May 2006 22:53:42 +0200 > *************** > *** 6406,6412 **** > swallow_events (display); > > if (detect_input_pending_run_timers (display) || !NILP (Vexecuting_kbd_macro)) > ! return Qnil; > > if (initial_display) > redisplay_preserve_echo_area (2); > --- 6406,6415 ---- > swallow_events (display); > > if (detect_input_pending_run_timers (display) || !NILP (Vexecuting_kbd_macro)) > ! { > ! if (!redisplay_dont_pause || sec || usec) > ! return Qnil; > ! } > > if (initial_display) > redisplay_preserve_echo_area (2); Is there a particular reason that you used " || sec || usec" here? It makes (sit-for 0) a special case, and I am not sure why. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum