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 17:56:43 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.90 (gnu/linux)

Andreas Schwab <address@hidden> writes:

>> Okay, I looked at this, and now I'm not sure there's any bug.  If you
>> specify an --eval command-line arg that deletes the only frame, what
>> else could Emacs possibly do other than abort execution?
>
> IMHO there are two options:
>
> - refuse to delete the frame despite FORCE,
> - exit gracefully.

The latter is not difficult to arrange:

*** 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))))
  
        ;; If 3 or more files visited, and not all visible,
        ;; show user what they all are.  But leave the last one current.




reply via email to

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