Melt the butter in a heavy-bottomed saucepan and sauté the bacon until golden all over, then stir in the onion. Cook on a medium heat until the onion is soft and pale gold. Add the rice, turn it over in the fat and juices, and cook for a couple of minutes until it is translucent.