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

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

Re: Crash when using scroll bar in Carbon port (keyboard.c:3010)


From: YAMAMOTO Mitsuharu
Subject: Re: Crash when using scroll bar in Carbon port (keyboard.c:3010)
Date: Mon, 14 Jan 2008 12:23:34 +0900
User-agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (Shijō) APEL/10.6 Emacs/23.0.50 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI)

>>>>> On Sun, 13 Jan 2008 07:41:03 -0800 (PST), David Reitter 
>>>>> <david.reitter@gmail.com> said:

> It was enough to visit the .Rnw file (as added below in this
> e-mail), resize the frame so that there is a vertical scroll bar and
> one can scroll around, and then drag the thumb back and forth.

As a general note, please add some information about third-party
packages if they are necessary for reproducing the problem on the
standard Emacs distribution, because this is a list for bug reports
about Emacs.  Anyway, I tried ess-5.3.6 with the Carbon port, but
could not reproduce the problem.

This is just a random guess, but could you try the following patch and
see if the situation changes?

                                     YAMAMOTO Mitsuharu
                                mituharu@math.s.chiba-u.ac.jp

Index: src/macterm.c
===================================================================
RCS file: /cvsroot/emacs/emacs/src/macterm.c,v
retrieving revision 1.214.2.12
diff -c -p -r1.214.2.12 macterm.c
*** src/macterm.c       8 Jan 2008 04:29:56 -0000       1.214.2.12
--- src/macterm.c       14 Jan 2008 03:03:41 -0000
*************** void
*** 5581,5588 ****
  x_scroll_bar_clear (f)
       FRAME_PTR f;
  {
!   XTcondemn_scroll_bars (f);
!   XTjudge_scroll_bars (f);
  }
  
  
--- 5581,5600 ----
  x_scroll_bar_clear (f)
       FRAME_PTR f;
  {
!   Lisp_Object bar;
! 
!   /* We can have scroll bars even if this is 0,
!      if we just turned off scroll bar mode.
!      But in that case we should not clear them.  */
!   if (FRAME_HAS_VERTICAL_SCROLL_BARS (f))
!     {
! #if USE_CG_DRAWING
!       mac_prepare_for_quickdraw (f);
! #endif
!       for (bar = FRAME_SCROLL_BARS (f); VECTORP (bar);
!          bar = XSCROLL_BAR (bar)->next)
!       Draw1Control (SCROLL_BAR_CONTROL_HANDLE (XSCROLL_BAR (bar)));
!     }
  }
  
  




reply via email to

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