emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] /srv/bzr/emacs/trunk r100999: Fix redisplay bugs due to un


From: Eli Zaretskii
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r100999: Fix redisplay bugs due to uninitialized glyphs.
Date: Fri, 06 Aug 2010 18:05:21 +0300
User-agent: Bazaar (2.0.3)

------------------------------------------------------------
revno: 100999 [merge]
committer: Eli Zaretskii <address@hidden>
branch nick: trunk
timestamp: Fri 2010-08-06 18:05:21 +0300
message:
  Fix redisplay bugs due to uninitialized glyphs.
  Add diagnostics tools.
  
   dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
   msdos.c (IT_display_cursor): Log cursor position on termscript.
   .gdbinit (pgx): Display the avoid_cursor_p flag.
modified:
  src/.gdbinit
  src/ChangeLog
  src/dispnew.c
  src/msdos.c
=== modified file 'src/.gdbinit'
--- a/src/.gdbinit      2010-05-19 20:24:21 +0000
+++ b/src/.gdbinit      2010-08-06 14:54:06 +0000
@@ -535,6 +535,9 @@
   if ($g->overlaps_vertically_p)
     printf " OVL"
   end
+  if ($g->avoid_cursor_p)
+    printf " AVOID"
+  end
   if ($g->left_box_line_p)
     printf " ["
   end

=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2010-08-06 12:35:00 +0000
+++ b/src/ChangeLog     2010-08-06 15:05:21 +0000
@@ -1,3 +1,11 @@
+2010-08-06  Eli Zaretskii  <address@hidden>
+
+       * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
+
+       * msdos.c (IT_display_cursor): Log cursor position on termscript.
+
+       * .gdbinit (pgx): Display the avoid_cursor_p flag.
+
 2010-08-06  Juanma Barranquero  <address@hidden>
 
        * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.

=== modified file 'src/dispnew.c'
--- a/src/dispnew.c     2010-07-29 05:48:06 +0000
+++ b/src/dispnew.c     2010-08-06 14:54:06 +0000
@@ -1528,7 +1528,11 @@
       int size = needed * sizeof (struct glyph);
 
       if (pool->glyphs)
-       pool->glyphs = (struct glyph *) xrealloc (pool->glyphs, size);
+       {
+         pool->glyphs = (struct glyph *) xrealloc (pool->glyphs, size);
+         memset (pool->glyphs + pool->nglyphs, 0,
+                 size - pool->nglyphs * sizeof (struct glyph));
+       }
       else
        {
          pool->glyphs = (struct glyph *) xmalloc (size);

=== modified file 'src/msdos.c'
--- a/src/msdos.c       2010-07-29 05:48:06 +0000
+++ b/src/msdos.c       2010-08-06 14:54:06 +0000
@@ -1593,14 +1593,16 @@
       ScreenSetCursor (current_pos_Y, current_pos_X);
       cursor_cleared = 0;
       if (tty->termscript)
-       fprintf (tty->termscript, "\nCURSOR ON");
+       fprintf (tty->termscript, "\nCURSOR ON (%dx%d)",
+                current_pos_Y, current_pos_X);
     }
   else if (!on && !cursor_cleared)
     {
       ScreenSetCursor (-1, -1);
       cursor_cleared = 1;
       if (tty->termscript)
-       fprintf (tty->termscript, "\nCURSOR OFF");
+       fprintf (tty->termscript, "\nCURSOR OFF (%dx%d)",
+                current_pos_Y, current_pos_X);
     }
 }
 


reply via email to

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