unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Gregor Zattler <telegraph@gmx.net>
To: emacs-pretest-bug@gnu.org
Cc: rfrancoise@debian.org
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	[thread overview]
Message-ID: <20090121210923.GA27728@pit.ID-43118.user.dfncis.de> (raw)


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:
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<menu-bar> <help-menu> <send-emacs-bug-report>

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]






             reply	other threads:[~2009-01-21 21:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-21 21:09 Gregor Zattler [this message]
  -- strict thread matches above, loose matches on Subject: below --
2009-03-24 17:53 bug#1980: 23.0.60; emacs switches focus to graphical frame when server-edit exits terminal frame Chong Yidong
2009-03-25 20:51 ` Gregor Zattler
2010-12-04 15:56   ` Gregor Zattler
2010-12-20 11:17     ` Chong Yidong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090121210923.GA27728@pit.ID-43118.user.dfncis.de \
    --to=telegraph@gmx.net \
    --cc=1980@emacsbugs.donarmstrong.com \
    --cc=emacs-pretest-bug@gnu.org \
    --cc=rfrancoise@debian.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).