Imagine one wants to apply two functions (A and B, where A could be commenting the code with M-;
and B convert the text to all-caps with C-x C-u
) to the same active region. I would proceed as follows:
- set the mark with
C-<SPC>
- move the cursor until the end of the region I want to modify
- run function A
- repeat 1. and 2.
- run function B
How should I proceed to run both A and B (and potentially others) without repeating the selection step? It seems this behavior arises since most functions which work on an active region implicitly call deactivate-mark
on completion.
The question above highlights one of the use cases described in this other post.