title: Applying a keyboard macro to an active region in Emacs
body: <p>I am trying to learn to use keyboard macros more but wasn't sure how to approach this.</p>
  
  <p>I need to select a region, then run two query-replacements on that region. The region will be different each time, but the query replacements will be the same.</p>
  
  <p>The problem comes because the first query replace (or <code>replace-string</code>) removes the active region.  If I use <kbd>C-u C-SPC</kbd>, it appears the beginning mark is saved, but the point is not saved, so the active region is not available for the second replace operation.</p>
  
  <p>How can I apply two operations, which remove the active region as a side effect, to the same region in a keyboard macro?</p>