From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Konrad Podczeck Newsgroups: gmane.emacs.bugs Subject: bug#8421: 23.3; Strange handling of mouse events in Nextstep/Cocoa port of Emacs23 Date: Tue, 18 Oct 2011 22:23:01 +0200 Message-ID: <149F0295-B1A7-467A-8C0A-FDCB85D6B00B@univie.ac.at> References: <180D0682-9D99-45F5-9385-37B53C0EF6F1@univie.ac.at> <4E47919E.1060103@swipnet.se> 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 1318969457 28138 80.91.229.12 (18 Oct 2011 20:24:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 18 Oct 2011 20:24:17 +0000 (UTC) Cc: 8421@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 Tue Oct 18 22:24:10 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 1RGGCo-0006a1-2o for geb-bug-gnu-emacs@m.gmane.org; Tue, 18 Oct 2011 22:24:10 +0200 Original-Received: from localhost ([::1]:39326 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGGCn-0001LE-DK for geb-bug-gnu-emacs@m.gmane.org; Tue, 18 Oct 2011 16:24:09 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:42744) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGGCk-0001L3-J6 for bug-gnu-emacs@gnu.org; Tue, 18 Oct 2011 16:24:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RGGCi-0002DI-8b for bug-gnu-emacs@gnu.org; Tue, 18 Oct 2011 16:24:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59324) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGGCi-0002D6-3Y for bug-gnu-emacs@gnu.org; Tue, 18 Oct 2011 16:24:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RGGDe-00080Z-6r for bug-gnu-emacs@gnu.org; Tue, 18 Oct 2011 16:25:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Konrad Podczeck Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 18 Oct 2011 20:25:02 +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.131896944630722 (code B ref 8421); Tue, 18 Oct 2011 20:25:02 +0000 Original-Received: (at 8421) by debbugs.gnu.org; 18 Oct 2011 20:24:06 +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 1RGGCk-0007zT-9L for submit@debbugs.gnu.org; Tue, 18 Oct 2011 16:24:06 -0400 Original-Received: from grace.univie.ac.at ([131.130.3.115]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGGCg-0007zI-Ue for 8421@debbugs.gnu.org; Tue, 18 Oct 2011 16:24:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=univie.ac.at; s=rev2; h=To:References:Message-Id:Content-Transfer-Encoding:Cc:Date:In-Reply-To:From:Content-Type:Mime-Version:Subject; bh=FTJsK1uhXcONmfOpdZUAM8FtBzc+ndg90FxaJIokB0A=; b=p/itOSshuLf6jTbk/lImAM+DFEmC77KfZPX6ACzpq0/4VhidYLeHRtiFE11JkCrYk9HL1mnVLiRXls6T8XJiMZ/b3ZI/J8DE/I2gPoqBS4K+hypxXt3xjeOp5QUsGkLGhsvNDfEPFhTta9PiGyQ0bu4mQDng+c2a6EY+KAIZS0o=; Original-Received: from jarvis.univie.ac.at ([131.130.3.112] helo=jarvis.univie.ac.at) by grace.univie.ac.at with esmtp (Exim 4.76) (envelope-from ) id 1RGGBi-0004Nf-Uu; Tue, 18 Oct 2011 22:23:02 +0200 Original-Received: from [84.113.246.143] (helo=[10.0.1.2]) by jarvis.univie.ac.at with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1RGGBi-0000e7-RV; Tue, 18 Oct 2011 22:23:02 +0200 In-Reply-To: <4E47919E.1060103@swipnet.se> X-Mailer: Apple Mail (2.1251.1) X-Univie-Virus-Scan: scanned by ClamAV on jarvis.univie.ac.at X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 18 Oct 2011 16:25:02 -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:52814 Archived-At: Hello Jan, first, thanks for your response, and excuse my answer being late. I still can reproduce the phenomena with the latest nightly build of = Emacs24, downloaded from http://emacsformacosx.com/builds on October 18. Here the steps in more detail. (1) Open Emacs from the finder. (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. (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). (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. This gives me an unintended selection in the frame of B. Starting Emacs from the command line with -Q, but otherwise proceeding = the same way, gives the same. With Emacs23, making a build by myself, I found something to make the = phenomena to disappear: I the file keyboard.c of the source code of Emacs23, lines 1495 to 1499 = are: FOR_EACH_FRAME (tail, frame) { if (XFRAME (frame)->mouse_moved) return XFRAME (frame);=20 } I have inserted a new line of code before the closing brace so as to = have: FOR_EACH_FRAME (tail, frame) { if (XFRAME (frame)->mouse_moved) return XFRAME (frame);=20 return 0; } 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, Thanks, Konrad Am 14.08.2011 um 11:13 schrieb Jan Dj=E4rv: > Hello. >=20 > I can not reproduce this in Emacs 23.3 or the trunk. Can you test the = trunk? Can you reproduce this when starting Emacs with -Q? >=20 > Jan D. >=20 >=20 > Konrad Podczeck skrev 2011-04-04 16:46: >> I observe the following. >>=20 >> Start Emacs and then open two files one after the other, which makes = them to appear in two separate frames, say A and B. Position the two = frames so that they overlap, say so that the respective active frame = covers half of the other frame. Let frame A be the active one and = position the cursor so that on its line there is text to the left as = well as to the right. Let me call this cursor position x. Now click into = frame B to make it active, and the click again into frame A first at a = place whose column is to the left of that of x, and then a second time = to a place whose column is to the the right of that of x. This yields an = unintended selection in frame A. >>=20 >> This behaviour is annoying if one works with several frames at the = same time. >>=20 >>=20 >>=20 >> In GNU Emacs 23.3.1 (x86_64-apple-darwin, NS apple-appkit-1038.35) >> of 2011-03-10 on black.porkrind.org >> Windowing system distributor `Apple', version 10.3.1038 >> configured using `configure '--host=3Dx86_64-apple-darwin' = '--build=3Di686-apple-darwin' '--with-ns' = 'build_alias=3Di686-apple-darwin' 'host_alias=3Dx86_64-apple-darwin' = 'CC=3Dgcc -mmacosx-version-min=3D10.5'' >>=20 >> Important settings: >> value of $LC_ALL: nil >> value of $LC_COLLATE: nil >> value of $LC_CTYPE: nil >> value of $LC_MESSAGES: nil >> value of $LC_MONETARY: nil >> value of $LC_NUMERIC: nil >> value of $LC_TIME: nil >> value of $LANG: nil >> value of $XMODIFIERS: nil >> locale-coding-system: nil >> default enable-multibyte-characters: t >>=20 >> Major mode: Fundamental >>=20 >> Minor modes in effect: >> tooltip-mode: t >> mouse-wheel-mode: t >> menu-bar-mode: t >> file-name-shadow-mode: t >> global-font-lock-mode: t >> blink-cursor-mode: t >> auto-encryption-mode: t >> auto-compression-mode: t >> line-number-mode: t >> transient-mark-mode: t >>=20 >> Recent input: >> > nd-emacs-bug-report> >>=20 >> Recent messages: >> For information about GNU Emacs and the GNU system, type C-h C-a. >>=20 >> Load-path shadows: >> None found. >>=20 >> Features: >> (shadow sort mail-extr message ecomplete rfc822 mml mml-sec >> password-cache mm-decode mm-bodies mm-encode mailcap mail-parse = rfc2231 >> rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util netrc >> time-date mm-util mail-prsvr gmm-utils wid-edit mailheader canlock = sha1 >> hex-util hashcash mail-utils emacsbug tooltip ediff-hook vc-hooks >> lisp-float-type mwheel ns-win easymenu tool-bar dnd fontset image = fringe >> lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar >> mldrag mouse jit-lock font-lock syntax facemenu font-core frame cham >> georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao >> korean japanese hebrew greek romanian slovak czech european ethiopic >> indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple >> abbrev loaddefs button minibuffer faces cus-face files = text-properties >> overlay md5 base64 format env code-pages mule custom widget >> hashtable-print-readable backquote make-network-process ns multi-tty >> emacs) >>=20 >>=20 >=20