aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMartin Rudalics2017-07-07 08:40:24 +0200
committerMartin Rudalics2017-07-07 08:40:24 +0200
commit579a9ee22e0decf7bed8aff1751c5b3d147b921f (patch)
treeb0abe02adbf8b1b09c3481f7fc69cbbb00e7aec3 /src
parent51275358e91d654e0cb49b749bf83d2fa19476c7 (diff)
downloademacs-579a9ee22e0decf7bed8aff1751c5b3d147b921f.tar.gz
emacs-579a9ee22e0decf7bed8aff1751c5b3d147b921f.zip
Remove Vwindow_text_change_functions and related code
Vwindow_text_change_functions had been provided for implementing line numbers but apparently was never functional or in use. * src/xdisp.c (redisplay_window): Remove handling of Vwindow_text_change_functions. (syms_of_xdisp): Remove Qwindow_text_change_functions. (Vwindow_text_change_functions): Remove variable. * doc/lispref/hooks.texi (Standard Hooks): Remove entry for `window-text-change-functions'.
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index 8bc5d81f448..1c316fa4932 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -16431,9 +16431,6 @@ redisplay_window (Lisp_Object window, bool just_this_one_p)
16431 eassert (XMARKER (w->start)->buffer == buffer); 16431 eassert (XMARKER (w->start)->buffer == buffer);
16432 eassert (XMARKER (w->pointm)->buffer == buffer); 16432 eassert (XMARKER (w->pointm)->buffer == buffer);
16433 16433
16434 /* We come here again if we need to run window-text-change-functions
16435 below. */
16436 restart:
16437 reconsider_clip_changes (w); 16434 reconsider_clip_changes (w);
16438 frame_line_height = default_line_pixel_height (w); 16435 frame_line_height = default_line_pixel_height (w);
16439 margin = window_scroll_margin (w, MARGIN_IN_LINES); 16436 margin = window_scroll_margin (w, MARGIN_IN_LINES);
@@ -16500,16 +16497,6 @@ redisplay_window (Lisp_Object window, bool just_this_one_p)
16500 && !window_outdated (w) 16497 && !window_outdated (w)
16501 && !hscrolling_current_line_p (w)); 16498 && !hscrolling_current_line_p (w));
16502 16499
16503 /* Run the window-text-change-functions
16504 if it is possible that the text on the screen has changed
16505 (either due to modification of the text, or any other reason). */
16506 if (!current_matrix_up_to_date_p
16507 && !NILP (Vwindow_text_change_functions))
16508 {
16509 safe_run_hooks (Qwindow_text_change_functions);
16510 goto restart;
16511 }
16512
16513 beg_unchanged = BEG_UNCHANGED; 16500 beg_unchanged = BEG_UNCHANGED;
16514 end_unchanged = END_UNCHANGED; 16501 end_unchanged = END_UNCHANGED;
16515 16502
@@ -31692,7 +31679,6 @@ They are still logged to the *Messages* buffer. */);
31692 DEFSYM (Qoverriding_terminal_local_map, "overriding-terminal-local-map"); 31679 DEFSYM (Qoverriding_terminal_local_map, "overriding-terminal-local-map");
31693 DEFSYM (Qoverriding_local_map, "overriding-local-map"); 31680 DEFSYM (Qoverriding_local_map, "overriding-local-map");
31694 DEFSYM (Qwindow_scroll_functions, "window-scroll-functions"); 31681 DEFSYM (Qwindow_scroll_functions, "window-scroll-functions");
31695 DEFSYM (Qwindow_text_change_functions, "window-text-change-functions");
31696 DEFSYM (Qredisplay_end_trigger_functions, "redisplay-end-trigger-functions"); 31682 DEFSYM (Qredisplay_end_trigger_functions, "redisplay-end-trigger-functions");
31697 DEFSYM (Qinhibit_point_motion_hooks, "inhibit-point-motion-hooks"); 31683 DEFSYM (Qinhibit_point_motion_hooks, "inhibit-point-motion-hooks");
31698 DEFSYM (Qeval, "eval"); 31684 DEFSYM (Qeval, "eval");
@@ -32016,11 +32002,6 @@ is scrolled. It is not designed for that, and such use probably won't
32016work. */); 32002work. */);
32017 Vwindow_scroll_functions = Qnil; 32003 Vwindow_scroll_functions = Qnil;
32018 32004
32019 DEFVAR_LISP ("window-text-change-functions",
32020 Vwindow_text_change_functions,
32021 doc: /* Functions to call in redisplay when text in the window might change. */);
32022 Vwindow_text_change_functions = Qnil;
32023
32024 DEFVAR_LISP ("redisplay-end-trigger-functions", Vredisplay_end_trigger_functions, 32005 DEFVAR_LISP ("redisplay-end-trigger-functions", Vredisplay_end_trigger_functions,
32025 doc: /* Functions called when redisplay of a window reaches the end trigger. 32006 doc: /* Functions called when redisplay of a window reaches the end trigger.
32026Each function is called with two arguments, the window and the end trigger value. 32007Each function is called with two arguments, the window and the end trigger value.