How do I capture the current osmode setting within a lisp routine and then set that osmode back when the routine is over.