<fiddlerwoaroof>
I've also been thinking it would be nice to add a couple features as a follow-up, once I get the minimal version in:
<fiddlerwoaroof>
1. moving the marker with file-position, I think this would be somewhat useful, especially once we make these bi-directional
<fiddlerwoaroof>
2. setting the buffer mode: I write a lot of code that generates org-mode files/etc. and it'd be nice to somehow tell emacs which mode is relevant to the file... although, I guess this might be a security issue?
<fiddlerwoaroof>
3. some kind of dynamic font-lock support: i.e. picking colors, at least, but potentially also picking fonts and font-sizes. I guess we'd need to detect if emacs is running in GUI mode for this?
<fiddlerwoaroof>
... I'd be a bit inclined to implement the primitives necessary to have a CLIM-style output stream
<fiddlerwoaroof>
anyways, I'm off to bed
scymtym has joined #slime
makomo has joined #slime
_whitelogger has joined #slime
makomo has quit [Ping timeout: 246 seconds]
cage_ has joined #slime
anamorphic has joined #slime
scymtym has quit [Ping timeout: 268 seconds]
anamorphic has quit [Quit: anamorphic]
anamorphic has joined #slime
clas has joined #slime
makomo has joined #slime
anamorphic has quit [Quit: anamorphic]
anamorphic has joined #slime
scymtym has joined #slime
anamorphic has quit [Quit: anamorphic]
anamorphic has joined #slime
cage_ has quit [Remote host closed the connection]
anamorphic has quit [Quit: anamorphic]
anamorphic has joined #slime
anamorphic has quit [Quit: anamorphic]
anamorphic has joined #slime
<luis>
fiddlerwoaroof: I think swank-buffer-streams shouldn't depend on swank-repl at all and neither should slime-buffer-streams depend on slime-repl on the Emacs side. I think you should write specific buffer management code for the new contrib. If a refactoring opportunity shows up, then we can add some shared code to the main bits of slime/swank.
<fiddlerwoaroof>
I think the function I'm using is really too generic for swank-repl
<fiddlerwoaroof>
So, I'd propose moving it next to swank's implementation of gray streams
<fiddlerwoaroof>
That's the only dependency
<fiddlerwoaroof>
Ah, I guess there's also the hash-table
<luis>
fiddlerwoaroof: for this feature, I think we should use a line-buffered stream. I didn't mention that before because it's probably not needed for the first minimal version, but it might affect how much is actually shared with swank-repl's stream code.
<fiddlerwoaroof>
I've been thinking about that too, as well as emacs performance issues when a single line gets too long
<luis>
fiddlerwoaroof: but, I agree, it seems likely that this stream code belongs in a more generic place
<fiddlerwoaroof>
It would probably be good to do something if a line crosses a certain width
<luis>
fiddlerwoaroof: right, Emacs panics a little a bit with long lines. I heard they're working on improving that.
<luis>
fiddlerwoaroof: presumably the repl would have similar issues, so maybe we can just ignore that issue. :-)
<fiddlerwoaroof>
slime-output-target-marker probably shouldn't be factored out completely: rather the repl-specific parts could stay here nad the t case moved into a more generic function
<luis>
Agreed.
<luis>
If you're slow enough to implement this, I might have the swank event dispatching simplification ready in time! ;-)
<fiddlerwoaroof>
do external functions have to be declared through definterface?