From: espen Date: Thu, 16 Feb 2006 19:39:34 +0000 (+0000) Subject: Signaling error in clg-init if running SBCL in Slime with communication style :spawn X-Git-Tag: clg-0-92~44 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/clg/commitdiff_plain/c1ef6223c98f5b5401d07ee5c6636b509cb6098e?hp=b008da5a007572a07f736534e15a7a3845c97745 Signaling error in clg-init if running SBCL in Slime with communication style :spawn --- 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 @@ (defbinding (gtk-init "gtk_parse_args") () boolean (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)