Sophie

Sophie

distrib > Fedora > 20 > x86_64 > by-pkgid > 3a1f9d3637f3247d5d88534895c3fa55 > files > 18

emacs-pymacs-0.25-4.fc20.noarch.rpm

    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()