freenode/lisp - IRC Chatlog
Search
16:44:10
otjura
is there a way to pass arguments to lisp scripts when running like sbcl --scripts foo.lisp
17:34:44
fiveop
`(defun foo ()\n "bar\n(baz)"\nnil)` (with \n proper line breaks) causes problems with indentation (after the doc string) and with top-level form recognition of slime (e.g. with C-c C-c), because of the doc string line starting with a (
18:50:59
shrdlu68
I have a logging function in a library, and I want to give users the option to define their own function to do logging. From what I've gathered so far, this is done using generic functions, where the users specialze the said function. Is this conventional? Would simply redefining the function work?
18:56:19
Grue`
yeah, a downstream project can redefine any function in your library. i do that sometimes
18:58:34
Grue`
for example if you change the api and user's function is not compatible with your library anymore
18:58:51
Bike
references to #'foo would still be the old function. another library could redefine something and then a user would want to redefine it themselves while letting the other library ocntinue to work
19:05:55
shrdlu68
Above, I meant that the function will reside within a specific package, so it wouldn't cause conflict with other libraries and such.
19:09:51
Bike
What I'm saying is you have two systems that both use your library and both want to redefine the function so they can use your logger.
20:24:14
holycow
AeroNotix: what would it take to add numbered link shortcuts like in conkeror to lispkit?
20:30:16
emaczen
phoe: I guess not... loop is really good, but I get the thoughts that it isn't complete
20:31:57
emaczen
you can loop over vectors with (loop ... across ....) but I'm only aware of returning with collect
20:34:56
Bike
accumulating a vector means repeatedly resizing it, which is less than efficient. map can figure out the size before it calls anything
22:53:45
holycow
AeroNotix: amazing work on lispkit dude. finally had time to actually use it. amazing what you guys managed to do with a small bit of code
23:12:13
AeroNotix
holycow: thanks! I need to find time to work on it more. Let me know what issues you come across.
23:12:53
AeroNotix
e.g. if there are things in conkerer you are missing, some features aren't implemented like I would like. The link higlighting for example
23:18:46
holycow
AeroNotix: overall, only two things really would help and i can drop conkeror: lispkit hangs often (it looks like a thread hangs, i can still switch to a tab and browse a lot of times) and link hints. outside of that totally there.
0:07:32
AeroNotix
The hangs are pretty much why I stopped working on it so much. I think the hangs are due to the link hints.
3:50:42
gigamonkey
So is there some clever way between SLIME and Emacs to automatically get Emacs's font-locking to colorize uses of macros that are the moral equivalent of DEFUN similar to DEFUN?
4:00:39
Bike
looks like you need to set the 'common-lisp-indent-function' property of the thing to 'defun'. no idea what that means but it sounds possible