aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.h
diff options
context:
space:
mode:
authorDmitry Antipov2013-08-07 14:32:08 +0400
committerDmitry Antipov2013-08-07 14:32:08 +0400
commit170da1ec691127471ecd118dccd79eec7c9f3699 (patch)
treeb21f37e99fdde63c2f6169c4728629ef2b302513 /src/window.h
parent20940c206593a8e7bd4809348ff95a6f971c5528 (diff)
downloademacs-170da1ec691127471ecd118dccd79eec7c9f3699.tar.gz
emacs-170da1ec691127471ecd118dccd79eec7c9f3699.zip
Be more careful if selected window shows the buffer other than current,
use window_outdated only if this is not so. This change should also address some weird issues discussed in Bug#13012. * window.h (window_outdated): New prototype. * window.c (window_outdated): Now here. Convert from static and always assume window's buffer. (Fwindow_end, Fwindow_line_height): Use it. * xdisp.c (reconsider_clip_changes): Remove prototype, drop 2nd arg and always assume window's buffer. (redisplay_window): Adjust user. (redisplay_internal): Call to reconsider_clip_change once and check whether mode line should be updated only if selected window shows current buffer. (run_window_scroll_functions): Use eassert for debugging check. (Fmove_point_visually, note_mouse_highlight): Use window_outdated.
Diffstat (limited to 'src/window.h')
-rw-r--r--src/window.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/window.h b/src/window.h
index 5da6165c48d..24949e1e287 100644
--- a/src/window.h
+++ b/src/window.h
@@ -973,6 +973,7 @@ extern void replace_buffer_in_windows (Lisp_Object);
973extern void replace_buffer_in_windows_safely (Lisp_Object); 973extern void replace_buffer_in_windows_safely (Lisp_Object);
974/* This looks like a setter, but it is a bit special. */ 974/* This looks like a setter, but it is a bit special. */
975extern void wset_buffer (struct window *, Lisp_Object); 975extern void wset_buffer (struct window *, Lisp_Object);
976extern bool window_outdated (struct window *);
976extern void init_window_once (void); 977extern void init_window_once (void);
977extern void init_window (void); 978extern void init_window (void);
978extern void syms_of_window (void); 979extern void syms_of_window (void);