libera/#commonlisp - IRC Chatlog
Search
13:46:03
coat
phoe: read that you don't use Paredit. how do you manipulate the s-expressions? Say you type (concatenate 'string a b) and then you realize that you want to create a (let ...) expression and put the (concatenate ...) inside (let ...). how do you do that easily?
13:51:50
coat
beach: yes, that works. thanks. I guess I am so used to paredit that human beings have been writing code without paredit too.
13:56:07
coat
err... my last message is screwed up. I meant, I am so used to paredit that I forgot human beings have been writing code without paredit too.
13:56:24
beach
coat: I use only the existing Emacs S-expression functions. There are quite a few of those as you can see.
13:57:50
coat
beach: so long time Lisp programmers like you, how did you avoid using Paredit? almost any Emacs + SLIME tutorial I pick recommends paredit. Even Portacle comes with Paredit enabled. how did you never feel tempted to use Paredit?
13:58:27
coat
beach: was it that you began doing Lisp when Paredit was not popular yet? or you began doing Lisp your own way and never bothered with Paredit because vanilla Emacs itself was sufficient?
13:59:01
coat
beach: okay. makes sense. I found it confusing too. to be honest, I don't use much of paredit anyway. slurp and barf are the only two things I use
14:00:35
coat
phoe: okay. I misunderstood that you never used paredit. have you used paredit? do you like smartparens more?
14:03:19
susam
coat: I have a little mnemonic to remember slurp and barf. C-) is slurp because ) is nice and round like a belly. Thus C-) makes the parentheses grow outwards and consume the next s-exp and put it inside the belly. Nom! Nom! C-} is curly and ugly and barfs out s-exps from its belly.
14:03:50
susam
coat: of course, that is how I started when I used to get confused. Now it is all muscle memory, so I don't really need the mnemonic anymore.
14:06:23
coat
phoe: do you customize rainbow-delimiters colors? the default ones all look very faded and very similar to each other? do you change its colors so that they become more visibile and easy to pair up?
14:12:16
phoe
https://cdn.discordapp.com/attachments/214454452067893250/857261729779679232/Zrzut_ekranu_z_2021-06-23_16-11-54.png
14:13:37
coat
phoe: looks nice. I should also customzie to put bright colors like this. why do you have two consecutive parens inside (cond ...) colored the same? There are two consecutive parens both colored green. Did you decide that? or is rainbow doing that?
14:20:19
coat
Is this the code to customize rainbow-delimiters: (set-face-foreground 'rainbow-delimiters-depth-1-face "#f99") ? Seems to work but want to be sure.
14:24:53
patience_
A strange thing that I expected to work, but then didn't was using a symbol generated by gensym in a macrolet that was nested in a macro: https://pastebin.com/5j961anx
14:29:58
beach
patience_: That happens when you try to use a variable at compile time, but its lexical binding is available only later, at run time.
14:35:33
pjb
patience_: in your case you want to use ,',sym This is a comon pattern in double backquote expressions.
14:41:57
pjb
you may rewrite the defmacro without backquote to better see it. https://termbin.com/imjg
14:42:28
pjb
as you can see, you need to wrap sym in a (list 'quote sym) this is waht ,',sym does when you use backquotes.
14:45:45
patience_
I can see that I was trying to use an unquoted symbol in my macrolet, which means that it was trying to use the value bound to the symbol. Is definitely a tricky thing to hold in the head haha
21:41:38
Colleen
Clhs: special operator load-time-value http://www.lispworks.com/documentation/HyperSpec/Body/s_ld_tim.htm
0:50:01
ivche
hey ppl, so im going through some material, and im trying to make a web server as an exercise