From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Gregor Zattler Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#1980: 23.0.60; emacs switches focus to graphical frame when server-edit exits terminal frame Date: Wed, 21 Jan 2009 22:09:23 +0100 Message-ID: <20090121210923.GA27728@pit.ID-43118.user.dfncis.de> Reply-To: Gregor Zattler , 1980@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1232573094 8799 80.91.229.12 (21 Jan 2009 21:24:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 21 Jan 2009 21:24:54 +0000 (UTC) Cc: rfrancoise@debian.org To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jan 21 22:26:06 2009 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.50) id 1LPkaK-0003WL-Lx for geb-bug-gnu-emacs@m.gmane.org; Wed, 21 Jan 2009 22:26:05 +0100 Original-Received: from localhost ([127.0.0.1]:40904 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LPkZ3-0000AM-Ct for geb-bug-gnu-emacs@m.gmane.org; Wed, 21 Jan 2009 16:24:45 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LPkYD-0007sW-JE for bug-gnu-emacs@gnu.org; Wed, 21 Jan 2009 16:23:53 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LPkYD-0007rP-2T for bug-gnu-emacs@gnu.org; Wed, 21 Jan 2009 16:23:53 -0500 Original-Received: from [199.232.76.173] (port=38273 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LPkYC-0007rD-D0 for bug-gnu-emacs@gnu.org; Wed, 21 Jan 2009 16:23:52 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:37693) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LPkYB-00064L-NX for bug-gnu-emacs@gnu.org; Wed, 21 Jan 2009 16:23:52 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0LLNUrj006001; Wed, 21 Jan 2009 13:23:38 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n0LLK3OG004933; Wed, 21 Jan 2009 13:20:03 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Gregor Zattler Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 21 Jan 2009 21:20:03 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 1980 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12325722183546 (code B ref -1); Wed, 21 Jan 2009 21:20:03 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 21 Jan 2009 21:10:18 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0LLADJS003168 for ; Wed, 21 Jan 2009 13:10:15 -0800 Original-Received: from mx10.gnu.org ([199.232.76.166]:43865) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LPkJW-00046m-Gy for emacs-pretest-bug@gnu.org; Wed, 21 Jan 2009 16:08:42 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LPkKw-0004fW-73 for emacs-pretest-bug@gnu.org; Wed, 21 Jan 2009 16:10:12 -0500 Original-Received: from mail.gmx.net ([213.165.64.20]:37670) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1LPkKv-0004f9-D7 for emacs-pretest-bug@gnu.org; Wed, 21 Jan 2009 16:10:10 -0500 Original-Received: (qmail invoked by alias); 21 Jan 2009 21:10:02 -0000 Original-Received: from p54BFA203.dip0.t-ipconnect.de (EHLO pit.id-43118.user.dfncis.de) [84.191.162.3] by mail.gmx.net (mp038) with SMTP; 21 Jan 2009 22:10:02 +0100 X-Authenticated: #19296480 X-Provags-ID: V01U2FsdGVkX18xZSogkTgxTYctC9/c2eZtW/E8RoYH2jnbkuSLUO GgJpnCWnr1eM+E Original-Received: from grfz by pit.id-43118.user.dfncis.de with local (Exim 4.69) (envelope-from ) id 1LPkKV-0007Jt-Mq; Wed, 21 Jan 2009 22:09:43 +0100 Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) X-Y-GMX-Trusted: 0 X-FuHaFi: 0.5 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Wed, 21 Jan 2009 16:23:53 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list 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:24363 gmane.emacs.pretest.bugs:23728 Archived-At: Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your bug report will be posted to the emacs-pretest-bug@gnu.org mailing list. Please describe exactly what actions triggered the bug and the precise symptoms of the bug: When using emacs 23 in daemon mode some graphical emacs frame gets fokus if an editing session on a terminal window which was initiated via "emacsclient -t ..." is finished with C-x # (server-edit). In order to continue work in the terminal window I have to manually switch back to the terminal window. I checked this behaviour with two window managers: icwwm-lite and xfce4 on a up to date debian sid system. I consider this behaviour a bug since it is recommended emacs usage to use one instance of emacs to edit several files in several buffers and frames. When exiting emacsclient should return control to the calling application (the shell) and nothing should happen with the windows/frames on my graphical display. Emacs is not a window manager and should not manage windows since it cannot know which task I want to do next. This happens dozens of times every day, since I use to edit my email in a terminal window while there is a graphical emacs frame in the background of my desktop which I use for editing a org file: For emails I use mutt in a gnu screen session running in a rxvt-unicode terminal window. For editing emails I use emacsclient with the "-t" command line option in order to edit the email in a Text-only frame in the terminal window. Most of the time on my desktop there is also a graphical emacs frame which I use with org-mode. When I edit a email the terminal window is on top of the emacs graphical frame and has the fokus. When I finish editing the email emacsclient gives back control to mutt which happens to show the compose menu. In order to send the email I have to hit the "y" key. But before I can do so, the graphical emacs frame with the org file swaps in front of the rxvt-unicode terminal window and gets fokus. In order to resume sending the email and reading the next one I have to manually switch to the terminal window. Thank you for emacs, the --daemon command line option which is great and for your attention to this bug report. Sincerely, Gregor If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. If you would like to further debug the crash, please read the file /usr/share/emacs/23.0.60/etc/DEBUG for instructions. In GNU Emacs 23.0.60.1 (i486-pc-linux-gnu, GTK+ Version 2.12.11) of 2009-01-18 on elegiac, modified by Debian (emacs-snapshot package, version 1:20090118-1) Windowing system distributor `The X.Org Foundation', version 11.0.10402000 configured using `configure '--build' 'i486-linux-gnu' '--host' 'i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/23.0.60/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.0.60/site-lisp:/usr/share/emacs/site-lisp' '--with-x=yes' '--with-x-toolkit=gtk' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g -O2' 'LDFLAGS=-g -Wl,--as-needed' 'CPPFLAGS='' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: de_DE@euro value of $LC_CTYPE: de_DE@euro value of $LC_MESSAGES: C value of $LC_MONETARY: de_DE@euro value of $LC_NUMERIC: de_DE@euro value of $LC_TIME: de_DE@euro value of $LANG: de_DE@euro value of $XMODIFIERS: nil locale-coding-system: iso-latin-9-unix default-enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: global-hl-line-mode: t display-time-mode: t show-paren-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t size-indication-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: Recent messages: No diary entries for Wednesday, 21 January 2009 Preparing diary... No diary entries for Wednesday, 21 January 2009 Mark set Marking diary entries...done Marking diary entries...done Loading avoid...done Starting Emacs daemon. When done with this frame, type C-x 5 0 call-interactively: Text is read-only [3 times]