Fork me on GitHub
#calva
<
2019-09-21
>
pez06:09:35

Dear Calva-friends, do you understand why Calva has a toggle for switching paredit on and off? It was like that already when I adopted the paredit extension, and I have never questioned it. But really, why would you want to toggle paredit on and off?

pez06:09:03

Asking so that I don’t remove the toggle and there were some good reason for it being there…

alekszelark07:09:27

I just don’t use it, so it’s always off.

pez07:09:41

@zelark, but if I change it to always on, would anything change for you?

alekszelark07:09:49

Nothing, while I can switch it off.

pez07:09:43

What I am saying is that I am considering disabling your ability to switch it off. 😃

alekszelark07:09:59

Oh, then it will affect me a lot

alekszelark07:09:41

To me It’s always better to be able to switch on and off something,

pez07:09:48

But I fail to see how it would affect you. Can you elaborate?

alekszelark07:09:35

Maybe stupid question, but does it do some changes automatically when it is on?

pez07:09:03

Not to my knowledge. Paredit is on-demand.

alekszelark07:09:32

Thanks. Then I don’t think it will affect me

pez07:09:42

Maybe you can try to run with it on a while and we will find out if it makes a difference?

👌 4
Janne Sauvala08:09:52

At least on Cursive I had to sometimes turn paredit off to be able to fix forms. That time I was new to Clojure and parediting didn’t allow me to do modify the code I wanted. Later I realized what the different editing modes are for. The option to turn it on/off would be beneficial for new Clojure programmers.

Janne Sauvala08:09:09

Another thing came into my mind: what if paredit-code contains a bug and it’s affecting the user. Then the user would need to wait for a Calva release to be productive again

pez08:09:19

Thanks for input! Let’s sort some things out. Calva Paredit will only interfere with your “normy” form editing, if you have enabled strict keyboard settings. And even then Calva makes it super easy to override the most common culprit (being hindered from deleting a paren) by the pressing alt when you delete. In any case, this strict mode setting is not what I want to remove.

pez08:09:52

As for bugs hitting non-paredit users. Disabling the toggle would very unlikely have that effect. For two reasons: 1) Paredit commands are on demand. So if you use them you might be affected by bugs in them, but if you don’t, then not. 2) (Slightly contradicting the first reason) Paredit is used internally by Calva for many things. And then the toggle has no effect anyway.

pez08:09:48

The reason I’d like to remove the toggle is that I’d like to have fewer places where bugs can be introduced. Every setting introduces logic and maintenance. I try to keep Calva as free of settings as I can, partly to just be able to maintain it.

pez08:09:18

Anyway, I am not removing the toggle just yet. Let’s see if @zelark discovers the reason it is there, first. 😃

Janne Sauvala14:09:41

Now it makes more sense to remove the option 👍:skin-tone-2:

calva 4