Subject: Re: bug#4121: 23.1; "emacsclient -c <file>" woes "emacs --daemon"

From: Dan Nicolaescu <[email-masked]>
Date: Tue, 11 Aug 2009 10:14:39 -0700 (PDT)

"Holger Schurig" <[email-masked]> writes:

  > It's too easy to kill an emacs-server. Consider this sequence:
  > 
  > $ emacs -Q --daemon
  > $ emacsclient -c file
  > C-c C-x     -- or --  C-c #
  > $ emacsclient -c a
  > emacsclient: connect: Connection refused
  > emacsclient: No socket or alternate editor.  Please use:
  > 
  > The effect doesn't happen if I omit the "-c" option from emacsclient.
  > 
  > Unfortunately, without the "-c" option I'll get a text only (tty) client
  > and not a graphical one.
  > 
  > 
  > 
  > 
  > In GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+ Version 2.8.20)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Your Gtk+ is too old, from emacs/etc/PROBLEMS:

** Emacs compiled with Gtk+ crashes when closing a display
(x-close-connection).

This happens because of bugs in Gtk+.  Gtk+ 2.10 seems to be OK.  See
bug http://bugzilla.gnome.org/show_bug.cgi?id=85715.

  >  of 2009-08-11 on mnz66.mn-solutions.de, modified by Debian
  > Windowing system distributor `The X.Org Foundation', version 11.0.70101000
  > configured using `configure  '--build=i486-linux-gnu' '--host=i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs23:/etc/emacs:/usr/local/share/emacs/23.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.1/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/23.1/leim' '--with-x=yes' '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -g -O2''
  > 
  > Important settings:
  >   value of $LC_ALL: C
  >   value of $LC_COLLATE: C
  >   value of $LC_CTYPE: nil
  >   value of $LC_MESSAGES: C
  >   value of $LC_MONETARY: de_DE
  >   value of $LC_NUMERIC: de_DE
  >   value of $LC_TIME: de_DE
  >   value of $LANG: nil
  >   value of $XMODIFIERS: nil
  >   locale-coding-system: nil
  >   default-enable-multibyte-characters: t
  > 
  > Major mode: Lisp Interaction
  > 
  > Minor modes in effect:
  >   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
  >   blink-cursor-mode: t
  >   global-auto-composition-mode: t
  >   auto-composition-mode: t
  >   auto-encryption-mode: t
  >   auto-compression-mode: t
  >   line-number-mode: t
  >   transient-mark-mode: t