freenode/#lisp - IRC Chatlog
Search
7:17:43
lukego
we should also have a way to assign images IDs like (with-output-to-emacs (s :id :foo) ...) such that when you use the same ID again it updates the existing image(s) in Emacs rather than inserting a new one. that way you can do animation-like things.
7:25:14
lukego
pushed @ https://github.com/nuddyco/slime/commit/a4b9bc2c82fc2ce6cf6c8983acaaf437583cf65b
7:43:46
lukego
I might take a breather before continuing onto the next major topic which is commands
7:50:49
lukego
Yeah seems like there's a mismatch somewhere. I think the visual bounding box is being calculated by McCLIM but then the differently-sized image is being rendered by SVG. So they are not in agreement somehow..
7:52:52
lukego
splittist: I pushed jackdaniel's suggested fix for the output records ordering issue i.e. to reverse the records. So you will need to update your demos to draw the background first rather than last :)
7:53:33
lukego
fiddlerwoaroof: if you want a nasty workaround you could just draw a black rectangle at the beginning to define a minimum canvas size
8:05:53
fiddlerwoaroof
When I inspected a generated SVG, the text was being placed too closeto the top of the bock
8:42:43
lukego
one more idea rattling around my brain is to somehow make (with-output-to-emacs (s) ...) optional. So if you'd just call e.g. (draw-rectangle* ...) directly in the REPL it would still give you the graphics when the evaluation ends. Somehow implicitly have a CLIM canvas for the extent of a SLIME invocation.
8:44:44
jackdaniel
draw-rectangle* takes the stream argument either way (and it is not default), you need to bind it somehow
8:46:25
jdz
lukego: How about merging that into WITH-ROOM-FOR-GRAPHICS (if I remember the name correctly)?
8:51:27
lukego
jackdaniel: true but maybe T could work? *standard-output* still be bound to a SLIME-OUTPUT-STREAM and we could hang CLIM methods on that?
8:53:38
lukego
jdz: hm not sure how that would work exactly. I guess the listener has a bunch of code all painting onto the same canvas and having to avoid clobbering each other here. in Emacs each drawing is a separate object and they are patched together like a collage
8:54:14
jackdaniel
it won't in this case I think. also, slime output stream does not have output recording
8:55:19
jackdaniel
you specialize the method invoke-with-room-for-graphics on slime-output-stream and wrap in with-output-to-emacs-stream instead
8:57:16
jackdaniel
instead of before you could make a trampoline, but that will work only for functions you provide methods for
9:06:03
jackdaniel
it was meant to abbreviate prodigy, but someone made a typo and it stands for a progidy ,)
9:23:43
splittist
I would be surprised if there weren't problems with the text stuff. It was working, then I tried to get smart (:
9:46:56
splittist
fiddlerwoaroof: if you used draw-text* directly, does the same thing happen? Also, generally, we should apply the transformations and clipping
11:39:55
lotuseater
hi there, after updating emacs and sbcl, then invoking slime i got a mysterious error
11:43:48
lukego
lotuseater: I think that I had this recently too, and the solution was to upgrade to a newer SLIME (or I suppose alternatively downgrade SBCL)
11:44:38
lukego
git clone https://github.com/slime/slime ~ && echo '(load "~/slime/slime.el")' >> ~/.emacs
15:36:48
Josh_2
beach: slow progress is better than no progress. I have been really dreading some work I had to do so I've been putting it off, right now I have sat down and I'm going to get it done :P
17:01:04
splittist
lukego: I can't seem to make with-output-as-presentation work. I get 'error in process filter: Symbol's function definition is void: assert'
18:05:00
splittist
Also, if you produce a giant image (by, for example, doing a format-graph-from-roots for all the subclasses of clim:design, emacs really doesn't like it ...
18:59:57
dieggsy
have any of you seen an issue with sly and ACL where it says polling ... infinitely