Staging
v0.8.1
https://github.com/python/cpython
Revision d2560b0f2e0d936e81e4c075a17f646a389b9b3c authored by Guido van Rossum on 28 May 1996, 23:41:25 UTC, committed by Guido van Rossum on 28 May 1996, 23:41:25 UTC
1 parent 3ada87a
Raw File
Tip revision: d2560b0f2e0d936e81e4c075a17f646a389b9b3c authored by Guido van Rossum on 28 May 1996, 23:41:25 UTC
Docstringified and PASV support by Siebren (including new ftpcp() function).
Tip revision: d2560b0
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