From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alain Knaff Newsgroups: gmane.emacs.bugs Subject: bug#7269: bug #7269: 24.0.50; opening a file via emacsclient -c moves the mouse cursor to, the top left of the frames buffer. Date: Sat, 13 Nov 2010 22:25:09 +0100 Message-ID: <4CDF0235.8030301@knaff.lu> References: <87y69q55un.fsf@yahoo.de> <4CDEF181.6010503@knaff.lu> <4CDEFD4E.1090603@knaff.lu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1289684677 4698 80.91.229.12 (13 Nov 2010 21:44:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 13 Nov 2010 21:44:37 +0000 (UTC) Cc: 7269@debbugs.gnu.org To: Lennart Borgman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 13 22:44:33 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PHNtf-0003b2-SW for geb-bug-gnu-emacs@m.gmane.org; Sat, 13 Nov 2010 22:44:32 +0100 Original-Received: from localhost ([127.0.0.1]:59087 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PHNtf-0007zA-48 for geb-bug-gnu-emacs@m.gmane.org; Sat, 13 Nov 2010 16:44:31 -0500 Original-Received: from [140.186.70.92] (port=39261 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PHNtI-0007j9-Cd for bug-gnu-emacs@gnu.org; Sat, 13 Nov 2010 16:44:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PHNtE-0003WA-DB for bug-gnu-emacs@gnu.org; Sat, 13 Nov 2010 16:44:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52031) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PHNtE-0003W5-BR for bug-gnu-emacs@gnu.org; Sat, 13 Nov 2010 16:44:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PHNWw-0005tn-5R; Sat, 13 Nov 2010 16:21:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alain Knaff Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 13 Nov 2010 21:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7269 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7269-submit@debbugs.gnu.org id=B7269.128968322122657 (code B ref 7269); Sat, 13 Nov 2010 21:21:02 +0000 Original-Received: (at 7269) by debbugs.gnu.org; 13 Nov 2010 21:20:21 +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 1PHNWH-0005tO-BS for submit@debbugs.gnu.org; Sat, 13 Nov 2010 16:20:21 -0500 Original-Received: from crmm.lgl.lu ([158.64.72.228] helo=lll.lu) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PHNWF-0005tH-J5 for 7269@debbugs.gnu.org; Sat, 13 Nov 2010 16:20:20 -0500 Original-Received: from [188.115.12.243] (ip-188-115-12-243.dyn.luxdsl.pt.lu [188.115.12.243] (may be forged)) by lll.lu (8.14.3/8.14.3/Debian-6) with ESMTP id oADLP9AZ025666 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 13 Nov 2010 22:25:10 +0100 User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.15) Gecko/20101027 Lightning/1.0b1 Thunderbird/3.0.10 In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 13 Nov 2010 16:21:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:41575 Archived-At: On 11/13/2010 10:11 PM, Lennart Borgman wrote: > You answered privately, was that your intention? No, not really, I accidentally did a "reply" instead of a "reply-all". Thanks for bringing this to my attention, I re-added the bug report in Cc: now. Hopefully this will work... > > What application do you mean do not grab focus when you ask them to > open a file? I actually can't remember any. (Except for GIMP which > seems to have a bug there on w32.) Why would an application behave differently if I want them to open a file, than if I just want to create a new document? Well, in any case, I've never seen any application do this even when opening a file. I tried it with openoffice and inkscape right now, and neither of them did this. Neither did firefox (when trying to add the URL on the commandline), nor konqueror. (thunderbird/firefox steal focus when popping up certain alerts, but not on open) Can you name me just one application which steals focus when you launch it with a file name parameter? N.B. during my test sometimes the app just happened to pop up its window under my mouse, so it got focus the "natural" way. However, this choice of location was by no way deliberate, and didn't happen when retrying it with a different window disposition. Alain > > > On Sat, Nov 13, 2010 at 10:04 PM, Alain Knaff wrote: >> On 11/13/2010 09:58 PM, Lennart Borgman wrote: >>> On Sat, Nov 13, 2010 at 9:13 PM, Alain Knaff wrote: >>>>> Nowadays focus follows mouse doesn't mean that the focus strictly >>>>> follows the mouse position, it can still be set independent of it. >>>> >>>> Even that (ignoring mouse position, and just grabbing focus) would be a >>>> highly antisocial move. Why can't emacs just leave the mouse and the >>>> focus alone, like most other apps do, and patiently wait until the user >>>> gives it focus? >>> >>> Of course Emacs should grab focus if the user uses emacsclient to open >>> a file. Why should not Emacs grab the focus then? AFAICS this is what >>> the user expects. >> >> Did you ever wonder why all the other applications (except thunderbird >> and firefox in some cases) didn't behave in this way? >> >> I'll give you the answer: because most users do NOT expect such rude >> behavior. We do not want application to steal focus from us, we want >> them to patiently wait for their turn. Almost all the other apps behave, >> why can't emacs? >> >> Alain >>