freenode/#lisp - IRC Chatlog
Search
23:06:57
stacksmith
Good day. Could someone explain the difference between sb-walker::env-lexical-variables and sb-c::lexenv-vars ? The latter seems to be stored in the :vars slot of SBCL's environment structure... The former seems to be available only as a predicate sb-walker::var-lexical-p...
23:10:51
hjudt
is there an easy way to remove parts of a string from beginning or end? like say (remove-suffix "-string" "from-my-long-string")?
23:14:14
hjudt
stacksmith: that's how i do it atm, but it is a bit awkward to use and to write, a proper wrapper would be nice...
23:15:17
didi
Sometimes I want to iterate over lists inside macros, but I don't want DOLIST NIL block get in the way (because I want to use the NIL block myself). What do you think? https://paste.debian.net/hidden/38c9fc77
23:29:28
didi
stacksmith: Because, as far as I understand it, LOOP defines a nil BLOCK and I want to avoid MAPCAR function calls. In respect to body's own block, if block calls RETURN, it will still stop at the enveloping nil block.
23:40:14
stacksmith
That seems to make sense. A minor annoyance is that your body cannot start with declarations because of the setf... which could be moved to follow body - I've also used pop in similar situations... I think it compiles to the same code...
23:54:44
didi
stacksmith: Ah, true. I'm yet to use this outside macros, and I didn't need to use declarations inside it, tho I've used declarations deep inside these things.
1:21:44
Kundry_W_
Hi. Is this an example of using dynamic binding to override a binding that is used within a function? I was sure it was, but the header defines lexical binding. https://github.com/abo-abo/swiper/blob/master/counsel.el#L2575
1:22:15
Kundry_W_
This `let` form redefines `counsel-ag-base-command`, which is used in `counsel-ag`
6:58:20
beach
ASDF seems to find all the .asd files in my hierarchy that existed when I put a link in quicklisp/local-projects. But it doesn't seem to find .asd file that I created after that, even though I have started a fresh SBCL.
7:05:23
mfiano
https://github.com/quicklisp/quicklisp-client/blob/master/quicklisp/local-projects.lisp#L19-L20
7:08:55
mfiano
Basically, get used to calling ql:register-local-projects if you have a symlink in local-projects, or you create new systems in a sub-directory.
7:10:00
beach
It's just that the technique I used before, i.e. putting symlinks in .cache didn't require any action other than restarting SBCL after I create a new system.