unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Miles Bader <miles@gnu.org>
To: Dan Nicolaescu <dann@ics.uci.edu>
Cc: emacs-devel@gnu.org
Subject: Re: annoying behavior of emacs --daemon
Date: Tue, 04 Nov 2008 16:28:59 +0900	[thread overview]
Message-ID: <buoiqr4eypw.fsf@dhapc248.dev.necel.com> (raw)
In-Reply-To: <200811040634.mA46YGHE015780@mothra.ics.uci.edu> (Dan Nicolaescu's message of "Mon, 3 Nov 2008 22:34:16 -0800 (PST)")

Dan Nicolaescu <dann@ics.uci.edu> writes:
>   > When using --daemon, you initially have no frames.  You can then make
>   > new frames with emacsclient -c or emacsclient -t, but if they're X
>   > frames, closing the last such created frame (with C-x # or C-x C-c)
>   > kills the emacs process!
>
> I can't reproduce this...
>
> Can you reproduce this with 
> emacs -Q --daemon
> ?

Sure:

   $ emacs --daemon -Q 
   ("emacs" "-Q")
   For information about GNU Emacs and the GNU system, type C-h C-a.
   $ pidof emacs
   9730 9424
   $ emacsclient -c ~/.bashrc 
   Waiting for Emacs...
   <... close emacs window with C-x C-c or C-x # ...>
   $ pidof emacs
   9424

[The 9424 process is my normal long-lived emacs process, but emacsclient
seems to connect to the last-started process.]

If I use emacsclient -t, on the other hand:

   $ emacs --daemon -Q 
   ("emacs" "-Q")
   For information about GNU Emacs and the GNU system, type C-h C-a.
   $ pidof emacs
   9744 9424
   $ emacsclient -t ~/.bashrc 
   <... close emacs window with C-x C-c or C-x # ...>
   $ pidof emacs
   9744 9424

The same thing happens whether I kill the window with C-x C-c (bound to
`save-buffers-kill-terminal'), or C-x # (bound to `server-edit').

Emacs is checked out from CVS this morning.

-Miles

-- 
Immortality, n.  A toy which people cry for, And on their knees apply for,
      Dispute, contend and lie for, And if allowed Would be right proud
      Eternally to die for.




  reply	other threads:[~2008-11-04  7:28 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-04  5:48 annoying behavior of emacs --daemon Miles Bader
2008-11-04  6:34 ` Dan Nicolaescu
2008-11-04  7:28   ` Miles Bader [this message]
2008-11-04  8:55     ` Dan Nicolaescu
2008-11-04  9:47       ` Miles Bader
2008-11-04 13:03         ` Liang Wang
2008-11-04 13:49           ` Miles Bader
2008-11-04 16:48             ` Chong Yidong
2008-11-04 15:12         ` Dan Nicolaescu
2008-11-04 15:51           ` Miles Bader
2008-11-04  9:24     ` unclear [was: annoying] " Stephen J. Turnbull
2008-11-04 16:55       ` unclear Chong Yidong
2008-11-05 17:57         ` unclear Ulrich Mueller

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=buoiqr4eypw.fsf@dhapc248.dev.necel.com \
    --to=miles@gnu.org \
    --cc=dann@ics.uci.edu \
    --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 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).