For an existing structure, the result of all these improvements, even considering rising energy costs, would never pay back over the expected life of the house. Code tries to strike a balance here by enforcing that when it's reasonable to do so (e.g. you tore down to the studs for a remodel anyway), you need to bring the areas modified up to modern-ish standards.
But old homes are expensive to rewire. And often, the safety benefits are very small. Current code requires a lot more outlets than older code, in part because many people overuse extension cords and tiny/cheap power taps when there aren't sufficient outlets, which is a safety issue, but is it worth spending thousands of dollars to pull new wire through existing walls, and then repairing the walls afterwards?
Some issues, are worth retrofitting for, and hopefully a pre-sales inspection by the buyer or insurance inspection will catch those. It would be reasonable to have a transfer inspection for those too.
Lots of paths to success here.
Sure you can - and you damn well should, especially for outright safety issues. What's the point of a building code if it ain't gonna be enforced?
> You know what people will do? Pass the buck to the buyer (Sold As Is).
Then give the buyer a grace period to bring the building up to code.