unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: storm@cua.dk (Kim F. Storm)
Cc: emacs-devel@gnu.org
Subject: Re: redisplay-dont-pause does not work
Date: Sat, 27 May 2006 22:57:44 +0200	[thread overview]
Message-ID: <m31wufmbhz.fsf@kfs-l.imdomain.dk> (raw)
In-Reply-To: <E1FjpbG-0008SJ-Sv@fencepost.gnu.org> (Richard Stallman's message of "Fri, 26 May 2006 23:36:26 -0400")

Richard Stallman <rms@gnu.org> 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);


-- 
Kim F. Storm <storm@cua.dk> http://www.cua.dk

  parent reply	other threads:[~2006-05-27 20:57 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-25 10:52 redisplay-dont-pause does not work David Kastrup
2006-05-26  2:21 ` Richard Stallman
2006-05-26  7:19   ` David Kastrup
2006-05-27  3:36     ` Richard Stallman
2006-05-27  6:49       ` David Kastrup
2006-05-28  3:18         ` Richard Stallman
2006-05-28  7:47           ` David Kastrup
2006-05-29  6:38             ` Richard Stallman
2006-05-29  8:08               ` Kim F. Storm
2006-06-01  9:44                 ` David Kastrup
2006-06-01 12:11                   ` Eli Zaretskii
2006-06-01 13:52                   ` Kim F. Storm
2006-06-01 20:22                     ` David Kastrup
2006-06-05  9:00                     ` Lars Hansen
2006-06-05  9:05                       ` David Kastrup
2006-06-05  9:19                         ` Lars Hansen
2006-06-05  9:34                         ` Slawomir Nowaczyk
2006-06-05  9:38                           ` David Kastrup
2006-06-05 21:26                             ` Kim F. Storm
2006-06-06  8:21                               ` Lars Hansen
2006-06-06  9:47                                 ` Kim F. Storm
2006-06-06  9:58                                   ` David Kastrup
2006-06-06 11:40                                     ` Kim F. Storm
2006-06-09 11:50                                       ` David Kastrup
2006-06-13 23:04                                       ` Kim F. Storm
2006-06-06 12:44                                     ` Lars Hansen
2006-06-05  9:38                           ` Lars Hansen
2006-06-05 21:31                       ` Richard Stallman
2006-06-06  8:38                         ` Kim F. Storm
2006-05-27  8:24       ` Lars Hansen
2006-05-27 11:28         ` Eli Zaretskii
2006-05-27 14:14           ` Stefan Monnier
2006-05-27 14:21             ` David Kastrup
2006-05-27 20:57       ` Kim F. Storm [this message]
2006-05-27 21:22         ` David Kastrup
2006-05-27 22:54           ` Kim F. Storm
2006-05-27 23:01             ` David Kastrup

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m31wufmbhz.fsf@kfs-l.imdomain.dk \
    --to=storm@cua.dk \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).