all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Óscar Fuentes" <ofv@wanadoo.es>
To: help-gnu-emacs@gnu.org
Cc: Paul Smith <psmith@gnu.org>
Subject: Re: starting the emacs daemon using init.org?
Date: Mon, 20 Jul 2015 17:43:56 +0200	[thread overview]
Message-ID: <87mvyqkf5v.fsf@wanadoo.es> (raw)
In-Reply-To: 1437404084.2071.224.camel@gnu.org

Paul Smith <psmith@gnu.org> writes:

> On Mon, 2015-07-20 at 07:30 -0700, Ian Zimmerman wrote:
>> But really, I can honestly say I have _never_ seen Emacs crash.  A few
>> times it went into an infinite spin because a package did something
>> dirty, mostly involving an external process.  But crash, never.
>
> It crashes on me sometimes.  Maybe once every month or two, I'll find it
> disappeared and a core file sitting in my home directory.  Also
> sometimes Emacs gets into weird states with font-lock and indentation in
> my code (mostly C++) and I need to restart it to clear it up.  Other
> than that I never restart it unless I need to reboot my system.
>
> But I have an interesting use-case:
>
>       * I run emacs --daemon as part of my login process.
>       * I run a GNOME desktop and use the GTK-enabled Emacs.
>       * At work I create X window frames using emacsclient.
>       * When at home I ssh to my work system in a (big) xterm and use
>         emacsclient to attach to the daemon and create text frames,
>         rather than sending X remotely (our VPN is not super-speedy and
>         I type pretty fast :)).
>
> I have a feeling that using both X and non-X frames in the same Emacs is
> not as well-tested and may have corner-case issues.

Most likely your setup triggers a well-known bug. It is mentioned on a
message on the terminal when emacs --daemon is started and in PROBLEMS
(`Help' menu -> `Emacs Known Problems'):

** When Emacs is compiled with Gtk+, closing a display kills Emacs.

There is a long-standing bug in GTK that prevents it from recovering
from disconnects: http://bugzilla.gnome.org/show_bug.cgi?id=85715.

Thus, for instance, when Emacs is run as a server on a text terminal,
and an X frame is created, and the X server for that frame crashes or
exits unexpectedly, Emacs must exit to prevent a GTK error that would
result in an endless loop.

If you need Emacs to be able to recover from closing displays, compile
it with the Lucid toolkit instead of GTK.




  reply	other threads:[~2015-07-20 15:43 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-19 20:19 starting the emacs daemon using init.org? Sharon Kimble
2015-07-19 23:20 ` Emanuel Berg
2015-07-20 11:28   ` Sharon Kimble
2015-07-20 13:41     ` Marcin Borkowski
2015-07-20 14:20       ` Subhan Michael Tindall
2015-07-20 17:29         ` Sharon Kimble
2015-07-20 17:36           ` Paul Smith
2015-07-20 17:46             ` John Mastro
2015-07-20 18:41               ` Marcin Borkowski
2015-07-23  7:40                 ` Eric S Fraga
2015-07-23 13:40                   ` Grant Rettke
     [not found]                 ` <mailman.7294.1437640616.904.help-gnu-emacs@gnu.org>
2015-07-23  9:00                   ` Rusi
     [not found]             ` <mailman.7190.1437414422.904.help-gnu-emacs@gnu.org>
2015-07-23  1:46               ` Rusi
2015-07-20 19:19           ` Sharon Kimble
2015-07-21 15:08             ` Startup time [Was: starting the emacs daemon using init.org?] Ian Zimmerman
     [not found]             ` <mailman.7228.1437491341.904.help-gnu-emacs@gnu.org>
2015-07-21 15:28               ` Pascal J. Bourguignon
2015-07-21 19:05                 ` Marcin Borkowski
2015-07-21 21:10                 ` Emanuel Berg
2015-07-21 18:19               ` Robert Marshall
2015-07-20 23:45       ` starting the emacs daemon using init.org? Emanuel Berg
2015-07-20 23:35     ` Emanuel Berg
     [not found]   ` <mailman.7173.1437391698.904.help-gnu-emacs@gnu.org>
2015-07-20 12:42     ` Barry Fishman
2015-07-20 12:57       ` Rusi
2015-07-20 19:23         ` Sharon Kimble
2015-07-21 13:17           ` Robert Thorpe
2015-07-20 13:40       ` Marcin Borkowski
2015-07-20  3:03 ` Ian Zimmerman
2015-07-20 11:25   ` Sharon Kimble
2015-07-20 14:30     ` Ian Zimmerman
2015-07-20 14:54       ` Paul Smith
2015-07-20 15:43         ` Óscar Fuentes [this message]
2015-07-20 16:39           ` Paul Smith

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

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

  git send-email \
    --in-reply-to=87mvyqkf5v.fsf@wanadoo.es \
    --to=ofv@wanadoo.es \
    --cc=help-gnu-emacs@gnu.org \
    --cc=psmith@gnu.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.