From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: suggested new command `picture-mouse-set-point' Date: 25 Oct 2002 11:16:12 +0200 Sender: emacs-devel-admin@gnu.org Message-ID: <5x4rbazxnn.fsf@kfs2.cua.dk> References: <5xn0p4znhw.fsf@kfs2.cua.dk> <5xr8ef4ipi.fsf@kfs2.cua.dk> <200210242337.g9ONbr217063@rum.cs.yale.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035533922 17223 80.91.224.249 (25 Oct 2002 08:18:42 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 25 Oct 2002 08:18:42 +0000 (UTC) Cc: jpw@shootybangbang.com (John Paul Wallington), emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 184zg0-0004Tf-00 for ; Fri, 25 Oct 2002 10:18:40 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 184zia-0005Hl-00 for ; Fri, 25 Oct 2002 10:21:20 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 184zff-0002Kx-00; Fri, 25 Oct 2002 04:18:19 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 184zeQ-0007ZV-00 for emacs-devel@gnu.org; Fri, 25 Oct 2002 04:17:02 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 184zdW-0007GV-00 for emacs-devel@gnu.org; Fri, 25 Oct 2002 04:17:01 -0400 Original-Received: from mail.filanet.dk ([195.215.206.179]) by monty-python.gnu.org with esmtp (Exim 4.10) id 184zdV-0007EU-00 for emacs-devel@gnu.org; Fri, 25 Oct 2002 04:16:05 -0400 Original-Received: from kfs2.cua.dk.cua.dk (kfs2.local.filanet.dk [192.168.1.182]) by mail.filanet.dk (Postfix) with SMTP id CA0AF7C017; Fri, 25 Oct 2002 08:16:03 +0000 (GMT) Original-To: "Stefan Monnier" In-Reply-To: <200210242337.g9ONbr217063@rum.cs.yale.edu> Original-Lines: 26 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:8771 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:8771 "Stefan Monnier" writes: > > > One problem with this approach is that quite often you just need to > > > click on some window to select another window or give focus to a frame > > > -- and in that case you most likely don't want to modify the buffer if > > > you accidentally click or a TAB or after EOL or EOB. > > > > > > Maybe the -rigidly functionality should only be activated if > > > the mouse is clicked in the selected window & frame. > > > > I agree that is a problem, and your solution sounds good (or at least > > the right sort of idea; I haven't tested it). > > I don't understand: this problem is not specific to this > mouse-set-point-rigidly. Normally it is solved in a generic way > by the window-manager by making sure that the click that changes > focus is not sent to the application. > Am I missing something ? If I have just one frame with two windows, clicking the mouse in "the other" window isn't a "focus change" event in the mind of the window manager. So emacs must handle that case sensibly. -- Kim F. Storm http://www.cua.dk