From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Anders Kaseorg Newsgroups: gmane.emacs.bugs Subject: bug#15469: 24.3; emacsclient -c fails to grab focus when asking =?UTF-8?Q?=E2=80=9CRevert?= buffer from =?UTF-8?Q?file=3F=E2=80=9D?= Date: Thu, 26 Sep 2013 20:01:15 -0400 Message-ID: <5244CACB.3030805@mit.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1380240144 9415 80.91.229.3 (27 Sep 2013 00:02:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 27 Sep 2013 00:02:24 +0000 (UTC) To: 15469@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 27 02:02:23 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VPLVm-0007pB-FB for geb-bug-gnu-emacs@m.gmane.org; Fri, 27 Sep 2013 02:02:22 +0200 Original-Received: from localhost ([::1]:60335 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VPLVl-0005Qj-RT for geb-bug-gnu-emacs@m.gmane.org; Thu, 26 Sep 2013 20:02:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60732) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VPLVb-0005QQ-2O for bug-gnu-emacs@gnu.org; Thu, 26 Sep 2013 20:02:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VPLVS-0000zv-KR for bug-gnu-emacs@gnu.org; Thu, 26 Sep 2013 20:02:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59061) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VPLVS-0000zr-Gm for bug-gnu-emacs@gnu.org; Thu, 26 Sep 2013 20:02:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VPLVR-0005W8-SC for bug-gnu-emacs@gnu.org; Thu, 26 Sep 2013 20:02:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Anders Kaseorg Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 27 Sep 2013 00:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 15469 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.138024010621184 (code B ref -1); Fri, 27 Sep 2013 00:02:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 27 Sep 2013 00:01:46 +0000 Original-Received: from localhost ([127.0.0.1]:39121 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VPLVC-0005Vc-4o for submit@debbugs.gnu.org; Thu, 26 Sep 2013 20:01:46 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58985) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VPLV9-0005VT-H9 for submit@debbugs.gnu.org; Thu, 26 Sep 2013 20:01:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VPLV0-0000fH-Q3 for submit@debbugs.gnu.org; Thu, 26 Sep 2013 20:01:43 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:44894) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VPLV0-0000fD-Mn for submit@debbugs.gnu.org; Thu, 26 Sep 2013 20:01:34 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60695) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VPLUs-0005PE-Tr for bug-gnu-emacs@gnu.org; Thu, 26 Sep 2013 20:01:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VPLUl-0000eF-Dc for bug-gnu-emacs@gnu.org; Thu, 26 Sep 2013 20:01:26 -0400 Original-Received: from dmz-mailsec-scanner-4.mit.edu ([18.9.25.15]:49387) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VPLUl-0000e6-94 for bug-gnu-emacs@gnu.org; Thu, 26 Sep 2013 20:01:19 -0400 X-AuditID: 1209190f-b7fe38e000000964-e7-5244cacdbb4d Original-Received: from mailhub-auth-3.mit.edu ( [18.9.21.43]) by dmz-mailsec-scanner-4.mit.edu (Symantec Messaging Gateway) with SMTP id 6A.0F.02404.DCAC4425; Thu, 26 Sep 2013 20:01:17 -0400 (EDT) Original-Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) by mailhub-auth-3.mit.edu (8.13.8/8.9.2) with ESMTP id r8R01HAE012776 for ; Thu, 26 Sep 2013 20:01:17 -0400 Original-Received: from [18.189.58.71] ([18.189.58.71]) (authenticated bits=0) (User authenticated as andersk@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.8/8.12.4) with ESMTP id r8R01Fpq009577 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Thu, 26 Sep 2013 20:01:16 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrDIsWRmVeSWpSXmKPExsUixCmqrXv2lEuQwbaTVhbfD1Q5MHq0TTML YIzisklJzcksSy3St0vgyvja2M9csF2xYtfr80wNjL+kuxg5OSQETCSOf29kgrDFJC7cW8/W xcjFISSwj1Fi1/JdzBDOWUaJw9e/QGWOM0k8unUfrIVXQE1iz/GH7CA2i4CqxM6181hAbDag +NwNk8HiogIhEgtXHWeHqBeUODnzCViNiICkxNc7rawgQ4UFpjBKfFqyFmwos4CZRNfWLkYI W16ieets5gmMfLOQ9M9CUjYLSdkCRuZVjLIpuVW6uYmZOcWpybrFyYl5ealFuiZ6uZkleqkp pZsYwUEmyb+D8dtBpUOMAhyMSjy8AhkuQUKsiWXFlbmHGCU5mJREeT8eAwrxJeWnVGYkFmfE F5XmpBYfYpTgYFYS4V0fC5TjTUmsrEotyodJSXOwKInz3uSwDxISSE8sSc1OTS1ILYLJynBw KEnwPj4J1ChYlJqeWpGWmVOCkGbi4AQZzgM0XB6khre4IDG3ODMdIn+K0Zjj3t7VXxk5WrrW fmUUYsnLz0uVEuc9ClIqAFKaUZoHNw2WKF4xigM9J8y7CaSKB5hk4Oa9AlrFBLTKocMJZFVJ IkJKqoGxVqD6wj3fvFNXg7RaJDf1SNnuUU6vdpnlxnPL9vliDrWv3UenCeauP9B/q8ZiWYVj zMWenZ03PZZsWHREi83/8jqG43sV7F9W/mXbXBp/dMPETVO/moT86/y7eN7cwJ5DheLnPk2W Xut3xDXaQW3+Sp3GiKfzMo6d/Sy5c0eGbl8Yp5vAjpo8JZbijERDLeai4kQAbko6 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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:78763 Archived-At: When using Emacs in server mode and =E2=80=98emacsclient -c=E2=80=99 as my preferred editor, new windows opened by emacsclient often fail to grab keyboard focus, correlated with Emacs asking minibuffer questions like =E2=80=9CRevert buffer from file=3F=E2=80=9D as the file is opened (e.g. on .git/COMMIT_EDITMSG which is frequently modified both inside and outside Emacs). I can reproduce this reliably as follows: 1. emacs -Q /tmp/foo 2. M-x server-start 3. Type some text into the buffer; do not save. 4. Click outside the Emacs window to unfocus it. 5. Click inside the Emacs window to focus it. 6. Click outside the Emacs window to unfocus it. 7. Modify /tmp/foo outside Emacs. 8. emacsclient -c /tmp/foo 9. An _unfocused_ Emacs window pops up to ask =E2=80=9CRevert buffer from file /tmp/foo=3F=E2=80=9D. (If I skip step 5, or if I replace step 5 with clicking on the _title bar_ of the first Emacs window to focus it, then the new window has no trouble grabbing focus; I can only reproduce when clicking _inside_ the Emacs window to focus it.) My window manager, if it matters, is gnome-shell 3.8.4-0ubuntu5. In GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.8.2) of 2013-07-26 on roseapple, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.11402901 System Description: Ubuntu Saucy Salamander (development branch) Configured using: `configure '--build' 'x86_64-linux-gnu' '--build' 'x86_64-linux-gnu' '--prefix=3D/usr' '--sharedstatedir=3D/var/lib' '--libexecdir=3D/usr/lib' '--localstatedir=3D/var/lib' '--infodir=3D/usr/share/info' '--mandir=3D/usr/share/man' '--with-pop=3Dyes' '--enable-locallisppath=3D/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.3/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.3/site-lisp:/usr/share/emacs/site-lisp' '--with-crt-dir=3D/usr/lib/x86_64-linux-gnu' '--with-x=3Dyes' '--with-x-toolkit=3Dgtk3' '--with-toolkit-scroll-bars' 'build_alias=3Dx86_64-linux-gnu' 'CFLAGS=3D-g -O2 -fstack-protector --param=3Dssp-buffer-size=3D4 -Wformat -Werror=3Dformat-security -Wall' 'LDFLAGS=3D-Wl,-Bsymbolic-functions -Wl,-z,relro' 'CPPFLAGS=3D-D_FORTIFY_SOURCE=3D2'' Important settings: value of $LC_MONETARY: en_US.UTF-8 value of $LC_NUMERIC: en_US.UTF-8 value of $LC_TIME: en_US.UTF-8 value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=3Dnone locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Fundamental Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-x s e r v e r - s t a r t f o o =3D20 =3D20 n o M-x r e p o=3D20 r t - e m a c s - b u g Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. (New file) When done with a buffer, type C-x # Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils server time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar 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 minibuffer loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)