Jan Vroonhof writes:
Colin Rafferty <craffert(a)ms.com> writes:
> (defun delete-frame-or-save-buffers-kill-emacs (&optional
frame)
> "If there is only one frame, `save-buffers-kill-emacs', else
`delete-frame'."
> (interactive)
> (delete-frame frame t))
>
> (global-set-key [(control x) (5) (0)] 'delete-frame-or-save-buffers-kill-emacs)
(setq allow-deletion-of-last-visible-frame t)
Okay, so I should have been more careful with checking conditions. I
could have checked `(length (frame-list))', but I figured that
obscurity wouldn't setq that.
Maybe I just felt like using an obscure capability.
--
Colin