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#8421: 23.3; Strange handling of mouse events in Nextstep/Cocoa port of Emacs23 Date: Sat, 22 Oct 2011 10:33:50 +0200 Message-ID: <36C9591A-74DE-4BBA-9C4F-3D40D8B3EF54@swipnet.se> References: <180D0682-9D99-45F5-9385-37B53C0EF6F1@univie.ac.at> <4E47919E.1060103@swipnet.se> <149F0295-B1A7-467A-8C0A-FDCB85D6B00B@univie.ac.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1319272494 19185 80.91.229.12 (22 Oct 2011 08:34:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 22 Oct 2011 08:34:54 +0000 (UTC) Cc: 8421@debbugs.gnu.org To: Konrad Podczeck Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 22 10:34:50 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RHX2V-0007QH-Ug for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Oct 2011 10:34:48 +0200 Original-Received: from localhost ([::1]:40441 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RHX2V-00034D-FY for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Oct 2011 04:34:47 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:37120) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RHX2S-000348-MR for bug-gnu-emacs@gnu.org; Sat, 22 Oct 2011 04:34:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RHX2R-0003ZR-Cp for bug-gnu-emacs@gnu.org; Sat, 22 Oct 2011 04:34:44 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36305) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RHX2R-0003ZL-8u for bug-gnu-emacs@gnu.org; Sat, 22 Oct 2011 04:34:43 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RHX3h-0007a7-Kc for bug-gnu-emacs@gnu.org; Sat, 22 Oct 2011 04:36:01 -0400 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, 22 Oct 2011 08:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8421 X-GNU-PR-Package: emacs,ns X-GNU-PR-Keywords: Original-Received: via spool by 8421-submit@debbugs.gnu.org id=B8421.131927252029095 (code B ref 8421); Sat, 22 Oct 2011 08:36:01 +0000 Original-Received: (at 8421) by debbugs.gnu.org; 22 Oct 2011 08:35:20 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RHX31-0007ZE-Rj for submit@debbugs.gnu.org; Sat, 22 Oct 2011 04:35:20 -0400 Original-Received: from smtprelay-b11.telenor.se ([62.127.194.20]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RHX2z-0007Z0-55 for 8421@debbugs.gnu.org; Sat, 22 Oct 2011 04:35:18 -0400 Original-Received: from iph5.telenor.se (iph5.telenor.se [195.54.127.136]) by smtprelay-b11.telenor.se (Postfix) with ESMTP id 4692FC7D9 for <8421@debbugs.gnu.org>; Sat, 22 Oct 2011 10:33:52 +0200 (CEST) X-SENDER-IP: [85.225.45.201] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Aq5cAKp+ok5V4S3JPGdsb2JhbABDDokun2QZAQEBATcygW4BAQQBJy8jBQsLRi0MChQGiBMCslWHX2EEmTWLeDk X-IronPort-AV: E=Sophos;i="4.69,390,1315173600"; d="scan'208";a="57479475" Original-Received: from c-c92de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.201]) by iph5.telenor.se with ESMTP; 22 Oct 2011 10:33:51 +0200 Original-Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id DD4C27FA058; Sat, 22 Oct 2011 10:33:50 +0200 (CEST) In-Reply-To: <149F0295-B1A7-467A-8C0A-FDCB85D6B00B@univie.ac.at> X-Mailer: Apple Mail (2.1251.1) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 22 Oct 2011 04:36:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:53013 Archived-At: Hello. 18 okt 2011 kl. 22:23 skrev Konrad Podczeck: > Here the steps in more detail. >=20 > (1) Open Emacs from the finder. >=20 > (2) Via Apple-O, open some file, say A, and have the cursor in row 1 = and column 1. >=20 > (3) Via Apple-O, open another file, say B, and have the cursor in row = 1 and column 1. >=20 > (4) Position the frame of B so that it has the same vertical = coordinates on the screen as B, and horizontally overlaps the right half = of the frame of A. The frame with B thus remains the active one, with = the cursor position as given on (3). >=20 > (5) With mouse1, click on the frame of A at the cursor position there, = so that the frame with A becomes active, then click somewhere on the = visible part of the frame with B, but at vertical coordinate below row = 1, so that, in particular, the frame with B becomes active again, and = finally click somewhere in the frame with B, but at a vertical = coordinate below that of the previous click and horizontal coordinate in = the middle between column 1 and the horizontal coordinate of the = previous click. >=20 > This gives me an unintended selection in the frame of B. Using this steps, I can now reproduce it, even in the trunk. >=20 > I the file keyboard.c of the source code of Emacs23, lines 1495 to = 1499 are: >=20 > FOR_EACH_FRAME (tail, frame) > { > if (XFRAME (frame)->mouse_moved) > return XFRAME (frame);=20 > } >=20 > I have inserted a new line of code before the closing brace so as to = have: >=20 > FOR_EACH_FRAME (tail, frame) > { > if (XFRAME (frame)->mouse_moved) > return XFRAME (frame);=20 > return 0; > } >=20 >=20 > Could this make any sense? I found it just by trial and error, and = have no theoretical explanation. In any case, I worked with a Emacs23 = build with this hack for several mounts now and didn't encounter any = problem, As keyboard.c contains generic code and the problem does not show up on = X11 for example, I do not think this is the right fix. The problem must = be in the NS-specific code. Jan D.