all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: p1ng2h3ng@gmail.com
Cc: 5616@debbugs.gnu.org
Subject: bug#5616: 23.1.92; `delete-frame' deletes the last frame when emacsclient runs
Date: Tue, 23 Feb 2010 12:48:47 -0500	[thread overview]
Message-ID: <jwvmxyzalvy.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87zl33rle2.fsf@dell.pingz> (p1ng2h3ng@gmail.com's message of "Sun, 21 Feb 2010 17:25:09 +0800")

> when I run `emacs --daemon -Q' and `emacsclient -nc', then if I try `M-x
> delete-frame', emacsclient seems will delete last remaining frame
> without check or remind.

Yes, this is only marginally new: if you have frames on several
displays, then M-x delete-frame will happily delete the last frame of
a given display, as long as there are still frames on some
other display.

So the case of "emacs --daemon" is only new in that the remaining frame
is actually not visible to the user, but is instead used internally by
the "emacs --daemon" code.

The rule for delete-frame should be something like "refuse to delete
a frame if it would result in a dead Emacs process", but admittedly, the
code doesn't really enforce that either.


        Stefan






      parent reply	other threads:[~2010-02-23 17:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87zl33rle2.fsf@dell.pingz>
     [not found] ` <87tytaiudc.fsf@stupidchicken.com>
     [not found]   ` <BE0282FD084942AC91A68EA8F82E76DE@us.oracle.com>
     [not found]     ` <FDCCAC7CF0DB4D8AA2217812E7870E76@us.oracle.com>
     [not found]       ` <87wry6e0iz.fsf@stupidchicken.com>
2010-02-21 23:27         ` bug#5616: 23.1.92; `delete-frame' deletes the last frame when emacsclient runs Drew Adams
2010-02-23 17:48 ` Stefan Monnier [this message]

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=jwvmxyzalvy.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=5616@debbugs.gnu.org \
    --cc=p1ng2h3ng@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.