unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Jan Djärv" <jan.h.d@swipnet.se>
To: Robin Green <greenrd@greenrd.org>
Cc: 7552-done@debbugs.gnu.org
Subject: bug#7552: 23.2; Emacs doesn't die when told to by X session manager
Date: Tue, 07 Dec 2010 07:38:42 +0100	[thread overview]
Message-ID: <4CFDD672.5000409@swipnet.se> (raw)
In-Reply-To: <87vd391yoz.wl%greenrd@greenrd.org>

A fix has been checked in.  However, if desktop.el is used, it may not do the 
right thing.  We have to fix that in the trunk.

	Jan D.


Robin Green skrev 2010-12-04 13.59:
> Until now, this would probably not matter, since normally when an X
> session is stopped, all clients will be killed anyway. However, KDE 4.6
> beta 1 allows the user to stop and start subsessions called "activities"
> without logging out. When the KDE session manager tells emacs to die,
> it should do so - but it doesn't, and as a consequence, the following
> happens:
>
> When you stop the activity in KDE, because the stopped activity isn't
> currently visible, emacs is not visible on the display - but it still
> remains running. Then if you restart the same activity, another copy of
> emacs opens up, and the frame of the original emacs process reappears -
> so you now have two emacs processes running, which is not what is
> supposed to happen.
>
> The X session management specification does anticipate subsessions
> being used - indeed, it gives an example of them - but as far as I know,
> they have not been widely used until now, which may explain why this bug
> has gone unnoticed for many years.
>
>
> In GNU Emacs 23.2.1 (i686-pc-linux-gnu, GTK+ Version 2.22.0)
>   of 2010-11-18 on cspcnh.swan.ac.uk
> Windowing system distributor `The X.Org Foundation', version 11.0.60900000
> configured using `configure  '--prefix=/usr' '--host=i686-pc-linux-gnu' '--build=i686-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--docdir=/usr/share/doc/emacs-23.2-r1' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--disable-dependency-tracking' '--disable-silent-rules' '--enable-fast-install' '--libdir=/usr/lib' '--infodir=/usr/share/info/emacs' '--without-kerberos' '--without-kerberos5' '--without-hesiod' '--without-m17n-flt' '--without-xim' '--with-x' '--without-sound' '--with-xft' '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars' '--without-libotf' '--with-rsvg' '--with-dbus' '--without-gconf' '--with-gif' '--without-gpm' '--with-jpeg' '--with-png' '--without-tiff' '--with-xpm' 'build_alias=i686-pc-linux-gnu' 'host_alias=i686-pc-lin
 ux-gnu' 'CC=i686-pc-linux-gnu-gcc' 'CFLAGS=-march=native -pipe -O2' 'CPP=cpp''
