At its core, it means although the person pleading temporary insanity is not insane at the moment circumstances rendered him insane at the time he commited the bad act. For example, X comes home and finds Y in bed with her husband, goes "insane" by pulling out a gun and killing Y.