anchor.diff:          include_docs = IncludeDocs
       } = QueryArgs,
       
  -    fun({{Key, DocId}, Value}, OffsetReds, {AccLimit, AccSkip, Resp, RowFunAcc}) ->
  +    fun({{Key, DocId}, Value}, OffsetReds,
  +            {AccLimit, AccSkip, Resp, RowFunAcc}) ->
           case {AccLimit, AccSkip, Resp} of
           {0, _, _} ->
               % we've done "limit" rows, stop foldling
  
positive.code:     couch_httpd:etag_respond(Req, CurrentEtag, fun() ->
          {ok, RowCount} = couch_view:get_row_count(View),
          FoldAccInit = {Limit, SkipCount, undefined, []},
          {LastReduce, FoldResult} = lists:foldl(
              fun(Key, {_, FoldAcc}) ->
                  FoldlFun = make_view_fold_fun(Req,
                      QueryArgs#view_query_args{
                      }, CurrentEtag, Db, Group#group.current_seq, RowCount,
                      #view_fold_helper_funs{
                          reduce_count = fun couch_view:reduce_to_count/1
                      }),
                  {ok, LastReduce, FoldResult} = couch_view:fold(View, FoldlFun, FoldAcc, 
                      make_key_options(QueryArgs#view_query_args{start_key=Key, end_key=Key})),
                  {LastReduce, FoldResult}
              end, {{[],[]}, FoldAccInit}, Keys),
          finish_view_fold(Req, RowCount, couch_view:reduce_to_count(LastReduce), FoldResult, [{update_seq,Group#group.current_seq}])
      end).
  
  output_reduce_view(Req, Db, View, Group, QueryArgs, nil) ->
  
negative.code:     Args#view_query_args{skip=Value};
  validate_view_query(group_level, Value, Args) ->
      case Args#view_query_args.view_type of
      reduce ->
          Args#view_query_args{group_level=Value};
      _ ->
          Msg = <<"Invalid URL parameter 'group' or "
                  " 'group_level' for non-reduce view.">>,
          throw({query_parse_error, Msg})
      end;
  validate_view_query(inclusive_end, Value, Args) ->
      Args#view_query_args{inclusive_end=Value};
  validate_view_query(reduce, _, Args) ->
      case Args#view_query_args.view_type of
      map ->
          Msg = <<"Invalid URL parameter `reduce` for map view.">>,
          throw({query_parse_error, Msg});
      _ ->
          Args
      end;
  validate_view_query(include_docs, true, Args) ->
      case Args#view_query_args.view_type of
      reduce ->
          Msg = <<"Query parameter `include_docs` "
                  "is invalid for reduce views.">>,
          throw({query_parse_error, Msg});
      _ ->
          Args#view_query_args{include_docs=true}
      end;
  % Use the view_query_args record's default value
  validate_view_query(include_docs, _Value, Args) ->
      Args;
  validate_view_query(extra, _Value, Args) ->
  