emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Crash force-deleting the only frame


From: Chong Yidong
Subject: Re: Crash force-deleting the only frame
Date: Wed, 01 Nov 2006 19:13:11 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.90 (gnu/linux)

David Kastrup <address@hidden> 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 via email to

[Prev in Thread] Current Thread [Next in Thread]