From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ivan Andrus Newsgroups: gmane.emacs.bugs Subject: bug#12834: 24.3.50; OS X selecting a font can lock Emacs Date: Wed, 14 Nov 2012 10:39:13 +0100 Message-ID: <1A417DFE-DAF0-4A95-BF8C-CA915454D582@gmail.com> References: <2554F49D-A931-422C-B95F-019466CF2878@swipnet.se> <5AFE0BBF-5319-4D84-89D1-E0498AA64B8D@swipnet.se> <1F0B0E97-56CE-4078-BD56-6B6D690245B6@swipnet.se> 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 1352885976 12681 80.91.229.3 (14 Nov 2012 09:39:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 14 Nov 2012 09:39:36 +0000 (UTC) Cc: "12834@debbugs.gnu.org" <12834@debbugs.gnu.org> To: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 14 10:39:46 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 1TYZRi-0005Jq-2D for geb-bug-gnu-emacs@m.gmane.org; Wed, 14 Nov 2012 10:39:46 +0100 Original-Received: from localhost ([::1]:39586 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYZRY-0000cl-ER for geb-bug-gnu-emacs@m.gmane.org; Wed, 14 Nov 2012 04:39:36 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:56438) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYZRT-0000cI-KI for bug-gnu-emacs@gnu.org; Wed, 14 Nov 2012 04:39:34 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TYZRQ-0005R7-IC for bug-gnu-emacs@gnu.org; Wed, 14 Nov 2012 04:39:31 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58675) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYZRQ-0005R1-ER for bug-gnu-emacs@gnu.org; Wed, 14 Nov 2012 04:39:28 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TYZRy-0003aB-Gb for bug-gnu-emacs@gnu.org; Wed, 14 Nov 2012 04:40:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ivan Andrus Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 14 Nov 2012 09:40:02 +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.135288599513755 (code B ref 12834); Wed, 14 Nov 2012 09:40:02 +0000 Original-Received: (at 12834) by debbugs.gnu.org; 14 Nov 2012 09:39:55 +0000 Original-Received: from localhost ([127.0.0.1]:40693 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TYZRr-0003Zn-4y for submit@debbugs.gnu.org; Wed, 14 Nov 2012 04:39:55 -0500 Original-Received: from mail-bk0-f44.google.com ([209.85.214.44]:36408) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TYZRo-0003Zf-9N for 12834@debbugs.gnu.org; Wed, 14 Nov 2012 04:39:53 -0500 Original-Received: by mail-bk0-f44.google.com with SMTP id w11so87180bku.3 for <12834@debbugs.gnu.org>; Wed, 14 Nov 2012 01:39:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=WiCbf4YM1+J0IYOIOQ5fM+fy0lxjua91pyF+h21YZw8=; b=vpds8MhPQI4pcUX0DIPg7RjKRyLQ0AnZYwlKa4RKVpRw/QiruUDlLxsAvJzM1Sor0s CL7OrRakpNIUxOa2AlqVVVrGBVSHUk8uPMu8SpZff6XQjMagCYPJqIqnmxcmdCV3OhYU A8gF3X2OJagiJEjzBQBC0ViBYle8raAe3I74uk/PA6GfZQfl5RU86Mz33P6BcxafIle6 Rr5TuWOXa99hjsKiWlFGJlR54eWkukHheuBwrQXkWB8O8HjGcKEEx5Wgae4NN1jY70wa ztSQgVZdjYiNLiAXf2W4+KLyxtP4wRcyUoMC44TbuD4jIt6mwSJHXt1+twMY0q/NAmT5 JbsA== Original-Received: by 10.204.6.75 with SMTP id 11mr8755837bky.10.1352885956550; Wed, 14 Nov 2012 01:39:16 -0800 (PST) Original-Received: from [10.0.2.25] (catv-80-99-48-145.catv.broadband.hu. [80.99.48.145]) by mx.google.com with ESMTPS id v14sm7344919bkv.10.2012.11.14.01.39.15 (version=SSLv3 cipher=OTHER); Wed, 14 Nov 2012 01:39:15 -0800 (PST) In-Reply-To: <1F0B0E97-56CE-4078-BD56-6B6D690245B6@swipnet.se> X-Mailer: Apple Mail (2.1499) X-Spam-Score: 0.1 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-Spam-Score: 0.1 (/) 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:66911 Archived-At: On Nov 14, 2012, at 7:08 AM, Jan Dj=E4rv wrote: > 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. I ran make install to be sure. ./nextstep/Emacs.app/Contents/MacOS/Emacs -Q 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. 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 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. -Ivan=