The nature of the cosmic-ray electron spectrum, and supernova remnant contributions