all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Chong Yidong <cyd@gnu.org>
Cc: lekktu@gmail.com, 11102@debbugs.gnu.org
Subject: bug#11102: 24.0.94; C-x C-c from a client frame sometimes kills the whole Emacs process
Date: Sat, 14 Apr 2012 12:28:57 +0300	[thread overview]
Message-ID: <83r4vq1x2e.fsf@gnu.org> (raw)
In-Reply-To: <87d37aafss.fsf@gnu.org>

> From: Chong Yidong <cyd@gnu.org>
> Cc: lekktu@gmail.com,  11102@debbugs.gnu.org
> Date: Sat, 14 Apr 2012 16:17:07 +0800
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> >> With the -c option, a client frame is created, so C-x C-c should delete
> >> the frame without killing the main Emacs session, whether or not there
> >> is an -n option.
> >
> > This seems to imply that using "emacsclient -c -n FILE" on a Posix
> > host should _not_ kill emacs when "C-x C-c" is typed.  And yet in my
> > testing, it does, with the emacs-24 branch built just now, when the
> > server runs in a TTY session.  Are you saying that the effect of -n
> > depends also on whether the server runs in a TTY session?
> 
> That's not what I see with latest emacs-24 branch
> (x86_64-unknown-linux-gnu):
> 
> 1. emacs -Q -nw -f server-start
> 2. [in another xterm]   emacsclient -c -n foo.txt
> 3. [in the new X frame] C-x C-c
> 
>   => frame is deleted, but Emacs session is still alive

Try doing this with Emacs built --without-x, or in a remote TTY login
that doesn't support X forwarding.

What I did, exactly, is this:

 (1) login via PuTTY into my fencepost account (you should be able to
     reproduce using 'ssh' instead) and chdir to the emacs-24 branch
 (2) ./src/emacs -Q -f server-start
 (3) login again via PuTYY, which opens another remote terminal
     window, and chdir to the same directory
 (4) ./lib-src/emacsclient -c -n README

At this point, I see the file README being visited in the Emacs
session opened by (2), but in the original frame (the mode line still
shows "F1", not "F2").

 (5) In the session created by (2): C-x C-c

   => the Emacs session is terminated and I see the shell prompt.

In general, if a new frame isn't created by emacsclient request, it
makes sense to me that "C-x C-c" terminates the Emacs session, rather
than just deleting the new frame.  That is why I said I didn't think
this was a bug.  Now it seems that emacsclient is even more messed up
than I thought in this regard, since the conditions for creating a new
frame (and thus for deleting it) involve all kinds of subtle factors.





  reply	other threads:[~2012-04-14  9:28 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-27 18:56 bug#11102: 24.0.94; C-x C-c from a client frame sometimes kills the whole Emacs process Dani Moncayo
2012-03-30 17:01 ` Chong Yidong
2012-03-30 17:45   ` Eli Zaretskii
2012-03-30 20:29     ` Juanma Barranquero
2012-04-12 18:11     ` Juanma Barranquero
2012-04-13 14:38       ` Eli Zaretskii
2012-04-13 15:20         ` Dani Moncayo
2012-04-13 15:46           ` Eli Zaretskii
2012-04-13 23:49             ` Juanma Barranquero
2012-04-14  4:03               ` Chong Yidong
2012-04-14  7:26                 ` Eli Zaretskii
2012-04-13 16:10         ` Juanma Barranquero
2012-04-13 16:13           ` Juanma Barranquero
2012-04-13 17:55             ` Eli Zaretskii
2012-04-13 19:15               ` Juanma Barranquero
2012-04-13 21:00                 ` Eli Zaretskii
2012-04-14  4:55         ` Chong Yidong
2012-04-14  5:34           ` Chong Yidong
2012-04-14  7:25             ` Eli Zaretskii
2012-04-14  8:17               ` Chong Yidong
2012-04-14  9:28                 ` Eli Zaretskii [this message]
2012-04-14 10:33                   ` Chong Yidong
2012-04-14 11:37                     ` Eli Zaretskii
2012-04-14 13:18                       ` Chong Yidong
2012-04-14 13:34                         ` Eli Zaretskii
2012-04-15  8:53                           ` Chong Yidong
2012-04-20  8:23                             ` Dani Moncayo
2012-04-20 19:10                               ` Dani Moncayo
2012-04-14  9:36           ` Eli Zaretskii

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=83r4vq1x2e.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=11102@debbugs.gnu.org \
    --cc=cyd@gnu.org \
    --cc=lekktu@gmail.com \
    /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.