Staging
v0.5.1
https://github.com/python/cpython
Revision 5a49ffca5e229b087bea31f378420ea4c9868dea authored by Jack Jansen on 04 October 1995, 16:36:53 UTC, committed by Jack Jansen on 04 October 1995, 16:36:53 UTC
1 parent 685e16d
Raw File
Tip revision: 5a49ffca5e229b087bea31f378420ea4c9868dea authored by Jack Jansen on 04 October 1995, 16:36:53 UTC
Fixed two minor errors.
Tip revision: 5a49ffc
emacs.py
# 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)' )
back to top