From: Michael Mattie <codermattie@runbox.com>
To: emacs-devel@gnu.org
Subject: Re: Possible bug when running with --daemon on 24.3.92.3?
Date: Thu, 10 Jul 2014 13:59:28 -0700 [thread overview]
Message-ID: <1588337.dQk0M1Rs28@khan> (raw)
In-Reply-To: <kswqbnj8rl.fsf@netfonds.no>
[-- Attachment #1: Type: text/plain, Size: 1885 bytes --]
On Wednesday, July 09, 2014 09:23:10 Peder O. Klingenberg wrote:
> On Tue, Jul 08 2014 at 09:30, Alexis wrote:
> > Summary of steps to reproduce:
> >
> > 1. emacs -q --daemon
> > 2. emacsclient -c
> > 3. C-x C-c
> > 4. The `emacs --daemon` process is no longer running.
>
> The symptoms seem similar to something I saw a couple of months back.
> Reported as bug #17125. That apparently had something to do with my
> fonts.
>
> Try attaching gdb to the emacs process before starting the emacsclient,
> and see if you catch a signal as you exit emacsclient?
>
> I haven't had time to pursue that bug any further. Dmitry Antipov
> provided a patch that worked for me, but apparently had some
> deficiencies.
>
> ...Peder...
I can't speak to resolve the issue proper, but I have run into many issues
with emacs in --daemon mode dissappearing when trying to open a X frame as
seems to be occuring here.
I resolved them permanently by taking all the stuff that was X specific in the
init such as font and color and ran the .el file off a before-make-frame hook.
I set a simple binary sentinal to make sure that it only ran once.
Never had a problem since. In my thoughts if --daemon has not gathered any
information on the X environment which makes sense then deferring execution
of configuring X stuff seems to be the only way out for now.
Here is the relevant part of my config in gitweb. Ignore my grail decorations,
the control block is quite simple and explanatory.
http://lispblivet.sx/git/?p=emacs.git;a=blob;f=emacs/grail.el;h=85e7adb6495d04a50ab6d1cd0661cd7c93e572af;hb=HEAD#l320
It might be useful in that if the workaround succeeds for the initial poster
it could narrow down the specific bits of information that emacs lacks
in --daemon mode.
How to solve it correctly is a bit beyond me, I just have a work-around to
what I think is the problem.
Mike Mattie
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 473 bytes --]
next prev parent reply other threads:[~2014-07-10 20:59 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-08 7:30 Possible bug when running with --daemon on 24.3.92.3? Alexis
2014-07-08 8:30 ` Stephen J. Turnbull
2014-07-08 8:53 ` Andreas Schwab
2014-07-08 9:33 ` Alexis
2014-07-08 17:28 ` David Kastrup
2014-07-09 1:11 ` Alexis
2014-07-08 14:57 ` Eli Zaretskii
2014-07-09 7:23 ` Peder O. Klingenberg
2014-07-10 7:41 ` Alexis
2014-07-10 11:16 ` Peder O. Klingenberg
2014-07-11 1:25 ` Emacs daemon segfaults [was: Possible bug when running with --daemon on 24.3.92.3?] Alexis
2014-07-11 4:51 ` Alexis
2014-07-11 8:01 ` Dmitry Antipov
2014-07-11 8:27 ` Alexis
2014-07-11 8:02 ` Peder O. Klingenberg
2014-07-11 8:45 ` Alexis
2014-07-11 8:57 ` Alexis
2014-07-10 20:59 ` Michael Mattie [this message]
2014-07-11 1:22 ` Possible bug when running with --daemon on 24.3.92.3? Alexis
[not found] <mailman.76031.1404815592.1146.emacs-devel@gnu.org>
2014-07-09 12:12 ` Kelvin White
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=1588337.dQk0M1Rs28@khan \
--to=codermattie@runbox.com \
--cc=emacs-devel@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.