When I'm raising the main (or using the anchor windlass) I always run the engine, at least slowly. That way the electric winch/windlass power draw is fed by whatever the alternator can put out, in addition to the batteries.