    except ImportError, inst:
        ## [GG] Try to write the error on a file:
        f=open("/tmp/pymacs.err","w")
        f.write("pymacs_load_helper unrecoverable error\n")
        f.write(str(type(inst))+"\n")
        f.write(str(inst)+"\n")
        f.close()
        #return None
        raise

# [GG] Added support for save excursion and in future for some speed ups
class SmartLisp_Interface(Lisp_Interface):
    ## Mimics save_excursion
    def save_excursion(self,f):
        # Save the excursion and do the work:
        try:
            l=Let()
            l.push_excursion()
            f()
        finally:
            l.pop_excursion()


# lisp = Lisp_Interface()
lisp = SmartLisp_Interface()