>
> Important settings:
>    value of $LC_ALL: nil
>    value of $LC_COLLATE: nil
>    value of $LC_CTYPE: nil
>    value of $LC_MESSAGES: nil
>    value of $LC_MONETARY: nil
>    value of $LC_NUMERIC: nil
>    value of $LC_TIME: nil
>    value of $LANG: nil
>    value of $XMODIFIERS: nil
>    locale-coding-system: nil
>    default enable-multibyte-characters: t
>
> Major mode: Fundamental
>
> Minor modes in effect:
>    shell-dirtrack-mode: t
>    diff-auto-refine-mode: t
>    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
>    blink-cursor-mode: t
>    auto-encryption-mode: t
>    auto-compression-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>
> <help-echo>  <help-echo>  <help-echo>  <help-echo>  <help-echo>
> <help-echo>  <help-echo>  <help-echo>  <help-echo>  M-x
> r e p o r t - e m a c s - b u g C-g<help-echo>  M-x
> <up>  r e p o r t - e m a c s - b u g<return>
>
> Recent messages:
> Loading /usr/share/emacs/site-lisp/haskell-mode/haskell-site-file...done
> For information about GNU Emacs and the GNU system, type C-h C-a.
> Quit
> goto-history-element: Beginning of history; no preceding item
>
> Load-path shadows:
> /usr/share/emacs/site-lisp/coq hides /usr/share/emacs/site-lisp/ProofGeneral/coq/coq
> /usr/share/emacs/site-lisp/coq-syntax hides /usr/share/emacs/site-lisp/ProofGeneral/coq/coq-syntax
> /usr/share/emacs/site-lisp/coq-db hides /usr/share/emacs/site-lisp/ProofGeneral/coq/coq-db
> /usr/share/emacs/site-lisp/semi/pgg-gpg hides /usr/share/emacs/23.2/lisp/pgg-gpg
> /usr/share/emacs/site-lisp/flim/hex-util hides /usr/share/emacs/23.2/lisp/hex-util
> /usr/share/emacs/site-lisp/semi/pgg-parse hides /usr/share/emacs/23.2/lisp/pgg-parse
> /usr/share/emacs/site-lisp/semi/pgg-pgp5 hides /usr/share/emacs/23.2/lisp/pgg-pgp5
> /usr/share/emacs/site-lisp/flim/md4 hides /usr/share/emacs/23.2/lisp/md4
> /usr/share/emacs/site-lisp/flim/sha1 hides /usr/share/emacs/23.2/lisp/sha1
> /usr/share/emacs/site-lisp/semi/pgg hides /usr/share/emacs/23.2/lisp/pgg
> /usr/share/emacs/site-lisp/semi/pgg-def hides /usr/share/emacs/23.2/lisp/pgg-def
> /usr/share/emacs/site-lisp/semi/pgg-pgp hides /usr/share/emacs/23.2/lisp/pgg-pgp
> /home/greenrd/org/lisp/org-ascii hides /usr/share/emacs/23.2/lisp/org/org-ascii
> /home/greenrd/org/lisp/org-rmail hides /usr/share/emacs/23.2/lisp/org/org-rmail
> /home/greenrd/org/lisp/org-freemind hides /usr/share/emacs/23.2/lisp/org/org-freemind
> /home/greenrd/org/lisp/org-icalendar hides /usr/share/emacs/23.2/lisp/org/org-icalendar
> /home/greenrd/org/lisp/org-agenda hides /usr/share/emacs/23.2/lisp/org/org-agenda
> /home/greenrd/org/lisp/org-inlinetask hides /usr/share/emacs/23.2/lisp/org/org-inlinetask
> /home/greenrd/org/lisp/org-crypt hides /usr/share/emacs/23.2/lisp/org/org-crypt
> /home/greenrd/org/lisp/org-compat hides /usr/share/emacs/23.2/lisp/org/org-compat
> /home/greenrd/org/lisp/org-exp-blocks hides /usr/share/emacs/23.2/lisp/org/org-exp-blocks
> /home/greenrd/org/lisp/org-install hides /usr/share/emacs/23.2/lisp/org/org-install
> /home/greenrd/org/lisp/org-remember hides /usr/share/emacs/23.2/lisp/org/org-remember
> /home/greenrd/org/lisp/org-exp hides /usr/share/emacs/23.2/lisp/org/org-exp
> /home/greenrd/org/lisp/org-src hides /usr/share/emacs/23.2/lisp/org/org-src
> /home/greenrd/org/lisp/org-list hides /usr/share/emacs/23.2/lisp/org/org-list
> /home/greenrd/org/lisp/org-datetree hides /usr/share/emacs/23.2/lisp/org/org-datetree
> /home/greenrd/org/lisp/org-indent hides /usr/share/emacs/23.2/lisp/org/org-indent
> /home/greenrd/org/lisp/org-publish hides /usr/share/emacs/23.2/lisp/org/org-publish
> /home/greenrd/org/lisp/org-footnote hides /usr/share/emacs/23.2/lisp/org/org-footnote
> /home/greenrd/org/lisp/org-macs hides /usr/share/emacs/23.2/lisp/org/org-macs
> /home/greenrd/org/lisp/org hides /usr/share/emacs/23.2/lisp/org/org
> /home/greenrd/org/lisp/org-mac-message hides /usr/share/emacs/23.2/lisp/org/org-mac-message
> /home/greenrd/org/lisp/org-info hides /usr/share/emacs/23.2/lisp/org/org-info
> /home/greenrd/org/lisp/org-table hides /usr/share/emacs/23.2/lisp/org/org-table
> /home/greenrd/org/lisp/org-feed hides /usr/share/emacs/23.2/lisp/org/org-feed
> /home/greenrd/org/lisp/org-id hides /usr/share/emacs/23.2/lisp/org/org-id
> /home/greenrd/org/lisp/org-w3m hides /usr/share/emacs/23.2/lisp/org/org-w3m
> /home/greenrd/org/lisp/org-faces hides /usr/share/emacs/23.2/lisp/org/org-faces
> /home/greenrd/org/lisp/org-colview hides /usr/share/emacs/23.2/lisp/org/org-colview
> /home/greenrd/org/lisp/org-html hides /usr/share/emacs/23.2/lisp/org/org-html
> /home/greenrd/org/lisp/org-latex hides /usr/share/emacs/23.2/lisp/org/org-latex
> /home/greenrd/org/lisp/org-attach hides /usr/share/emacs/23.2/lisp/org/org-attach
> /home/greenrd/org/lisp/org-docbook hides /usr/share/emacs/23.2/lisp/org/org-docbook
> /home/greenrd/org/lisp/org-wl hides /usr/share/emacs/23.2/lisp/org/org-wl
> /home/greenrd/org/lisp/org-mhe hides /usr/share/emacs/23.2/lisp/org/org-mhe
> /home/greenrd/org/lisp/org-habit hides /usr/share/emacs/23.2/lisp/org/org-habit
> /home/greenrd/org/lisp/org-vm hides /usr/share/emacs/23.2/lisp/org/org-vm
> /home/greenrd/org/lisp/org-timer hides /usr/share/emacs/23.2/lisp/org/org-timer
> /home/greenrd/org/lisp/org-jsinfo hides /usr/share/emacs/23.2/lisp/org/org-jsinfo
> /home/greenrd/org/lisp/org-bibtex hides /usr/share/emacs/23.2/lisp/org/org-bibtex
> /home/greenrd/org/lisp/org-mouse hides /usr/share/emacs/23.2/lisp/org/org-mouse
> /home/greenrd/org/lisp/org-clock hides /usr/share/emacs/23.2/lisp/org/org-clock
> /home/greenrd/org/lisp/org-xoxo hides /usr/share/emacs/23.2/lisp/org/org-xoxo
> /home/greenrd/org/lisp/org-gnus hides /usr/share/emacs/23.2/lisp/org/org-gnus
> /home/greenrd/org/lisp/org-mobile hides /usr/share/emacs/23.2/lisp/org/org-mobile
> /home/greenrd/org/lisp/org-irc hides /usr/share/emacs/23.2/lisp/org/org-irc
> /home/greenrd/org/lisp/org-plot hides /usr/share/emacs/23.2/lisp/org/org-plot
> /home/greenrd/org/lisp/org-mew hides /usr/share/emacs/23.2/lisp/org/org-mew
> /home/greenrd/org/lisp/org-bbdb hides /usr/share/emacs/23.2/lisp/org/org-bbdb
> /home/greenrd/org/lisp/org-protocol hides /usr/share/emacs/23.2/lisp/org/org-protocol
> /home/greenrd/org/lisp/org-archive hides /usr/share/emacs/23.2/lisp/org/org-archive
> /usr/share/emacs/site-lisp/flim/hmac-def hides /usr/share/emacs/23.2/lisp/net/hmac-def
> /usr/share/emacs/site-lisp/flim/sasl-ntlm hides /usr/share/emacs/23.2/lisp/net/sasl-ntlm
> /usr/share/emacs/site-lisp/flim/hmac-md5 hides /usr/share/emacs/23.2/lisp/net/hmac-md5
> /usr/share/emacs/site-lisp/flim/sasl-cram hides /usr/share/emacs/23.2/lisp/net/sasl-cram
> /usr/share/emacs/site-lisp/flim/sasl hides /usr/share/emacs/23.2/lisp/net/sasl
> /usr/share/emacs/site-lisp/flim/ntlm hides /usr/share/emacs/23.2/lisp/net/ntlm
> /usr/share/emacs/site-lisp/flim/sasl-digest hides /usr/share/emacs/23.2/lisp/net/sasl-digest
> /usr/share/emacs/site-lisp/wl/rfc2368 hides /usr/share/emacs/23.2/lisp/mail/rfc2368
> /usr/share/emacs/site-lisp/wl/utf7 hides /usr/share/emacs/23.2/lisp/gnus/utf7
> /usr/share/emacs/site-lisp/semi/smime hides /usr/share/emacs/23.2/lisp/gnus/smime
>
> Features:
> (shadow sort mail-extr message sendmail ecomplete rfc822 mml mml-sec
> password-cache mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231
> rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util netrc
> mm-util mail-prsvr gmm-utils wid-edit mailheader canlock sha1 sha1-el
> hex-util hashcash mail-utils emacsbug ob-sh shell ob-eval org-git-link
> org byte-opt bytecomp byte-compile advice help-fns advice-preload
> ob-emacs-lisp ob-tangle ob-ref ob-lob ob-table org-footnote org-src
> ob-comint comint ob-keys ob org-list org-faces org-compat org-entities
> org-macs time-date noutline outline cal-menu calendar cal-loaddefs
> org-install avoid edmacro kmacro magit-topgit cl cl-19 magit-svn magit
> diff-mode log-edit easymenu easy-mmode pcvs-util add-log magit-key-mode
> assoc winner ring server site-exherbo eclectic-mode exheres-mode
> exheres-mode-keywords skeleton sh-script executable dpaste cmake-mode
> thingatpt bbdb-autoloads bbdb regexp-opt timezone proof-site
> proof-autoloads pg-vars tooltip ediff-hook vc-hooks lisp-float-type
> mwheel x-win x-dnd font-setting tool-bar dnd fontset image fringe
> lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar
> mldrag 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 loaddefs button minibuffer faces cus-face files text-properties
> overlay md5 base64 format env code-pages mule custom widget
> hashtable-print-readable backquote make-network-process dbusbind
> font-render-setting gtk x-toolkit x multi-tty emacs)
>
>





  reply	other threads:[~2010-12-07  6:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-04 12:59 bug#7552: 23.2; Emacs doesn't die when told to by X session manager Robin Green
2010-12-07  6:38 ` Jan Djärv [this message]
2010-12-16  2:46 ` Chong Yidong
2010-12-16  2:48 ` 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=4CFDD672.5000409@swipnet.se \
    --to=jan.h.d@swipnet.se \
    --cc=7552-done@debbugs.gnu.org \
    --cc=greenrd@greenrd.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).