jyp / boon

Ergonomic Command Mode for Emacs
GNU General Public License v3.0
331 stars 35 forks source link

multicursor substitution example in tutorial not working? #104

Closed moesasji closed 9 months ago

moesasji commented 3 years ago

Looking through the tutorial I am unable to get the multicursor example to replace all occurrences of a symbol despite multicursor getting installed.

Although all occurrences of the word indeed get selected and removed I only seem to be able to replace the first occurrence with the word command instead of all. The following screenshot is an example to illustrate what happens.

mc-boon-only-first

Am I misunderstanding how this is supposed to work or is this functionality broken?

btw) This is on Emacs 27.1; boon @ commit 3dd9669 (none of recent commits seem relevant for this)

jyp commented 3 years ago

This was unfortunately broken by an emacs update, and I have not gotten to fix it yet. Thanks for the report!

moesasji commented 3 years ago

This was unfortunately broken by an emacs update, and I have not gotten to fix it yet. Thanks for the report!

In trying to figure out what goes wrong that in part this is a problem between chair and screen. Essentially the answer to this question on stackoverflow showed me that the problem is that I had hit "no" the first time I used multicursor on this command without realizing.

If I delete the previously generated mc-list.el based on my previous responses, restart emacs, run the boon-tutorial and then take care to say yes on both insert and delete on the tutorial commands it works as expected. However getting it wrong for the delete operation is surprisingly easy even when knowing this problem exists!

Bottomline: the problem is in whatever ends up in the mc-list.el defaults file. Hopefully that gives an idea how to best fix this.

YassinRian commented 9 months ago

if I had read this first I would have saved some hours troubleshooting :)))

jyp commented 9 months ago

I do believe that this was fixed some time ago, in fact. Closing for now; feel free to reopen with a specific example.