Mercurial > cpython-lru_cache-weakref
view Lib/emacs.py @ 4566:6403c94de50d legacy-trunk
Added safeguard against failure in __del__.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Wed, 27 Nov 1996 19:39:58 +0000 |
| parents | 615983f1a3ff |
| children |
line wrap: on
line source
# Execute Emacs code from a Python interpreter. # This code should be imported from a Python interpreter that is # running as an inferior process of Emacs. # See misc/py-connect.el for the companion Emacs lisp code. # Author: Terrence M. Brannon. start_marker = '+' end_marker = '~' def eval (string): tmpstr = start_marker + '(' + string + ')' + end_marker print tmpstr def dired (directory): eval( 'dired ' + '"' + directory + '"' ) def buffer_menu (): eval( 'buffer-menu(buffer-list)' )
