From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Davis Herring" Newsgroups: gmane.emacs.devel Subject: RE: mouse-autoselect-window Date: Thu, 6 Sep 2007 11:42:27 -0700 (PDT) Message-ID: <36015.128.165.123.18.1189104147.squirrel@webmail.lanl.gov> References: Reply-To: herring@lanl.gov NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1189104183 31632 80.91.229.12 (6 Sep 2007 18:43:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 6 Sep 2007 18:43:03 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Drew Adams" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 06 20:43:03 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1ITMJi-0004GI-MO for ged-emacs-devel@m.gmane.org; Thu, 06 Sep 2007 20:43:02 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ITMJg-0008DF-Ts for ged-emacs-devel@m.gmane.org; Thu, 06 Sep 2007 14:43:00 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ITMJI-0007wm-PG for emacs-devel@gnu.org; Thu, 06 Sep 2007 14:42:36 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ITMJF-0007uo-SR for emacs-devel@gnu.org; Thu, 06 Sep 2007 14:42:36 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ITMJF-0007uY-N3 for emacs-devel@gnu.org; Thu, 06 Sep 2007 14:42:33 -0400 Original-Received: from mailwasher.lanl.gov ([192.65.95.54] helo=mailwasher-b.lanl.gov) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ITMJF-00023Q-0e for emacs-devel@gnu.org; Thu, 06 Sep 2007 14:42:33 -0400 Original-Received: from mailrelay1.lanl.gov (mailrelay1.lanl.gov [128.165.4.101]) by mailwasher-b.lanl.gov (8.13.8/8.13.6/(ccn-5)) with ESMTP id l86IgUdc021451; Thu, 6 Sep 2007 12:42:30 -0600 Original-Received: from webmail1.lanl.gov (webmail1.lanl.gov [128.165.4.106]) by mailrelay1.lanl.gov (8.13.8/8.13.8/(ccn-5)) with ESMTP id l86IgRfW005013; Thu, 6 Sep 2007 12:42:27 -0600 Original-Received: from webmail1.lanl.gov (localhost.localdomain [127.0.0.1]) by webmail1.lanl.gov (8.12.11.20060308/8.12.11) with ESMTP id l86IgRIc019880; Thu, 6 Sep 2007 12:42:27 -0600 Original-Received: (from apache@localhost) by webmail1.lanl.gov (8.12.11.20060308/8.12.11/Submit) id l86IgRpQ019876; Thu, 6 Sep 2007 11:42:27 -0700 X-Authentication-Warning: webmail1.lanl.gov: apache set sender to herring@lanl.gov using -f Original-Received: from 128.165.123.18 (SquirrelMail authenticated user 196434) by webmail.lanl.gov with HTTP; Thu, 6 Sep 2007 11:42:27 -0700 (PDT) In-Reply-To: User-Agent: SquirrelMail/1.4.8-6.el3.2lanl X-Priority: 3 (Normal) Importance: Normal X-CTN-5-MailScanner-Information: Please see http://network.lanl.gov/email/virus-scan.php X-CTN-5-MailScanner: Found to be clean X-CTN-5-MailScanner-From: herring@lanl.gov X-Detected-Kernel: Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:78010 Archived-At: > 1. I'm not 100% sure I understand you. I guess you mean that if, for > example, some code does `select-frame-set-input-focus', then the mouse > pointer will be moved to the newly selected frame. Is that right? > > That's certainly true. But if that is the only intended effect of > `focus-follows-mouse', then I'd say that this option should be named > `mouse-follows-focus', not the reverse. IOW, what you describe (and what I > see) is that _if_ the focus is changed to another frame _then_ the mouse > is > warped to that frame. The variable is called `focus-follows-mouse' because it's telling Emacs whether the window manager has that policy or not. What Emacs -does- with that information is supposed to be automatic, perhaps invisible, and in general The Right Thing. Somewhat like `enable-flow-control' which does not cause Emacs to -use- ^S and ^Q (the characters) but rather provide alternatives for C-s and C-q (the keys). Calling it `follow-focus-with-mouse' as a command to Emacs (like `use-file-dialog') would prevent us from making other useful decisions for the user based on the window manager policy. > 2. Also, people often say, rightly or wrongly, that `focus-follows-mouse' > is > useless, inappropriate, ineffective etc. for use with window managers that > impose a click-frame-to-focus policy. If the only intended effect of > `focus-follows-mouse' is what you say it is, then these (common) > statements > are off the mark, and whatever window manager policy one has would appear > to > be irrelevant. `focus-follows-mouse' is input to Emacs about the window-manager. It is inappropriate when the policy is click-to-focus because you are telling Emacs something that is -false-. Conversely, the policy is certainly relevant in that if you have point-to-focus but Emacs doesn't know that, it may leave the mouse somewhere that causes the wrong thing to happen when it tries to raise frames, switch frames, etc. Davis -- This product is sold by volume, not by mass. If it appears too dense or too sparse, it is because mass-energy conversion has occurred during shipping.