emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master c9c4708: Add comment that x_shift_glyphs_for_insert


From: Jan D.
Subject: [Emacs-diffs] master c9c4708: Add comment that x_shift_glyphs_for_insert is never called.
Date: Sun, 17 May 2015 09:30:22 +0000

branch: master
commit c9c4708ed47b18987940a71b98eb9873150d2b95
Author: Jan D <address@hidden>
Commit: Jan D <address@hidden>

    Add comment that x_shift_glyphs_for_insert is never called.
    
    * xterm.c (x_shift_glyphs_for_insert, x_redisplay_interface): Add
    comment that this function is never called.
---
 src/xterm.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/xterm.c b/src/xterm.c
index 9616dab..ad2bef9 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -2896,6 +2896,9 @@ x_draw_glyph_string (struct glyph_string *s)
 static void
 x_shift_glyphs_for_insert (struct frame *f, int x, int y, int width, int 
height, int shift_by)
 {
+/* Never called on a GUI frame, see
+   http://lists.gnu.org/archive/html/emacs-devel/2015-05/msg00456.html
+*/
   XCopyArea (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), FRAME_X_WINDOW (f),
             f->output_data.x->normal_gc,
             x, y, width, height,
@@ -11449,7 +11452,7 @@ static struct redisplay_interface x_redisplay_interface 
=
     x_draw_window_cursor,
     x_draw_vertical_window_border,
     x_draw_window_divider,
-    x_shift_glyphs_for_insert,
+    x_shift_glyphs_for_insert, /* Never called, se comment in function.  */
     x_show_hourglass,
     x_hide_hourglass
   };



reply via email to

[Prev in Thread] Current Thread [Next in Thread]