From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Reitter Newsgroups: gmane.emacs.bugs Subject: Re: Crash when using scroll bar in Carbon port (keyboard.c:3010) Date: Sun, 13 Jan 2008 07:41:03 -0800 (PST) Organization: http://groups.google.com Message-ID: <78799615-0cdf-48c9-85b7-1716fcc93470@e23g2000prf.googlegroups.com> References: <0BC2963F-DB5D-44CC-BC66-8C9268333BB5@gmail.com> <7A14A1D8-1AA6-47C9-9843-06079ACED4FC@gmail.com> <868x35u500.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1200242419 16932 80.91.229.12 (13 Jan 2008 16:40:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 13 Jan 2008 16:40:19 +0000 (UTC) Cc: HStevens@muohio.edu To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jan 13 17:40:41 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 1JE5t0-00054t-CB for geb-bug-gnu-emacs@m.gmane.org; Sun, 13 Jan 2008 17:40:38 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JE5sc-0004ir-8r for geb-bug-gnu-emacs@m.gmane.org; Sun, 13 Jan 2008 11:40:14 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!e23g2000prf.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 84 Original-NNTP-Posting-Host: 86.155.106.210 Original-X-Trace: posting.google.com 1200238864 9028 127.0.0.1 (13 Jan 2008 15:41:04 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sun, 13 Jan 2008 15:41:04 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: e23g2000prf.googlegroups.com; posting-host=86.155.106.210; posting-account=dNOYNQ8AAACwfFSGn4ugtJc5znxYfzds User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en; rv:1.8.1.11) Gecko/20071128 Camino/1.5.4,gzip(gfe),gzip(gfe) Original-Xref: shelby.stanford.edu gnu.emacs.bug:44256 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:17335 Archived-At: On Jan 7, 9:30 am, YAMAMOTO Mitsuharu wrote: > Does this mean the problem also occurs with the (unmodified) Carbon > port of Emacs 22? Probably not, given that the bug seems to depend on frame parameters being modified in after-change-major-mode-hook, as is done by `aquamacs-styles-mode'. > (Note thatAquamacsEmacs and Carbon Emacs Package > have some modifications in common, so even if the problem happens on > both of them, that does not necessarily imply that it is a bug in > Carbon Emacs. Likewise, if the bug has only been reproduced in one of them, it doesn't mean that it is a bug in these distributions. It's a crash, and pure ELisp code should never crash Emacs. Of course it could be a bug in one of the patches to the C core. This one is a bit difficult to home in on. Chances are there is a problem with the code that sets the frame's parameters (but that shouldn't lead to a crash). > If so, could you describe the concrete step-by-step procedure to > reproduce the problem? For example, `scrolls around a buffer with the > scroll bar' in the original report is not sufficiently concrete > because there are multiple ways to scroll the window using the scroll > bar (i.e., dragging the thumb, clicking above or below the thumb, > clicking arrows). 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. The OP has since added that scrolling with the mouse wheel alone, with the scroll bar hidden, avoids the bug. I found that scrolling with the keys or the mouse wheel generally avoids reproduce the bug, and clicking above and below the thumb doesn't bring it up either. It's only if you drag it (keep dragging up and down). - David === Hank Stevens wrote: Hi folks, I reported previously crashes when I used the scrollbar to move quickly around .Rnw documents that include both LaTeX and R code. Of course the problem didn't arise if I never used the scrollbar, but that prevented me from moving quickly through long files. My work around has been to hide the scrollbar (to prevent old habits) and to rely on the mouse "wheel" in the new Mac mouse. It works very nicely. I suppose there must also be a quick keystroke that would allow me to page through a long file, but I don't know it but would like to know what it is. Thanks for all your efforts, Hank --- test.Rnw: \documentclass{article} \SweaveOpts{eval=true, echo=true} % \begin{document} type stuff here. Switch to R <<>>= 2+2 @ Switch back to latex. \end{document}