3 ms·
> For extra agony, try using the iedit emacs extension to change a symbol throughout the file. It's extremely laggy. The buffer data structure that Emacs uses
by b3morales 5y ago
> For extra agony, try using the iedit emacs extension to change a symbol throughout the file. It's extremely laggy.
The buffer data structure that Emacs uses -- a gap buffer -- has a fundamental incompatibility with making multiple "simultaneous" edits. Any attempt to do it in Elisp is going to be hacking (in a good way) around that. Performance will definitely degrade for a large buffer, because it has copy around most of the buffer contents for each edit. Full explanation here if you're curious: https://nullprogram.com/blog/2017/09/07/ https://nullprogram.com/blog/2017/09/07/
- dilap 5y agoVery interesting, thanks! Tangential, but I definitely disagree w/ the blog post about the value of multiple cursors vs just macros and rectangle edits, tho. Multiple cursors are just so much easier to work with and get right. You're editing blind when recording a macro, which is tricky, and if you mess up, you have to start over again from zero.
- b3morales 5y agoAgree; I still keep multiple-cursors.el in my config!