visual-regexp.el icon indicating copy to clipboard operation
visual-regexp.el copied to clipboard

Preserve region after vr/replace

Open CyberShadow opened this issue 4 years ago • 2 comments

Hi, sorry if this has been asked before.

Would it be possible to have an option so that when vr/replace completes, the region is restored? That would make it easier to perform a few successive replaces in the same region.

Thanks!

CyberShadow avatar Jun 13 '21 06:06 CyberShadow

What is the behaviour of the built-in Emacs replace function?

benma avatar Dec 24 '21 10:12 benma

It does not restore the region.

A way to make it do that is discussed here, though I couldn't quite get it to work: https://lists.gnu.org/archive/html/help-gnu-emacs/2011-01/msg00453.html

CyberShadow avatar Dec 24 '21 12:12 CyberShadow