From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: YAMAMOTO Mitsuharu Newsgroups: gmane.emacs.bugs Subject: Re: Crash when using scroll bar in Carbon port (keyboard.c:3010) Date: Mon, 14 Jan 2008 12:23:34 +0900 Organization: Faculty of Science, Chiba University Message-ID: References: <0BC2963F-DB5D-44CC-BC66-8C9268333BB5@gmail.com> <7A14A1D8-1AA6-47C9-9843-06079ACED4FC@gmail.com> <868x35u500.fsf@lifelogs.com> <78799615-0cdf-48c9-85b7-1716fcc93470@e23g2000prf.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1200281033 30077 80.91.229.12 (14 Jan 2008 03:23:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 14 Jan 2008 03:23:53 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org, HStevens@muohio.edu To: mituharu@math.s.chiba-u.ac.jp Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 14 04:24:14 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JEFvo-0004fc-Sr for geb-bug-gnu-emacs@m.gmane.org; Mon, 14 Jan 2008 04:24:13 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JEFvQ-0000rn-HE for geb-bug-gnu-emacs@m.gmane.org; Sun, 13 Jan 2008 22:23:48 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JEFvK-0000rd-SI for bug-gnu-emacs@gnu.org; Sun, 13 Jan 2008 22:23:42 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JEFvJ-0000qc-11 for bug-gnu-emacs@gnu.org; Sun, 13 Jan 2008 22:23:42 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JEFvI-0000qU-Q9 for bug-gnu-emacs@gnu.org; Sun, 13 Jan 2008 22:23:40 -0500 Original-Received: from ntp.math.s.chiba-u.ac.jp ([133.82.132.2] helo=mathmail.math.s.chiba-u.ac.jp) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JEFvI-0005mE-Bw for bug-gnu-emacs@gnu.org; Sun, 13 Jan 2008 22:23:40 -0500 Original-Received: from church.math.s.chiba-u.ac.jp (church [133.82.132.36]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id D17082C4A; Mon, 14 Jan 2008 12:23:34 +0900 (JST) In-Reply-To: <78799615-0cdf-48c9-85b7-1716fcc93470@e23g2000prf.googlegroups.com> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.6 Emacs/23.0.50 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) X-detected-kernel: by monty-python.gnu.org: NetBSD 3.0 (DF) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:17337 Archived-At: >>>>> On Sun, 13 Jan 2008 07:41:03 -0800 (PST), David Reitter 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))); ! } }