Looking into Emacs marks and the active region, it looks fairly simple to write a function in elisp that activates the region, however, is this something emacs is capable of doing via built-in interactive commands?
Or is it necessary to write an elisp function to set the active region between the point and the mark position?
Edit: for clarification, in this case by "active region" I mean.
(region-active-p)returns true.- The region is visible as a selected block.
- Since asking this question I'v eseen
C-x C-xcan be used to do this, although it swaps the point/mark (so it's not just making the region active).
For context: I was considering including the functionality as part of a larger package - which would be redundant if it's already supported.
set the active region between the point and the markmean to you? To me, it just means that transient mark mode is enabled (as it is by default) and the region is highlighted to show what is going to be affected by the next command that affects the region. But the region exists whether it's highlighted or not as long as the mark is set: if I doC-g, the highlight goes away butC-x C-xstill switches point and mark (and brings back the highlight). So I'm not quite sure what you are asking.