(emacs.info) Combining in Emerge

Info Catalog (emacs.info) Exiting Emerge (emacs.info) Emerge (emacs.info) Fine Points of Emerge
 
 Combining the Two Versions
 --------------------------
 
    Sometimes you want to keep _both_ alternatives for a particular
 difference.  To do this, use `x c', which edits the merge buffer like
 this:
 
      #ifdef NEW
      VERSION FROM A BUFFER
      #else /* not NEW */
      VERSION FROM B BUFFER
      #endif /* not NEW */
 
 While this example shows C preprocessor conditionals delimiting the two
 alternative versions, you can specify the strings to use by setting the
 variable `emerge-combine-versions-template' to a string of your choice.
 In the string, `%a' says where to put version A, and `%b' says where
 to put version B.  The default setting, which produces the results
 shown above, looks like this:
 
      "#ifdef NEW\n%a#else /* not NEW */\n%b#endif /* not NEW */\n"
 
Info Catalog (emacs.info) Exiting Emerge (emacs.info) Emerge (emacs.info) Fine Points of Emerge
automatically generated by info2html