From c1ef6223c98f5b5401d07ee5c6636b509cb6098e Mon Sep 17 00:00:00 2001 From: espen Date: Thu, 16 Feb 2006 19:39:34 +0000 Subject: [PATCH] Signaling error in clg-init if running SBCL in Slime with communication style :spawn --- gtk/gtk.lisp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gtk/gtk.lisp b/gtk/gtk.lisp index 4047e26..92490c8 100644 --- a/gtk/gtk.lisp +++ b/gtk/gtk.lisp @@ -20,7 +20,7 @@ ;; TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE ;; SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -;; $Id: gtk.lisp,v 1.52 2006/02/09 22:32:47 espen Exp $ +;; $Id: gtk.lisp,v 1.53 2006/02/16 19:39:34 espen Exp $ (in-package "GTK") @@ -57,6 +57,11 @@ (defun clg-init (&optional display) "Initializes the system and starts the event handling" + #+sbcl(when (and + (find-package "SWANK") + (eq (symbol-value (find-symbol "*COMMUNICATION-STYLE*" "SWANK")) :spawn)) + (error "When running clg in Slime the communication style :spawn can not be used. See the README file and for more information.")) + (unless (gdk:display-get-default) (gdk:gdk-init) (unless (gtk-init) -- 2.11.0