From: Eli Zaretskii <eliz@gnu.org> Date: Sat, 24 Sep 2011 14:38:16 +0000 (+0300) Subject: Change the default value of redisplay-dont-pause to t. X-Git-Tag: emacs-pretest-24.0.90~22 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6bf7006fa2efdb9d74451336335c1eeb833ddfb1;p=emacs.git Change the default value of redisplay-dont-pause to t. src/dispnew.c (syms_of_display) <redisplay-dont-pause>: Default value is now t. Doc fix. doc/lispref/display.texi (Forcing Redisplay): Update the description of redisplay-dont-pause due to change in the default value. etc/NEWS: Mention the change of the default value. --- diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index 0094e7c12a6..ed2f0a0d3f0 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog @@ -1,3 +1,8 @@ +2011-09-24 Eli Zaretskii <eliz@gnu.org> + + * display.texi (Forcing Redisplay): Update the description of + redisplay-dont-pause due to change in the default value. + 2011-09-23 Martin Rudalics <rudalics@gmx.at> * frames.texi (Frames and Windows): Move section and rename to diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi index 3002a4c220d..724c46300fd 100644 --- a/doc/lispref/display.texi +++ b/doc/lispref/display.texi @@ -118,15 +118,12 @@ redisplay of all windows. to put more work on the queue to be done by redisplay whenever there is a chance. - Emacs redisplay normally stops if input arrives, and does not happen -at all if input is available before it starts. Most of the time, this -is exactly what you want. However, you can prevent preemption by -binding @code{redisplay-dont-pause} to a non-@code{nil} value. - @defvar redisplay-dont-pause -If this variable is non-@code{nil}, pending input does not -prevent or halt redisplay; redisplay occurs, and finishes, -regardless of whether input is available. +If this variable is non-@code{nil}, pending input does not prevent or +halt redisplay; redisplay occurs, and finishes, regardless of whether +input is available. If it is @code{nil}, Emacs redisplay stops if +input arrives, and does not happen at all if input is available before +it starts. The default is @code{t}. @end defvar @defvar redisplay-preemption-period diff --git a/etc/NEWS b/etc/NEWS index e697db7e888..71e5d9cd8be 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -500,6 +500,13 @@ prompts for a number to count from and for a format string. directory is a remote file name and neither environment variable $ESHELL nor variable `explicit-shell-file-name' is set. ++++ +** The default value of redisplay-dont-change is now t +This makes Emacs feel more responsive to editing commands that arrive +at high rate, e.g. if you lean on some key, because stopping redisplay +in the middle (when this variable is nil) forces more expensive +updates later on, and Emacs appears to be unable to keep up. + * Changes in Specialized Modes and Packages in Emacs 24.1 diff --git a/src/ChangeLog b/src/ChangeLog index 7c7eaf6c779..4eac1d78db7 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,8 @@ 2011-09-24 Eli Zaretskii <eliz@gnu.org> + * dispnew.c (syms_of_display) <redisplay-dont-pause>: Default + value is now t. Doc fix. + * indent.c (Fvertical_motion): Compute and apply the overshoot logic when moving up, not only when moving down. Fix the confusing name and values of the it_overshoot_expected variable; diff --git a/src/dispnew.c b/src/dispnew.c index 958420d3081..51b17fc0f11 100644 --- a/src/dispnew.c +++ b/src/dispnew.c @@ -6494,8 +6494,8 @@ See `buffer-display-table' for more information. */); Vstandard_display_table = Qnil; DEFVAR_BOOL ("redisplay-dont-pause", redisplay_dont_pause, - doc: /* *Non-nil means update isn't paused when input is detected. */); - redisplay_dont_pause = 0; + doc: /* *Non-nil means display update isn't paused when input is detected. */); + redisplay_dont_pause = 1; #if PERIODIC_PREEMPTION_CHECKING DEFVAR_LISP ("redisplay-preemption-period", Vredisplay_preemption_period,