Preheat oven to 375 degrees. In a skillet heat butter and saute onion. In a large bowl cimbine kidney beans, baked beans, ketchup, vinegar, mustard and bacon. Mix well. Add the sauted onopn, mix well. Pour mixture into a covered baking dish and bake for 35 minutes. Makes 4-6 servings.