=== modified file 'src/xdisp.c' --- src/xdisp.c 2012-11-27 03:10:32 +0000 +++ src/xdisp.c 2012-11-28 15:39:55 +0000 @@ -10898,14 +10898,17 @@ } /* Nonzero if W doesn't reflect the actual state of - current buffer due to its text or overlays change. */ + its buffer due to its text or overlays change. */ static int window_outdated (struct window *w) { - eassert (XBUFFER (w->buffer) == current_buffer); - return (w->last_modified < MODIFF - || w->last_overlay_modified < OVERLAY_MODIFF); + struct buffer *b = XBUFFER (w->buffer); + + eassert (BUFFER_LIVE_P (b)); + + return (w->last_modified < BUF_MODIFF (b) + || w->last_overlay_modified < BUF_OVERLAY_MODIFF (b)); } /* Nonzero if W's buffer was changed but not saved or Transient Mark mode