Projection is the attribution of one's undesired impulses onto another. Thus, an angry spouse accuses their partner of hostility. Rationalization is the cognitive reframing of ones perceptions to protect the ego in the face of changing realities. Reaction Formation is the converting of wishes or impulses that are perceived to be dangerous into their opposites. A woman who is furious at her child and wishes her harm might become overly concerned and protective of the child's health.
Regression is the reversion to an earlier stage of development in the face of unacceptable impulses.
For an example an adolescent who is overwhelmed with fear, anger and growing sexual impulses might become clinging and begin thumb sucking or bed wetting. Repression is the blocking of unacceptable impulses from consciousness. Sublimation is the channeling of unacceptable impulses into more acceptable outlets. Undoing is the attempt to take back behavior or thoughts that are unacceptable. An example of undoing would be excessively praising someone after having insulted them.