Mercurial > hg > xemacs-beta
diff src/frame.c @ 142:1856695b1fa9 r20-2b5
Import from CVS: tag r20-2b5
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:33:18 +0200 |
parents | 360340f9fd5f |
children | 2af401a6ecca |
line wrap: on
line diff
--- a/src/frame.c Mon Aug 13 09:32:45 2007 +0200 +++ b/src/frame.c Mon Aug 13 09:33:18 2007 +0200 @@ -53,7 +53,7 @@ Lisp_Object Vmouse_leave_frame_hook, Qmouse_leave_frame_hook; Lisp_Object Vmap_frame_hook, Qmap_frame_hook; Lisp_Object Vunmap_frame_hook, Qunmap_frame_hook; -Lisp_Object Vallow_deletion_of_last_visible_frame; +int Vallow_deletion_of_last_visible_frame; #if defined (HAVE_CDE) || defined (HAVE_OFFIX_DND) Lisp_Object Vdrag_and_drop_functions, Qdrag_and_drop_functions; #endif @@ -1256,7 +1256,7 @@ deleting all frames which were either visible or iconified and thus losing any way of communicating with the still running XEmacs process. So we put it back. */ - if (!force && NILP (Vallow_deletion_of_last_visible_frame) && + if (!force && !Vallow_deletion_of_last_visible_frame && !other_visible_frames_internal (f, called_from_delete_device)) error ("Attempt to delete the sole visible or iconified frame"); @@ -3007,11 +3007,11 @@ */ ); Vunmap_frame_hook = Qnil; - DEFVAR_LISP ("allow-deletion-of-last-visible-frame", + DEFVAR_BOOL ("allow-deletion-of-last-visible-frame", &Vallow_deletion_of_last_visible_frame /* *Non-nil means to assume the force option to delete-frame. */ ); - Vallow_deletion_of_last_visible_frame = Qnil; + Vallow_deletion_of_last_visible_frame = 0; #if defined (HAVE_CDE) || defined (HAVE_OFFIX_DND) DEFVAR_LISP ("drag-and-drop-functions", &Vdrag_and_drop_functions /*