From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Newsgroups: gmane.emacs.bugs Subject: bug#12834: 24.3.50; OS X selecting a font can lock Emacs Date: Sat, 17 Nov 2012 16:29:51 +0100 Message-ID: References: <2554F49D-A931-422C-B95F-019466CF2878@swipnet.se> <5AFE0BBF-5319-4D84-89D1-E0498AA64B8D@swipnet.se> <1F0B0E97-56CE-4078-BD56-6B6D690245B6@swipnet.se> <1A417DFE-DAF0-4A95-BF8C-CA915454D582@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1353166218 21476 80.91.229.3 (17 Nov 2012 15:30:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 17 Nov 2012 15:30:18 +0000 (UTC) Cc: "12834@debbugs.gnu.org" <12834@debbugs.gnu.org> To: Ivan Andrus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 17 16:30:28 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TZkLj-0002gF-Tr for geb-bug-gnu-emacs@m.gmane.org; Sat, 17 Nov 2012 16:30:28 +0100 Original-Received: from localhost ([::1]:57898 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TZkLY-00054o-S0 for geb-bug-gnu-emacs@m.gmane.org; Sat, 17 Nov 2012 10:30:16 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:51151) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TZkLU-00053j-JV for bug-gnu-emacs@gnu.org; Sat, 17 Nov 2012 10:30:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TZkLR-0004rO-HT for bug-gnu-emacs@gnu.org; Sat, 17 Nov 2012 10:30:12 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40751) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TZkLR-0004qY-Dg for bug-gnu-emacs@gnu.org; Sat, 17 Nov 2012 10:30:09 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TZkMH-0003yx-L0 for bug-gnu-emacs@gnu.org; Sat, 17 Nov 2012 10:31:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 17 Nov 2012 15:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12834 X-GNU-PR-Package: emacs,ns X-GNU-PR-Keywords: Original-Received: via spool by 12834-submit@debbugs.gnu.org id=B12834.135316624615283 (code B ref 12834); Sat, 17 Nov 2012 15:31:01 +0000 Original-Received: (at 12834) by debbugs.gnu.org; 17 Nov 2012 15:30:46 +0000 Original-Received: from localhost ([127.0.0.1]:51002 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TZkM2-0003yS-2v for submit@debbugs.gnu.org; Sat, 17 Nov 2012 10:30:46 -0500 Original-Received: from mailout.melmac.se ([62.20.26.67]:59940) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TZkLy-0003yI-Mf for 12834@debbugs.gnu.org; Sat, 17 Nov 2012 10:30:44 -0500 Original-Received: from mail01.melmac.se (mail01.melmac.se [62.20.26.80]) by mailout.melmac.se (Postfix) with ESMTP id 46ED1912C for <12834@debbugs.gnu.org>; Sat, 17 Nov 2012 16:29:47 +0100 (CET) Original-Received: (qmail 23492 invoked by uid 89); 17 Nov 2012 15:29:46 -0000 Original-Received: from h-46-59-42-18.na.cust.bahnhof.se (HELO coolsville.localdomain) (boel.djarv@bdtv.se@46.59.42.18) by mail01.melmac.se with ESMTPA; 17 Nov 2012 15:29:46 -0000 Original-Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id 369EA7FA05E; Sat, 17 Nov 2012 16:29:46 +0100 (CET) In-Reply-To: <1A417DFE-DAF0-4A95-BF8C-CA915454D582@gmail.com> X-Mailer: Apple Mail (2.1499) X-Spam-Score: 1.5 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-Spam-Score: 1.5 (+) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:67056 Archived-At: Hello. I can reproduce it sometimes, but not most of the times. Anyway, I made = another checkin in the emacs-24 branch. Please try it. Jan D. 14 nov 2012 kl. 10:39 skrev Ivan Andrus : > On Nov 14, 2012, at 7:08 AM, Jan Dj=E4rv wrote: >=20 >> Hello. >>=20 >> 13 nov 2012 kl. 19:40 skrev Ivan Andrus : >> On Nov 13, 2012, at 4:19 PM, Jan Dj=E4rv wrote: >>>> Which version did you build? Are you sure you built the emacs-24 = branch, not trunk? >>>=20 >>> To be honest I'm not entirely sure how to figure that out. Every = time I think I understand bzr it doesn't do what I think. Anyway, = updating on the branch I get >>>=20 >>> $ bzr pull >>> Using saved parent location: = bzr://bzr.savannah.gnu.org/emacs/emacs-24/ = = =20 >>> No revisions or tags to pull. = = =20 >>>=20 >>> In src/nsterm.m I see >>>=20 >>> 303 static void >>> 304 hold_event (struct input_event *event) >>> 305 { >>> 306 if (hold_event_q.nr =3D=3D hold_event_q.cap) >>> 307 { >>> 308 if (hold_event_q.cap =3D=3D 0) hold_event_q.cap =3D 10; >>> 309 else hold_event_q.cap *=3D 2; >>> 310 hold_event_q.q =3D (struct input_event *) >>> 311 xrealloc (hold_event_q.q, hold_event_q.cap * sizeof = (*hold_event_q.q)); >>> 312 } >>> 313 =20 >>> 314 hold_event_q.q[hold_event_q.nr++] =3D *event; >>> 315 /* Make sure ns_read_socket is called, i.e. we have input. = */ >>> 316 kill (0, SIGIO); >>> 317 } >>>=20 >>> which I think is the required change. I still see the problem. = When I run under gdb I am unable to interrupt the process with Ctrl-C = once it has stopped responding. I'm afraid I'm not sure how to help = debug it otherwise. Sending SIGIO manually doesn't cause it to become = responsive. >>=20 >> That is the fix. Sending SIGIO manually is pointless. I can not = reproduce the error anymore, so make sure you did make install, and give = the exact steps you did to encounter the bug, starting from -Q. >=20 > I ran make install to be sure. >=20 > ./nextstep/Emacs.app/Contents/MacOS/Emacs -Q >=20 > Interestingly this opens ~/.emacs.d/abbref_defs which had an error on = my machine. Is this expected with -Q? Anyway, it's probably not = relevant to the discussion at hand since I see the same behaviour if I = move .emacs.d entirely. >=20 > Then I run `menu-set-font', either from the menu or with C-x C-e. I = can change the font and the size freely. Then I click in the "Size" = text box. A few times this hasn't caused problems, but usually it = causes Emacs to stop responding. The font panel still responds, but = nothing changes in terms of the font displayed and it doesn't register = typing etc. FWIW, I added a printf to hold_event and it gets called 3 = times when I click on anything other than the text box, but only twice = when I click on the text box.=20 >=20 > Thanks for looking into this. I'm running 10.8.2 with home brew = installed with the latest XCode installed. I recently upgraded from = 10.6.8. I'm not sure what else might be at play. >=20 > -Ivan