Local density approximation for long-range or for short-range energy functionals?