GNU bug report logs - #15469
24.3; emacsclient -c fails to grab focus when asking “Revert buffer from file?”

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Anders Kaseorg <andersk@HIDDEN>; dated Fri, 27 Sep 2013 00:02:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 27 Sep 2013 00:01:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 26 20:01:46 2013
Received: from localhost ([127.0.0.1]:39121 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1VPLVC-0005Vc-4o
	for submit <at> debbugs.gnu.org; Thu, 26 Sep 2013 20:01:46 -0400
Received: from eggs.gnu.org ([208.118.235.92]:58985)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <andersk@HIDDEN>) id 1VPLV9-0005VT-H9
 for submit <at> debbugs.gnu.org; Thu, 26 Sep 2013 20:01:44 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <andersk@HIDDEN>) id 1VPLV0-0000fH-Q3
 for submit <at> debbugs.gnu.org; Thu, 26 Sep 2013 20:01:43 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,MIME_QP_LONG_LINE
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:44894)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <andersk@HIDDEN>) id 1VPLV0-0000fD-Mn
 for submit <at> debbugs.gnu.org; Thu, 26 Sep 2013 20:01:34 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:60695)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <andersk@HIDDEN>) id 1VPLUs-0005PE-Tr
 for bug-gnu-emacs@HIDDEN; Thu, 26 Sep 2013 20:01:34 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <andersk@HIDDEN>) id 1VPLUl-0000eF-Dc
 for bug-gnu-emacs@HIDDEN; Thu, 26 Sep 2013 20:01:26 -0400
Received: from dmz-mailsec-scanner-4.mit.edu ([18.9.25.15]:49387)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <andersk@HIDDEN>) id 1VPLUl-0000e6-94
 for bug-gnu-emacs@HIDDEN; Thu, 26 Sep 2013 20:01:19 -0400
X-AuditID: 1209190f-b7fe38e000000964-e7-5244cacdbb4d
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)
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 <bug-gnu-emacs@HIDDEN>; Thu, 26 Sep 2013 20:01:17 -0400
Received: from [18.189.58.71] ([18.189.58.71]) (authenticated bits=0)
 (User authenticated as andersk@HIDDEN)
 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 <bug-gnu-emacs@HIDDEN>; Thu, 26 Sep 2013 20:01:16 -0400
Message-ID: <5244CACB.3030805@HIDDEN>
Date: Thu, 26 Sep 2013 20:01:15 -0400
From: Anders Kaseorg <andersk@HIDDEN>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
 rv:24.0) Gecko/20100101 Thunderbird/24.0
MIME-Version: 1.0
To: bug-gnu-emacs@HIDDEN
Subject: =?UTF-8?B?MjQuMzsgZW1hY3NjbGllbnQgLWMgZmFpbHMgdG8gZ3JhYiBmb2N1cyA=?=
 =?UTF-8?B?d2hlbiBhc2tpbmcg4oCcUmV2ZXJ0IGJ1ZmZlciBmcm9tIGZpbGU/4oCd?=
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Length: 4368
Content-Transfer-Encoding: quoted-printable
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/Sy5c0eGbl8Yp5vAjpo8JZbijERDLeai4kQAbko6ze8CAAA=
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-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.0 (----)

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 <return> f o o <return>=3D20
<down-mouse-1> <mouse-1> <help-echo> <down-mouse-1>=3D20
<mouse-movement> <mouse-1> n o <return> M-x r e p o=3D20
r t - e m a c s - b u g <return>

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)




Acknowledgement sent to Anders Kaseorg <andersk@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#15469; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.