Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: b6b43e00f8ba7ffd142795d2ed2e340e4a897a95 authored by cvs2svn on 08 August 1996, 19:05:09 UTC
This commit was manufactured by cvs2svn to create tag 'r14beta2'.
Tip revision: b6b43e0
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