bug-gnu-emacs
[Top][All Lists]
Advanced

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

Re: small number of lines: X error


From: Gerd Moellmann
Subject: Re: small number of lines: X error
Date: 01 Nov 2001 12:35:18 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1.30

address@hidden (Raphaël Berbain) writes:


[...]

> #0  x_error_quitter (display=0x84aa530, error=0xbfffe4c8) at xterm.c:12037
> #1  0x080d97d2 in x_error_handler (display=0x84aa530, error=0xbfffe4c8)
>     at xterm.c:12055
> #2  0x40208b6d in _XError () from /usr/X11R6/lib/libX11.so.6
> #3  0x4020721b in _XReply () from /usr/X11R6/lib/libX11.so.6
> #4  0x40202c17 in XSync () from /usr/X11R6/lib/libX11.so.6
> #5  0x40202ca0 in _XSyncFunction () from /usr/X11R6/lib/libX11.so.6
> #6  0x40204f20 in XCreateWindow () from /usr/X11R6/lib/libX11.so.6

Ah, I've forgotten that you are using the antique scroll bars :-).
I think this should fix it:

Index: window.c
===================================================================
RCS file: /cvsroot/emacs/emacs/src/window.c,v
retrieving revision 1.376.4.2
retrieving revision 1.376.4.3
diff -c -r1.376.4.2 -r1.376.4.3
*** window.c    2001/10/29 18:58:19     1.376.4.2
--- window.c    2001/10/31 10:10:52     1.376.4.3
***************
*** 3777,3783 ****
      {
        int min_height = window_min_size (root, 0, 0, 0);
        if (XFASTINT (root->height) - delta < min_height)
!       delta = XFASTINT (root->height) - min_height;
      }
      
    if (delta)
--- 3777,3785 ----
      {
        int min_height = window_min_size (root, 0, 0, 0);
        if (XFASTINT (root->height) - delta < min_height)
!       /* Note that the roor window may already be smaller than
!          min_height.  */
!       delta = max (0, XFASTINT (root->height) - min_height);
      }
      
    if (delta)
Index: xterm.c
===================================================================
RCS file: /cvsroot/emacs/emacs/src/xterm.c,v
retrieving revision 1.650.4.13
retrieving revision 1.650.4.14
diff -c -r1.650.4.13 -r1.650.4.14
*** xterm.c     2001/10/30 17:29:05     1.650.4.13
--- xterm.c     2001/11/01 11:30:57     1.650.4.14
***************
*** 8942,8950 ****
      /* Clear the area of W that will serve as a scroll bar.  This is
         for the case that a window has been split horizontally.  In
         this case, no clear_frame is generated to reduce flickering.  */
!     x_clear_area (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f),
!                 left, top, width,
!                 window_box_height (w), False);
  
      window = XCreateWindow (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f),
                            /* Position and size of scroll bar.  */
--- 8942,8951 ----
      /* Clear the area of W that will serve as a scroll bar.  This is
         for the case that a window has been split horizontally.  In
         this case, no clear_frame is generated to reduce flickering.  */
!     if (width > 0 && height > 0)
!       x_clear_area (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f),
!                   left, top, width,
!                   window_box_height (w), False);
  
      window = XCreateWindow (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f),
                            /* Position and size of scroll bar.  */
***************
*** 9187,9193 ****
    /* Does the scroll bar exist yet?  */
    if (NILP (w->vertical_scroll_bar))
      {
!       if (width && height)
        {
          BLOCK_INPUT;
          x_clear_area (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f),
--- 9188,9194 ----
    /* Does the scroll bar exist yet?  */
    if (NILP (w->vertical_scroll_bar))
      {
!       if (width > 0 && height > 0)
        {
          BLOCK_INPUT;
          x_clear_area (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f),
***************
*** 9219,9225 ****
  
        /* Since toolkit scroll bars are smaller than the space reserved
         for them on the frame, we have to clear "under" them.  */
!       if (width && height)
        x_clear_area (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f),
                      left, top, width, height, False);
  
--- 9220,9226 ----
  
        /* Since toolkit scroll bars are smaller than the space reserved
         for them on the frame, we have to clear "under" them.  */
!       if (width > 0 && height > 0)
        x_clear_area (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f),
                      left, top, width, height, False);
  



reply via email to

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