anchor.diff:                  next_events_r = [{Type,Content}|NextEventsR]});
           _ ->
               [error,
  -             {bad_action_from_state_function,{next_event,Type,Content}},
  +             {bad_state_enter_action_from_state_function,
  +	      {next_event,Type,Content}},
                ?STACKTRACE(),
                ?not_sys_debug]
       end;
  
positive.code:                 next_events_r = [{Type,Content}|NextEventsR]});
          _ ->
              [error,
               {bad_action_from_state_function,{next_event,Type,Content}},
               ?STACKTRACE(),
               Debug]
      end.
  
negative.code:               Parent, Debug, S,
                Events, Event, NextState, NewData, TransOpts,
                Actions, true);
  	{next_state,_NextState,_NewData,_Actions} ->
              terminate(
                error,
                {bad_state_enter_return_from_state_function,Result},
                ?STACKTRACE(), Debug,
                S#state{
                  state = State, data = Data,
                  hibernate = hibernate_in_trans_opts(TransOpts)},
                [Event|Events]);
          %%
          {keep_state,NewData} ->
              loop_event_actions(
  