mark-multiple.el

An emacs extension that sorta lets you mark several regions at once.

More precisely, it allows for one master region, with several mirror
regions. The mirrors are updated inline while you type. This allows for some
awesome functionality. Or at least, some more visually pleasing insert and
replace operations.

Bugs and gotchas

Adding a master and mirrors does not remove the active region. This might feel
strange, but turns out to be practical.

The current mark-multiple general library lets you do stupid shit, like adding
overlapping mirrors. That's only a problem for people who want to write their
own functions using mm/create-master and mm/add-mirror.

Seems like there is some conflict with undo-tree.el, which sometimes clobbers
the undo history. I might be doing something particularly stupid. Looking into it.

Reverting a buffer with active marks makes them unremovable.

A wild idea

Is this a subset of a crazy multiple-point module? Would that even work?

Edit: Yes, indeed it is. And yes, it does. This module has been pretty much
eclipsed by multiple-cursors.el, which
goes quite a bit farther and with a saner implementation to boot.

Contribute

If you make some nice commands with mark-multiple, it would be
great if you opened a pull-request. The repo is at:

License

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.