saved-region-selection
saved-region-selection is a variable defined in `C source code
'.
Its value is nilDocumentation: Contents of active region prior to buffer modification. If `select-active-regions' is non-nil, Emacs sets this to the text in the region before modifying the buffer. The next call to the function `deactivate-mark' uses this to set the window selection.