all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Chong Yidong <cyd@stupidchicken.com>
Cc: Andreas Schwab <schwab@suse.de>,
	emacs-devel@gnu.org, rms@gnu.org,
	Michael Welsh Duggan <md5i@cs.cmu.edu>,
	Juanma Barranquero <lekktu@gmail.com>
Subject: Re: Crash force-deleting the only frame
Date: Wed, 01 Nov 2006 19:13:11 -0500	[thread overview]
Message-ID: <873b92so2w.fsf@stupidchicken.com> (raw)
In-Reply-To: <857iye7owd.fsf@lola.goethe.zz> (David Kastrup's message of "Thu\, 02 Nov 2006 00\:01\:06 +0100")

David Kastrup <dak@gnu.org> writes:

>> *** emacs/lisp/startup.el.~1.419.~	2006-09-26 13:10:39.000000000 -0400
>> --- emacs/lisp/startup.el	2006-11-01 17:55:11.000000000 -0500
>> ***************
>> *** 1877,1883 ****
>>                            (setq line 0)
>>                            (unless (< column 1)
>>                              (move-to-column (1- column)))
>> !                          (setq column 0))))))))
>>   
>>         ;; If 3 or more files visited, and not all visible,
>>         ;; show user what they all are.  But leave the last one current.
>> --- 1877,1884 ----
>>                            (setq line 0)
>>                            (unless (< column 1)
>>                              (move-to-column (1- column)))
>> !                          (setq column 0))))))
>> ! 	  (unless (frame-live-p (selected-frame)) (kill-emacs nil))))
>
> Does this not do to much when we delete the last frame on the current
> display/terminal, but there are still frames on other displays?

I think there is no need to kill Emacs in that situation.  The above
code is based on similar code in command_loop_1,

      if (! FRAME_LIVE_P (XFRAME (selected_frame)))
	Fkill_emacs (Qnil);

which is how Emacs exits cleanly when you do "M-: (delete-frame nil t)"

  reply	other threads:[~2006-11-02  0:13 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-31 15:33 Crash force-deleting the only frame Juanma Barranquero
2006-10-31 22:41 ` Eli Zaretskii
2006-11-01  0:14   ` Juanma Barranquero
2006-11-01  2:14 ` Richard Stallman
2006-11-01  2:37   ` Michael Welsh Duggan
2006-11-01 15:27     ` Chong Yidong
2006-11-01 15:32       ` Juanma Barranquero
2006-11-01 16:19         ` Chong Yidong
2006-11-01 16:33           ` Andreas Schwab
2006-11-01 22:56             ` Chong Yidong
2006-11-01 23:01               ` David Kastrup
2006-11-02  0:13                 ` Chong Yidong [this message]
2006-11-01 16:35           ` Lennart Borgman
2006-11-01 17:20           ` Juanma Barranquero
2006-11-02  4:43           ` Richard Stallman

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=873b92so2w.fsf@stupidchicken.com \
    --to=cyd@stupidchicken.com \
    --cc=emacs-devel@gnu.org \
    --cc=lekktu@gmail.com \
    --cc=md5i@cs.cmu.edu \
    --cc=rms@gnu.org \
    --cc=schwab@suse.de \
    /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.