Skip to content

Instantly share code, notes, and snippets.

@jmercouris
Created November 24, 2017 22:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmercouris/5f9602826151b8f615433cd1f4fd4b34 to your computer and use it in GitHub Desktop.
Save jmercouris/5f9602826151b8f615433cd1f4fd4b34 to your computer and use it in GitHub Desktop.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Added to ASD File
:depends-on (:cl-strings :cl-string-match :puri :queues.simple-queue
:sqlite :parenscript :cl-json :swank
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Function Invoked in My program
(defun start-swank ()
(swank:create-server :port *swank-port* :style :spawn :dont-close t))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Start emacs
;; M-x slime-connect
;; Enter port number
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Slime output:
; SLIME 2.19
CL-USER> (in-package :next)
#<Package "NEXT">
NEXT> (set-url "https://www.google.com")
; No value
NEXT> (interface:web-view-get-url (view *active-buffer*))
"https://www.reddit.com/"
NEXT> (interface:web-view-set-url (view *active-buffer*) "https://www.google.com")
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Problem: Clearly slime is connected, doing stuff, working fine. It
seems that gui operations do not wish to work, yet they work just fine
if I start my program from slime
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment