[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 579a9ee: Remove Vwindow_text_change_functions and r
From: |
Martin Rudalics |
Subject: |
[Emacs-diffs] master 579a9ee: Remove Vwindow_text_change_functions and related code |
Date: |
Fri, 7 Jul 2017 02:41:20 -0400 (EDT) |
branch: master
commit 579a9ee22e0decf7bed8aff1751c5b3d147b921f
Author: Martin Rudalics <address@hidden>
Commit: Martin Rudalics <address@hidden>
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'.
---
doc/lispref/hooks.texi | 5 -----
src/xdisp.c | 19 -------------------
2 files changed, 24 deletions(-)
diff --git a/doc/lispref/hooks.texi b/doc/lispref/hooks.texi
index 0ac5b08..6443464 100644
--- a/doc/lispref/hooks.texi
+++ b/doc/lispref/hooks.texi
@@ -241,11 +241,6 @@ Redisplay}.
@itemx window-scroll-functions
@itemx window-size-change-functions
@xref{Window Hooks}.
-
address@hidden window-text-change-functions
address@hidden window-text-change-functions
-Functions to call in redisplay when text in the window might change.
-
@end table
@ignore
diff --git a/src/xdisp.c b/src/xdisp.c
index 8bc5d81..1c316fa 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -16431,9 +16431,6 @@ redisplay_window (Lisp_Object window, bool
just_this_one_p)
eassert (XMARKER (w->start)->buffer == buffer);
eassert (XMARKER (w->pointm)->buffer == buffer);
- /* We come here again if we need to run window-text-change-functions
- below. */
- restart:
reconsider_clip_changes (w);
frame_line_height = default_line_pixel_height (w);
margin = window_scroll_margin (w, MARGIN_IN_LINES);
@@ -16500,16 +16497,6 @@ redisplay_window (Lisp_Object window, bool
just_this_one_p)
&& !window_outdated (w)
&& !hscrolling_current_line_p (w));
- /* Run the window-text-change-functions
- if it is possible that the text on the screen has changed
- (either due to modification of the text, or any other reason). */
- if (!current_matrix_up_to_date_p
- && !NILP (Vwindow_text_change_functions))
- {
- safe_run_hooks (Qwindow_text_change_functions);
- goto restart;
- }
-
beg_unchanged = BEG_UNCHANGED;
end_unchanged = END_UNCHANGED;
@@ -31692,7 +31679,6 @@ They are still logged to the *Messages* buffer. */);
DEFSYM (Qoverriding_terminal_local_map, "overriding-terminal-local-map");
DEFSYM (Qoverriding_local_map, "overriding-local-map");
DEFSYM (Qwindow_scroll_functions, "window-scroll-functions");
- DEFSYM (Qwindow_text_change_functions, "window-text-change-functions");
DEFSYM (Qredisplay_end_trigger_functions, "redisplay-end-trigger-functions");
DEFSYM (Qinhibit_point_motion_hooks, "inhibit-point-motion-hooks");
DEFSYM (Qeval, "eval");
@@ -32016,11 +32002,6 @@ is scrolled. It is not designed for that, and such
use probably won't
work. */);
Vwindow_scroll_functions = Qnil;
- DEFVAR_LISP ("window-text-change-functions",
- Vwindow_text_change_functions,
- doc: /* Functions to call in redisplay when text in the window might
change. */);
- Vwindow_text_change_functions = Qnil;
-
DEFVAR_LISP ("redisplay-end-trigger-functions",
Vredisplay_end_trigger_functions,
doc: /* Functions called when redisplay of a window reaches the end
trigger.
Each function is called with two arguments, the window and the end trigger
value.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 579a9ee: Remove Vwindow_text_change_functions and related code,
Martin Rudalics <=